/* posts.css — copied from maa-ya.com (Maaya: wwwroot/dg/css/duegho-posts.css, owner 2026-11-16): a text on a
   background (the composer's Text: gradients, pictures, colours, the author's picture, the font, the size, the height) and a
   shared link's body (YouTube, TikTok, Instagram, Facebook, X, Spotify… played in the post). The same values. */
.dg-tbg { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1.4 / 1; min-height: 240px; padding: 28px 32px; margin: 0 0 12px; color: #fff; text-align: center; overflow: hidden; background: #E21B2D center / cover no-repeat; word-break: break-word; }
.dg-tbg .dg-tbg-t { position: relative; z-index: 1; white-space: pre-wrap; text-shadow: 0 1px 2px rgba(0,0,0,.18); }
.dg-tbg[data-align="left"] { justify-content: flex-start; text-align: left; }
.dg-tbg.sz-s { font-size: 20px; } .dg-tbg.sz-m { font-size: 26px; } .dg-tbg.sz-l { font-size: 32px; } .dg-tbg.sz-xl { font-size: 40px; }
@media (max-width: 767px) { .dg-tbg { padding: 20px 22px; } .dg-tbg.sz-s { font-size: 17px; } .dg-tbg.sz-m { font-size: 21px; } .dg-tbg.sz-l { font-size: 25px; } .dg-tbg.sz-xl { font-size: 30px; } }
.dg-tbg { line-height: 1.25; font-weight: 800; }
.ft-poppins { font-family: Poppins, system-ui, sans-serif; } .ft-nunito { font-family: Nunito, system-ui, sans-serif; }
.ft-serif { font-family: Georgia, 'Times New Roman', serif; } .ft-mono { font-family: 'Courier New', ui-monospace, monospace; }
.ft-bebas { font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; letter-spacing: .02em; } .ft-pacifico { font-family: Pacifico, cursive; font-weight: 400; }
.bg-g1 { background-image: linear-gradient(135deg, #E21B2D, #FF7A45); } .bg-g2 { background-image: linear-gradient(135deg, #1D9BF0, #0B2C57); }
.bg-g3 { background-image: linear-gradient(135deg, #7F00FF, #E100FF); } .bg-g4 { background-image: linear-gradient(135deg, #11998E, #38EF7D); }
.bg-g5 { background-image: linear-gradient(135deg, #F7971E, #FFD200); } .bg-g6 { background-image: linear-gradient(135deg, #0F2027, #2C5364); }
.bg-g7 { background-image: linear-gradient(135deg, #EE0979, #FF6A00); } .bg-g8 { background-image: linear-gradient(135deg, #00C6FF, #0072FF); }
.bg-g9 { background-image: linear-gradient(135deg, #FC466B, #3F5EFB); } .bg-g10 { background-image: linear-gradient(135deg, #009245, #FCEE21); }
.bg-g11 { background-image: linear-gradient(135deg, #8E2DE2, #4A00E0); } .bg-g12 { background-image: linear-gradient(135deg, #232526, #414345); }
.bg-p1 { background-image: url(/img/cmp/tbg/p1.jpg); } .bg-p2 { background-image: url(/img/cmp/tbg/p2.jpg); } .bg-p3 { background-image: url(/img/cmp/tbg/p3.jpg); }
.bg-p4 { background-image: url(/img/cmp/tbg/p4.jpg); } .bg-p5 { background-image: url(/img/cmp/tbg/p5.jpg); } .bg-p6 { background-image: url(/img/cmp/tbg/p6.jpg); }
.dg-tbg.bg-img:after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.28); }   /* a picture of the author: darkened so the text reads */
.dg-tbg.h-s { aspect-ratio: 2.4 / 1; min-height: 140px; }
.dg-tbg.h-m { aspect-ratio: 1.4 / 1; min-height: 240px; }
.dg-tbg.h-l { aspect-ratio: 1 / 1; min-height: 300px; }
.dg-link { display: flex; gap: 12px; margin: 0 16px 12px; border: 1px solid #E9EDF1; border-radius: 12px; overflow: hidden; color: inherit; text-decoration: none; background: #fff; }
.dg-link img { width: 120px; min-height: 100%; aspect-ratio: 1; object-fit: cover; flex: none; background: #F4F6F8; }
.dg-link-t { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 10px 0; min-width: 0; }
.dg-link-t small { color: #657786; font-size: 12px; text-transform: lowercase; display: flex; align-items: center; gap: 6px; }
.dg-link-t small img { width: 16px; height: 16px; min-height: 0; aspect-ratio: auto; background: none; }
.dg-link-t b { font: 800 15px/1.3 Poppins, system-ui, sans-serif; color: #14171A; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dg-link-t span { font-size: 13px; color: #657786; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dg-link-lg { flex-direction: column; gap: 0; }
.dg-link-lg > img { width: 100%; aspect-ratio: 1.91 / 1; max-height: var(--dg-body); min-height: 0; }
.dg-link-lg .dg-link-t { padding: 10px 12px; background: #F7F9FA; }

.dg-lk { display: block; margin: 0 0 12px; position: relative; color: inherit; text-decoration: none; }
.dg-lk-frame { position: relative; overflow: hidden; background: #0F1419; cursor: pointer; }
.dg-lk-video .dg-lk-frame { aspect-ratio: 16 / 9; max-height: var(--dg-body); margin: 0 auto; }
.dg-lk-short .dg-lk-frame, .dg-lk-post .dg-lk-frame { height: var(--dg-body); }
.dg-lk-bg { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(22px) brightness(.55); }
.dg-lk-img { position: relative; display: block; height: 100%; width: 100%; object-fit: cover; }
.dg-lk-short .dg-lk-img { width: auto; aspect-ratio: 9 / 16; margin: 0 auto; }
.dg-lk-post .dg-lk-img { object-fit: contain; }
.dg-lk-brand { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, #2a2f36, #0F1419); color: #fff; font-size: 14px; }
.dg-lk-brand img { width: 56px; height: 56px; }
.dg-lk-brand em { font-style: normal; opacity: .85; }
.dg-lk-video .dg-lk-brand, .dg-lk-short .dg-lk-brand { align-items: flex-start; justify-content: flex-start; padding: 14px; } /* a player without a picture: the platform's mark in the corner, ▶ in the middle */
.dg-lk-video .dg-lk-brand img, .dg-lk-short .dg-lk-brand img { width: 34px; height: 34px; }
.dg-lk-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.dg-lk-play img { width: 26px; height: 26px; margin-left: 3px; }
.dg-lk iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.dg-lk.on .dg-lk-play, .dg-lk.on .dg-lk-brand { display: none; }
.dg-lk-bar { display: flex; align-items: center; gap: 10px; padding: 9px 16px; background: #F7F9FA; border-bottom: 1px solid #E9EDF1; color: inherit; text-decoration: none; }
.dg-lk-bar > img { width: 22px; height: 22px; flex: none; }
.dg-lk-bar span { display: flex; flex-direction: column; min-width: 0; }
.dg-lk-bar small { color: #657786; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-lk-bar b { font: 700 14px/1.3 Poppins, system-ui, sans-serif; color: #14171A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* X: the tweet's text, as a quoted post */
.dg-lk-x { margin: 0 16px 12px; padding: 12px 14px; border: 1px solid #E9EDF1; border-radius: 12px; display: flex; flex-direction: column; gap: 6px; }
.dg-lk-xhd { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.dg-lk-xhd img { width: 20px; height: 20px; }
.dg-lk-xt { font-size: 15px; line-height: 1.45; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.dg-lk-x small { color: #1d9bf0; font-weight: 600; }
/* Spotify / SoundCloud: a player strip (152 / 166 / 352 px once loaded) */
.dg-lk-audio { margin: 0 16px 12px; }
.dg-lk-audio .dg-lk-frame { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: #F7F9FA; border: 1px solid #E9EDF1; min-height: 96px; }
.dg-lk-cover { width: 76px; height: 76px; border-radius: 8px; object-fit: cover; flex: none; display: flex; align-items: center; justify-content: center; background: #fff; }
span.dg-lk-cover img { width: 40px; height: 40px; }
.dg-lk-at { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; padding-right: 64px; }
.dg-lk-at small { display: flex; align-items: center; gap: 6px; color: #657786; font-size: 12px; }
.dg-lk-at small img { width: 16px; height: 16px; }
.dg-lk-at b { font: 700 15px/1.3 Poppins, system-ui, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-lk-at span { color: #657786; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-lk-audio .dg-lk-play { left: auto; right: 14px; transform: translateY(-50%); width: 48px; height: 48px; background: #14171A; }
.dg-lk-audio .dg-lk-play img { width: 20px; height: 20px; }
.dg-lk-audio.on .dg-lk-frame { padding: 0; min-height: 0; display: block; background: none; border: 0; }
.dg-lk-audio.on .dg-lk-frame > :not(iframe) { display: none; }
.dg-lk-audio iframe { position: static; height: 152px; border-radius: 12px; }
html .dg-post:not(.dg-detail) .dg-lk-video .dg-lk-frame { width: 100% !important; max-width: none !important; max-height: none !important; aspect-ratio: 16 / 9 !important; margin: 0 !important; border-radius: 0 !important; }
html .dg-post:not(.dg-detail) .dg-lk-short .dg-lk-frame, html .dg-post:not(.dg-detail) .dg-lk-post .dg-lk-frame { width: 100% !important; height: auto !important; aspect-ratio: 9 / 16; max-height: 178cqw !important; margin: 0 !important; border-radius: 0 !important; }
   (dg-links.js); a 16:9 video stays 16:9 and plays in place */
html body .dg-lk-short .dg-lk-frame { aspect-ratio: 4 / 5 !important; height: auto !important; max-height: none !important; width: 100% !important; }
html body .dg-lk-short .dg-lk-img { width: 100% !important; height: 100% !important; aspect-ratio: auto !important; object-fit: cover; }
html body .dg-lk-video .dg-lk-bg, html body .dg-lk-short .dg-lk-bg { display: none !important; }
/* the full-screen player of a shared vertical video */
.dg-lkv { position: fixed; inset: 0; z-index: 400; background: #000; display: flex; align-items: center; justify-content: center; }
.dg-lkv[hidden] { display: none; }
.dg-lkv-box { position: relative; height: 100%; max-height: 100vh; aspect-ratio: 9 / 16; max-width: 100vw; }
.dg-lkv-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.dg-lkv-x { position: absolute; top: 12px; right: 12px; z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font: 400 30px/1 Inter, system-ui, sans-serif; cursor: pointer; }
body.dg-lkv-open { overflow: hidden; }
/* paused: our picture over the player (the platform's "other videos" never show), a tap plays on */
.dg-lk-pause { position: absolute; inset: 0; z-index: 3; display: none; align-items: center; justify-content: center; background: #000 center / cover no-repeat; cursor: pointer; border: 0; padding: 0; width: 100%; }
.dg-lk-pause.on { display: flex; }
.dg-lk-pause span { width: 64px; height: 64px; border-radius: 50%; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; }
.dg-lk-pause img { width: 26px; height: 26px; margin-left: 3px; }
