/* ==========================================================================
   NO COUCH PRODUCTIONS, LLC — ART DECO & VINTAGE STUDIO THEME
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;900&family=Great+Vibes&family=Oswald:wght@500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

:root {
    --bg-obsidian: #050505;
    --bg-charcoal: #0E0E0E;
    --bg-card: #141414;
    --bg-card-hover: #1B1A17;
    --gold-primary: #E5B649;
    --gold-bright: #F8CE65;
    --gold-dim: #9C7A2B;
    --gold-glow: rgba(229, 182, 73, 0.28);
    --cream-text: #F4EFE2;
    --cream-muted: #B8B09C;
    --font-deco: 'Cinzel', Georgia, serif;
    --font-condensed: 'Oswald', Impact, sans-serif;
    --font-script: 'Great Vibes', cursive;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-obsidian);
    background-image: 
        radial-gradient(ellipse at 50% 0%, rgba(229, 182, 73, 0.09) 0%, transparent 60%),
        radial-gradient(circle at 10% 25%, rgba(255, 215, 130, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(229, 182, 73, 0.05) 0%, transparent 45%);
    color: var(--cream-text);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.social-login-prompt {
    margin-block-end: 1em;
}

/* ==========================================================================
   ART DECO DOUBLE FRAME & GEOMETRIC CORNER FRETWORK
   ========================================================================== */
.deco-frame {
    position: relative;
    background-color: var(--bg-charcoal);
    border: 2px solid var(--gold-primary);
    padding: 2.5rem 2.25rem;
    box-shadow: 
        inset 0 0 0 4px var(--bg-charcoal),
        inset 0 0 0 6px var(--gold-dim),
        0 20px 55px rgba(0, 0, 0, 0.85);
}

/* Geometric Art-Deco Corner Ornaments */
.deco-corner {
    position: absolute;
    width: 26px;
    height: 26px;
    border: 2px solid var(--gold-primary);
    pointer-events: none;
    z-index: 2;
}

.deco-corner::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid var(--gold-primary);
}

.deco-corner.tl { top: -4px; left: -4px; border-right: none; border-bottom: none; }
.deco-corner.tl::before { top: 4px; left: 4px; }

.deco-corner.tr { top: -4px; right: -4px; border-left: none; border-bottom: none; }
.deco-corner.tr::before { top: 4px; right: 4px; }

.deco-corner.bl { bottom: -4px; left: -4px; border-right: none; border-top: none; }
.deco-corner.bl::before { bottom: 4px; left: 4px; }

.deco-corner.br { bottom: -4px; right: -4px; border-left: none; border-top: none; }
.deco-corner.br::before { bottom: 4px; right: 4px; }

/* Ornamental Gold Divider */
.deco-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0.85rem auto 1.25rem;
    max-width: 440px;
}

.deco-divider::before,
.deco-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.deco-divider span {
    color: var(--gold-primary);
    font-size: 0.95rem;
    letter-spacing: 0.25em;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    background-color: var(--bg-obsidian);
    border-bottom: 2px solid var(--gold-primary);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.9);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    max-width: 1380px;
    margin: 0 auto;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-emblem {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 0px solid var(--gold-primary);
    background-color: var(--bg-obsidian);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px var(--gold-glow);
    flex-shrink: 0;
}

.brand-emblem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-title-group {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-deco);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.08em;
    color: var(--gold-primary);
    line-height: 1.1;
}

.brand-tagline {
    font-family: var(--font-condensed);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cream-muted);
    margin-top: 0.15rem;
}

/* Navigation Menu */
.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-family: var(--font-condensed);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cream-text);
    padding: 0.45rem 0.9rem;
    border: 1px solid transparent;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--gold-bright);
    border-color: var(--gold-dim);
    background-color: rgba(229, 182, 73, 0.08);
}

.nav-link.active {
    color: var(--bg-obsidian);
    background-color: var(--gold-primary);
    border-color: var(--gold-bright);
    font-weight: 700;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    font-size: 1.35rem;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
}

/* ==========================================================================
   TOP CENTER PANEL: MOVIES IN THE SPOTLIGHT
   ========================================================================== */
.spotlight-section {
    padding: 2.5rem 0 2rem;
}

.section-header-deco {
    text-align: center;
    margin-bottom: 2.25rem;
}

.script-subtitle {
    font-family: var(--font-script);
    font-size: 1.85rem;
    color: var(--gold-primary);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.section-title {
    font-family: var(--font-deco);
    font-size: clamp(1.8rem, 3.2vw, 2.75rem);
    font-weight: 900;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 18px var(--gold-glow);
}

.section-kicker {
    font-family: var(--font-condensed);
    font-size: 0.95rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--cream-text);
    margin-top: 0.25rem;
}

/* ==========================================================================
   MOVIE GRID & IN-PLACE / FULLSCREEN YOUTUBE CARDS
   ========================================================================== */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.85rem;
}

.movie-card {
    background-color: var(--bg-card);
    border: 1px solid var(--gold-dim);
    outline: 1px solid rgba(229, 182, 73, 0.25);
    outline-offset: 4px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.75);
}

.movie-card:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--gold-bright);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.9), 0 0 18px var(--gold-glow);
}

/* 16:9 Media Stage (Poster Thumbnail OR Active Inline YouTube Embed) */
.media-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000000;
    border-bottom: 1px solid var(--gold-dim);
    overflow: hidden;
}

.media-stage img.poster-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.35s ease;
    filter: contrast(1.04) brightness(0.92);
}

.movie-card:hover .media-stage img.poster-thumb {
    transform: scale(1.04);
    filter: contrast(1.08) brightness(1);
}

.poster-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.15) 0%, rgba(5, 5, 5, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.play-medallion {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(5, 5, 5, 0.88);
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 0 22px rgba(0, 0, 0, 0.9), 0 0 14px var(--gold-glow);
    transition: var(--transition);
}

.poster-overlay:hover .play-medallion {
    background: var(--gold-primary);
    color: var(--bg-obsidian);
    transform: scale(1.1);
}

.genre-tag {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    background: rgba(5, 5, 5, 0.9);
    border: 1px solid var(--gold-dim);
    color: var(--gold-primary);
    font-family: var(--font-condensed);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.15rem 0.55rem;
}

.duration-tag {
    position: absolute;
    bottom: 0.65rem;
    right: 0.65rem;
    background: rgba(5, 5, 5, 0.92);
    border: 1px solid var(--gold-dim);
    color: var(--cream-text);
    font-family: var(--font-condensed);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    padding: 0.12rem 0.5rem;
}

.media-stage iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Card Details */
.movie-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.movie-meta-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-condensed);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 0.35rem;
}

.movie-title {
    font-family: var(--font-deco);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cream-text);
    line-height: 1.25;
    margin-bottom: 0.55rem;
}

.movie-desc {
    font-size: 0.9rem;
    color: var(--cream-muted);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.movie-actions {
    display: flex;
    gap: 0.65rem;
    margin-top: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    font-family: var(--font-condensed);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--gold-primary);
}

.btn-play-inline {
    background-color: var(--gold-primary);
    color: var(--bg-obsidian);
    flex: 1;
}

.btn-play-inline:hover {
    background-color: var(--gold-bright);
    box-shadow: 0 0 14px var(--gold-glow);
}

.btn-fullscreen {
    background-color: transparent;
    color: var(--gold-primary);
}

.btn-fullscreen:hover {
    background-color: rgba(229, 182, 73, 0.16);
    color: var(--gold-bright);
}

/* ==========================================================================
   HERO AREA: ABOUT NO COUCH PRODUCTIONS, LLC
   ========================================================================== */
.hero-section {
    padding: 2rem 0 3.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-script {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--gold-primary);
    margin-bottom: 0.15rem;
}

.hero-title {
    font-family: var(--font-deco);
    font-size: clamp(1.75rem, 2.9vw, 2.5rem);
    font-weight: 900;
    color: var(--cream-text);
    line-height: 1.18;
    margin-bottom: 1rem;
}

.hero-title span {
    color: var(--gold-primary);
}

.hero-copy {
    color: var(--cream-muted);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.hero-motto-banner {
    margin: 1.35rem 0;
    padding: 0.85rem 1.15rem;
    border-left: 3px solid var(--gold-primary);
    background: rgba(229, 182, 73, 0.06);
    font-family: var(--font-condensed);
    font-size: 1.05rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-primary);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-hero-gold {
    background-color: var(--gold-primary);
    color: var(--bg-obsidian);
    padding: 0.8rem 1.65rem;
    font-size: 0.98rem;
}

.btn-hero-gold:hover {
    background-color: var(--gold-bright);
    box-shadow: 0 0 20px var(--gold-glow);
}

.hero-crest-box {
    background-color: var(--bg-obsidian);
    border: 2px solid var(--gold-primary);
    padding: 1.25rem;
    text-align: center;
    box-shadow: inset 0 0 0 4px var(--bg-obsidian), inset 0 0 0 5px var(--gold-dim);
}

.hero-crest-box img {
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.hero-crest-caption {
    margin-top: 0.85rem;
    font-family: var(--font-condensed);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-primary);
}

/* ==========================================================================
   TYPICAL STUDIO SECTIONS (PRODUCTION STANDARDS & REELS)
   ========================================================================== */
.studio-pillars {
    padding: 0 0 4rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.pillar-card {
    background-color: var(--bg-charcoal);
    border: 1px solid var(--gold-dim);
    padding: 1.85rem 1.5rem;
    text-align: center;
}

.pillar-label {
    font-family: var(--font-condensed);
    font-size: 0.85rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 0.4rem;
}

.pillar-heading {
    font-family: var(--font-deco);
    font-size: 1.2rem;
    color: var(--gold-primary);
    margin-bottom: 0.65rem;
}

.pillar-text {
    font-size: 0.92rem;
    color: var(--cream-muted);
}

/* ==========================================================================
   ARCHIVES FILTER & SEARCH BAR
   ========================================================================== */
.archive-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--gold-dim);
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    background: var(--bg-obsidian);
    border: 1px solid var(--gold-dim);
    color: var(--cream-text);
    font-family: var(--font-condensed);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.42rem 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gold-primary);
    border-color: var(--gold-bright);
    color: var(--bg-obsidian);
}

.archive-search {
    background: var(--bg-obsidian);
    border: 1px solid var(--gold-dim);
    color: var(--cream-text);
    padding: 0.55rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    min-width: 260px;
}

.archive-search:focus {
    outline: none;
    border-color: var(--gold-bright);
    box-shadow: 0 0 12px var(--gold-glow);
}

/* ==========================================================================
   FULLSCREEN THEATER MODAL
   ========================================================================== */
.theater-modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 2, 2, 0.97);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.theater-modal.open {
    display: flex;
}

.theater-modal-header {
    width: 100%;
    max-width: 1220px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--gold-dim);
    padding-bottom: 0.75rem;
}

.theater-modal-title {
    font-family: var(--font-deco);
    color: var(--gold-primary);
    font-size: 1.35rem;
    letter-spacing: 0.06em;
}

.btn-close-theater {
    background: var(--bg-obsidian);
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
    font-family: var(--font-condensed);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.45rem 1rem;
    cursor: pointer;
}

.btn-close-theater:hover {
    background: var(--gold-primary);
    color: var(--bg-obsidian);
}

.theater-player-wrapper {
    width: 100%;
    max-width: 1220px;
    aspect-ratio: 16 / 9;
    border: 2px solid var(--gold-primary);
    background: #000000;
    box-shadow: 0 0 45px var(--gold-glow);
}

.theater-player-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   FOOTER (INSPIRED BY CLOSING TITLE CARD)
   ========================================================================== */
.site-footer {
    margin-top: auto;
    background-color: var(--bg-obsidian);
    border-top: 2px solid var(--gold-primary);
    padding: 3rem 0 2rem;
    color: var(--cream-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 2.25rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gold-dim);
}

.footer-heading {
    font-family: var(--font-deco);
    color: var(--gold-primary);
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.footer-disclaimer {
    font-size: 0.82rem;
    color: var(--cream-muted);
    line-height: 1.55;
    max-width: 440px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: var(--font-condensed);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--gold-bright);
}

.footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-closing-motto {
    font-family: var(--font-condensed);
    font-size: 0.95rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-primary);
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--cream-muted);
}

/* ==========================================================================
   RESPONSIVE LAYOUTS: TABLET & MOBILE PORTRAIT
   ========================================================================== */
@media (max-width: 1024px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-obsidian);
        flex-direction: column;
        padding: 1rem 1.5rem 1.5rem;
        border-bottom: 2px solid var(--gold-primary);
        gap: 0.65rem;
    }

    .main-nav.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: center;
    }

    .deco-frame {
        padding: 1.5rem 1rem;
    }

    .movies-grid {
        grid-template-columns: 1fr;
    }

    .pillars-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .archive-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .archive-search {
        width: 100%;
        min-width: unset;
    }

    .brand-name {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   MODERATOR COMPOSER ROW & EXPANDING EDIT / PREVIEW TOGGLE
   ========================================================================== */
.composer-editor-row {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.composer-field-label {
    font-family: var(--font-condensed);
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-primary);
}

.composer-post-editor {
    width: 100%;
    max-width: 100%;
    min-height: 260px;
}

.composer-post-preview {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 120px;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--gold-primary);
    overflow: visible;
}

.composer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5em 0 2em 0;
}

.composer-actions .btn {
    flex: 0 0 auto;
    min-width: 140px;
}

.admin-composer {
    margin: 2em 0 2em 0;
}

/* ==========================================================================
   COLLAPSIBLE AUDIENCE COMMENTARY DRAWER (BLOG.PHP)
   ========================================================================== */
.blog-textarea {
    width: 100%;
    max-width: 100%;
    min-height: 40px;
    font-size: 16px;
}

.comments-drawer {
    margin: 0.5rem 1rem;
    border: 1px solid transparent;
    padding: 0.95rem 1.25rem;
    transition: var(--transition);
}

.comments-drawer[open] {
    border-color: var(--gold-primary);
    border: 1px solid var(--gold-dim);
}

.comments-drawer-summary {
    font-family: var(--font-deco);
    color: var(--gold-primary);
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.06em;
    list-style: none;
    user-select: none;
}

.comments-drawer-summary::-webkit-details-marker {
    display: none;
}

.comments-drawer[open] .comments-drawer-summary {
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--gold-dim);
}

.comments-drawer-body {
    margin-top: 1.15rem;
}

.comments-section {
    margin-top: 1rem;
}

.blog-post-title {
    color: var(--gold-primary);
}

.post-rule-divider {
    border: none;
    outline: none;
    background-color: transparent;
    height: 1px;
    width: 100%;
    max-width: 100%;
    margin: 2rem auto 1rem auto;
    background-image: linear-gradient(
        90deg,
        rgba(156, 122, 43, 0) 0%,
        rgba(156, 122, 43, 0.85) 50%,
        rgba(156, 122, 43, 0) 100%
    );
}

.blog-post-subtitle, .comments-heading {
    font-family: var(--font-condensed);
    font-size: 0.95rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cream-muted);
    margin-bottom: 1rem;
}

.comment-top {
    font-style: italic;
    color: var(--gold-primary);    
}

.editor-box {
    width: 100%;
    height: auto;
    display: block;
}

.editor-box .tox-tinymce {
    width: 100%;
}

.editor-box .tox-editor-container,
.editor-box .tox-edit-area,
.editor-box .tox-edit-area__iframe {
    height: auto;
    overflow: visible;
}

/* ==========================================================================
   PINNED HIGH-CONTRAST ALERT FLASH BANNER
   ========================================================================== */
:root {
    --header-offset: 76px;
}

.blog-flash {
    position: fixed;
    top: calc(var(--header-offset) + 0.65rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 95;
    width: min(920px, calc(100% - 2rem));
    padding: 0.9rem 1.25rem;
    background-color: var(--gold-bright);
    color: var(--bg-obsidian);
    border: 2px solid var(--bg-obsidian);
    outline: 2px solid var(--gold-bright);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.92), 0 0 20px var(--gold-glow);
    font-family: var(--font-condensed);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
    opacity: 1;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.blog-flash.flash-error {
    background-color: #B91C1C;
    color: #FFFFFF;
    border-color: #FCA5A5;
    outline: 2px solid #050505;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.95), 0 0 22px rgba(239, 68, 68, 0.45);
}

.blog-flash.is-dismissed {
    opacity: 0;
    transform: translate(-50%, -8px);
    pointer-events: none;
}

@media (max-width: 768px) {
    :root {
        --header-offset: 68px;
    }

    .blog-flash {
        top: calc(var(--header-offset) + 0.5rem);
        width: calc(100% - 1.25rem);
        font-size: 0.92rem;
        padding: 0.8rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-flash {
        transition: none;
    }
}

/* ==========================================================================
   COMPOSER MATRIX GRID (PAIRED LABEL + INPUT CELLS)
   ========================================================================== */
.composer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.9rem 1.15rem;
    align-items: end;
    margin-bottom: 1rem;
}

/* Each <label> wraps its text + <input> as an indivisible matrix cell */
.composer-grid > label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    break-inside: avoid;
    page-break-inside: avoid;
    font-family: var(--font-condensed);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-primary);
    white-space: nowrap;
}

/* Ensure inputs fill the cell cleanly and never overflow narrow columns */
.composer-grid > label > input,
.composer-grid > label > select,
.composer-grid > input.archive-search {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    text-transform: none;
    letter-spacing: normal;
}

/* Read-only / locked fields (e.g. root moderator row) */
.composer-grid > label > input[readonly],
.composer-grid > label > input:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .composer-grid {
        grid-template-columns: 1fr;
    }
}

.archive-yt-grid {
    display: grid;
    grid-template-columns: minmax(0, 480px);
    max-width: 100%;
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .archive-yt-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

textarea.archive-textarea {
    width: 100%;
    max-width: 100%;
    resize: none;
    overflow: auto;
    padding: 0.75rem 1rem;
    background: var(--bg-obsidian);
    border: 1px solid var(--gold-dim);
    color: var(--cream-text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.5;
}

textarea.archive-textarea:focus {
    outline: none;
    border-color: var(--gold-bright);
    box-shadow: 0 0 12px var(--gold-glow);
}

/* Inline YouTube ID + Refresh icon row inside a single .composer-grid cell */
.yt-id-input-group {
    display: flex;
    align-items: stretch;
    gap: 0.45rem;
    width: 100%;
    min-width: 0;
}

.yt-id-input-group > input.yt-id-input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

.yt-id-input-group > .refresh-yt-btn {
    flex: 0 0 auto;
    padding: 0 0.85rem;
    font-size: 1.15rem;
    line-height: 1;
}

/* Video preview placed at the top of each archive entry card */
.archive-top-video {
    margin-bottom: 1rem;
}

/* ==========================================================================
   CUSTOM GOLD SQUARE CHECKBOX (MATCHES TEXT INPUT HEIGHT)
   ========================================================================== */
.moderation-actions > label {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    user-select: none;
}

.moderation-actions input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    display: inline-grid;
    place-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 2.5rem;
    margin: 0;
    padding: 0;
    background: var(--bg-obsidian);
    border: 2px solid var(--gold-primary);
    border-radius: 0;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.moderation-actions input[type="checkbox"]:hover {
    border-color: var(--gold-bright);
    box-shadow: 0 0 10px var(--gold-glow);
}

.moderation-actions input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 2px;
}

.moderation-actions input[type="checkbox"]::after {
    content: "";
    width: 0.65rem;
    height: 1.25rem;
    border-right: 4px solid var(--gold-bright);
    border-bottom: 4px solid var(--gold-bright);
    transform: rotate(42deg) translate(-1px, -2px) scale(0);
    transform-origin: center;
    transition: transform 0.15s ease;
}

.moderation-actions input[type="checkbox"]:checked {
    background: rgba(212, 175, 55, 0.16);
    border-color: var(--gold-bright);
}

.moderation-actions input[type="checkbox"]:checked::after {
    transform: rotate(42deg) translate(-1px, -2px) scale(1);
}

.archive-editor-card.is-marked-for-delete .archive-delete-collapsible {
    display: none;
}

.archive-editor-card.is-marked-for-delete .archive-title-input[readonly] {
    opacity: 0.75;
    cursor: not-allowed;
}

/* Drag-and-drop reordering states for archive editor cards */
.archive-entry-wrapper {
    position: relative;
}

.archive-editor-card {
    transition: border-color 0.15s ease, opacity 0.15s ease;
}

.archive-drag-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    padding: 0.45rem 0.75rem;
    background: rgba(212, 175, 55, 0.06);
    border: 1px dashed var(--gold-dim);
}

.archive-drag-handle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: grab;
    user-select: none;
    font-family: var(--font-condensed);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-primary);
}

.archive-drag-handle:active {
    cursor: grabbing;
}

.archive-entry-wrapper.is-dragging {
    opacity: 0.45;
}

.archive-entry-wrapper.is-drag-over > .archive-editor-card {
    border-color: var(--gold-bright);
    box-shadow: 0 0 14px var(--gold-glow);
}

/* Preview mode container matching archives.php */
.archive-preview-panel {
    margin-top: 1.5rem;
}

.archive-preview-panel[hidden] {
    display: none;
}

.archive-editor-mode[hidden] {
    display: none;
}

/* Reorder mode panel & draggable movie title tiles */
.archive-reorder-panel {
    margin-top: 1.5rem;
}

.archive-reorder-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.archive-drag-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.15rem;
    background: var(--bg-obsidian);
    border: 1px solid var(--gold-primary);
    color: var(--cream-text);
    cursor: grab;
    user-select: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.archive-drag-tile:hover {
    border-color: var(--gold-bright);
    box-shadow: 0 0 12px var(--gold-glow);
}

.archive-drag-tile:active {
    cursor: grabbing;
}

.archive-drag-tile-title {
    font-family: var(--font-heading, var(--font-body));
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--gold-bright);
}

.archive-drag-tile-grip {
    font-size: 1.1rem;
    color: var(--gold-primary);
    flex: 0 0 auto;
}

.archive-drag-tile.is-dragging {
    opacity: 0.45;
}

.archive-drag-tile.is-drag-over {
    border-color: var(--gold-bright);
    box-shadow: 0 0 16px var(--gold-glow);
}

.admin-preview-card {
    position: relative;
}

.admin-card-edit-btn {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    background: var(--bg-obsidian);
    color: var(--gold-bright);
    border: 1px solid var(--gold-primary);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.admin-card-edit-btn:hover,
.admin-card-edit-btn:focus-visible {
    background: var(--gold-primary);
    color: var(--bg-obsidian);
    border-color: var(--gold-bright);
}

.archive-footer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

/* Top-center sticky up-arrow button inside each entry wrapper on the Edit screen */
.archive-entry-wrapper {
    position: relative;
}

.archive-entry-scroll-top-btn {
    position: sticky;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    margin-bottom: -2.2rem;
    padding: 0;
    background: var(--bg-obsidian);
    color: var(--gold-bright);
    border: 1px solid var(--gold-primary);
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.archive-entry-scroll-top-btn:hover,
.archive-entry-scroll-top-btn:focus-visible {
    background: var(--gold-primary);
    color: var(--bg-obsidian);
    border-color: var(--gold-bright);
}