/* DIKDOK REELS — real clips in the DikDok feed (js/dikdok-reels.js).
   The card's emoji stage becomes a full-bleed vertical video; the
   sound line spins under the caption; 💦 opens the reel full screen. */

.dikdok-video-content:has(.ddr-video) {
    background: #000;
}
.dikdok-video-content:has(.ddr-video) .dikdok-thumbnail {
    position: absolute;
    inset: 0;
    font-size: 0;
    filter: none;
}
.dikdok-video-content:has(.ddr-video) .dikdok-video-title {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.85;
    z-index: 2;
}
.dikdok-video-content:has(.ddr-video) .dikdok-sidebar { z-index: 2; }

.ddr-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    cursor: pointer;
}

/* paused by a tap */
.ddr-paused::after {
    content: '❚❚';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 54px;
    color: rgba(244, 228, 192, 0.85);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    z-index: 3;
}

/* sound blocked until a click */
.ddr-tap {
    position: absolute;
    left: 50%;
    bottom: 120px;
    transform: translateX(-50%);
    z-index: 4;
    padding: 8px 14px;
    border-radius: 18px;
    background: rgba(26, 24, 21, 0.82);
    border: 1px solid var(--text-gold, #c4a87a);
    color: var(--text-gold, #c4a87a);
    font: 700 11px/1 'Courier New', Courier, monospace;
    letter-spacing: 1px;
    cursor: pointer;
    white-space: nowrap;
}

/* the creator's face is the reel's poster */
.ddr-ava {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.dikdok-creator-name .ddr-ava {
    display: inline-block;
    width: 18px;
    height: 18px;
    vertical-align: -4px;
    margin-right: 2px;
    border: 1px solid var(--phone-border, #8b7355);
}

/* ♪ the sound, spinning */
.ddr-sound {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-gold, #c4a87a);
    white-space: nowrap;
    overflow: hidden;
}
.ddr-disc {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle, #c4a87a 0 2px, #1a1815 3px 6px, #3a3238 7px);
    border: 1px solid var(--text-gold, #c4a87a);
    animation: ddrSpin 2.4s linear infinite;
}
.ddr-sound-name { overflow: hidden; text-overflow: ellipsis; }
@keyframes ddrSpin { to { transform: rotate(360deg); } }

/* 💦 — the reel full screen */
#fap-overlay.ddr-full {
    position: fixed;
    inset: 0;
    z-index: 10003;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ddr-full-stage {
    position: relative;
    height: 100%;
    aspect-ratio: 9 / 16;
    max-width: 100%;
}
.ddr-full-stage .ddr-video { object-fit: contain; }
.ddr-full-meta {
    position: absolute;
    left: 14px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #f4e4c0;
    font: 700 13px/1.3 'Courier New', Courier, monospace;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}
.ddr-full-meta span { font-weight: 400; font-size: 12px; color: #c4a87a; }
.ddr-full-x {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #8b2f47;
    border: 2px solid #f4e4c0;
    color: #f4e4c0;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
}
.ddr-full-done {
    position: absolute;
    right: 20px;
    bottom: 24px;
    padding: 12px 22px;
    border-radius: 24px;
    background: #8b2f47;
    border: 2px solid #f4e4c0;
    color: #f4e4c0;
    font: 700 13px 'Courier New', Courier, monospace;
    letter-spacing: 1px;
    cursor: pointer;
    z-index: 2;
}

/* The feed fits the phone's screen. The app sized its scroller off the
   window (100vh − 120px) and each card at a full window height, so inside
   the phone a card ran past the glass and its caption and lower buttons
   sat below the frame. With reels in it: the scroller is the screen under
   the tabs, one card is exactly one screen, the caption lies over the
   bottom of the video like the real app. */
#phone-content:has(#dikdok-container .ddr-video) { overflow: hidden; }
#dikdok-container:has(.ddr-video) { height: calc(100% - 41px); }
#dikdok-container:has(.ddr-video) .dikdok-video-card { height: 100%; }
.dikdok-video-card:has(.ddr-video) .dikdok-info {
    position: absolute;
    left: 0;
    right: 70px;
    bottom: 0;
    z-index: 2;
    padding-top: 40px;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 8, 9, 0.78) 55%);
}
.dikdok-video-card:has(.ddr-video) .dikdok-sidebar { bottom: 80px; }
