/* ============================================================
   OZT Website — Tema Cinema Oscuro Moderno
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-main:        #080c14;
    --bg-card:        #0f1623;
    --bg-card-hover:  #161f32;
    --bg-nav:         #040608;
    --accent-gold:    #c8a034;
    --accent-gold-lt: #e6c05a;
    --accent-red:     #c0392b;
    --accent-red-lt:  #e74c3c;
    --text-primary:   #f0f0f0;
    --text-secondary: #8b95a5;
    --text-muted:     #515d6e;
    --border:         rgba(255,255,255,0.07);
    --shadow:         0 8px 32px rgba(0,0,0,0.5);
    --radius:         10px;
    --radius-lg:      16px;
}

html { font-size: 15px; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.65;
    min-height: 100vh;
}

h1, h2, h3, h4, h5 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-primary);
    margin-top: 0;
}

a { color: var(--accent-gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-gold-lt); }
img { max-width: 100%; height: auto; }

/* ─── Site Header ─── */
.ozt-site-header {
    width: 100%;
    background: var(--bg-nav, #000);
    padding: 0.75rem 0;
}
.ozt-site-header .container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.ozt-header-link { display: inline-block; line-height: 0; }
.ozt-header-img {
    display: block;
    width: auto;
    max-height: 90px;
    height: auto;
    object-fit: contain;
}

/* ─── Navbar ─── */
.ozt-navbar {
    background: var(--bg-nav);
    border-bottom: 2px solid var(--accent-gold);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

.ozt-navbar .container-fluid {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem;
    height: 64px;
}

/* Centrado óptico real del menú en escritorio:
   3 columnas (1fr auto 1fr) garantizan que el bloque central quede
   alineado con el centro de la página, sin importar el ancho del bloque
   derecho (idiomas, login/admin). */
@media (min-width: 993px) {
    .ozt-navbar .container-fluid {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
    }
    .ozt-nav-links {
        grid-column: 2;
        flex: none;
    }
    .ozt-nav-right {
        grid-column: 3;
        justify-self: end;
    }
}

.ozt-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.ozt-brand-icon { font-size: 2rem; line-height: 1; }

.ozt-brand-text { display: flex; flex-direction: column; line-height: 1.1; }

.ozt-brand-name {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--accent-gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ozt-brand-sub {
    font-size: 0.6rem;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.ozt-nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ozt-nav-links a {
    display: block;
    padding: 0.5rem 1rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: color .2s, background .2s;
}

.ozt-nav-links a:hover, .ozt-nav-links a.active {
    color: var(--accent-gold);
    background: rgba(200,160,52,0.1);
}

.ozt-nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.lang-switcher {
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 2px;
}

.lang-btn {
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .2s;
    text-transform: uppercase;
}

.lang-btn.active, .lang-btn:hover { background: var(--accent-gold); color: #000; }

.btn-nav-admin {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    background: rgba(200,160,52,0.15);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 6px;
    letter-spacing: 0.06em;
    transition: all .2s;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
}

.btn-nav-admin:hover { background: var(--accent-gold); color: #000; }

.btn-nav-logout {
    font-size: 0.8rem;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all .2s;
}

.btn-nav-logout:hover { border-color: var(--accent-red); color: var(--accent-red); }

.navbar-toggler-ozt {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* ─── Hero ─── */
.hero-section {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #000;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    opacity: 0.4;
}

.hero-bg-blur {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(8,12,20,0.15) 0%,
        rgba(8,12,20,0.45) 40%,
        rgba(8,12,20,0.88) 75%,
        rgba(8,12,20,1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 4rem 0 3rem;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-gold);
    color: #000;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.7);
    margin-bottom: 1rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    align-items: center;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.hero-meta-item .value { color: var(--accent-gold-lt); font-weight: 500; }

.hero-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-red);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.05em;
    padding: 8px 18px;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

.hero-synopsis {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin-bottom: 1.75rem;
    line-height: 1.7;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-poster {
    position: absolute;
    right: 5%;
    bottom: 5%;
    z-index: 3;
    width: clamp(120px, 14vw, 210px);
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.7);
    border: 2px solid rgba(200,160,52,0.3);
}

.hero-title-link {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}
.hero-title-link:hover { color: var(--accent-gold-lt); }

.hero-poster-link {
    position: absolute;
    right: 5%;
    bottom: 5%;
    z-index: 3;
    display: inline-block;
    line-height: 0;
    transition: transform .25s ease;
}
.hero-poster-link:hover { transform: scale(1.03); }
.hero-poster-link .hero-poster {
    position: static;
    right: auto;
    bottom: auto;
    display: block;
}

/* ─── Sections ─── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 1.6rem;
    background: var(--accent-gold);
    border-radius: 2px;
}

.section-link {
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-gold);
    border: 1px solid rgba(200,160,52,0.35);
    padding: 6px 14px;
    border-radius: 6px;
    transition: all .2s;
}

.section-link:hover { background: rgba(200,160,52,0.1); color: var(--accent-gold-lt); }

.ozt-section { padding: 4rem 0; }
.ozt-section + .ozt-section { border-top: 1px solid var(--border); }

/* ─── Movie Cards ─── */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.movie-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform .25s, box-shadow .25s, border-color .25s;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(200,160,52,0.3);
    color: inherit;
}

.movie-card-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

.movie-card-poster-placeholder {
    width: 100%;
    aspect-ratio: 2/3;
    background: linear-gradient(135deg, #0f1623 0%, #1a2234 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2.5rem;
}

.movie-card-body { padding: 0.85rem; }

.movie-card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-dir {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.movie-card-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.movie-pill {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.movie-pill-date {
    font-size: 0.72rem;
    padding: 3px 9px;
    border-radius: 12px;
    background: rgba(200,160,52,0.12);
    color: var(--accent-gold);
    border: 1px solid rgba(200,160,52,0.25);
    font-weight: 500;
}

.movie-pill-ov {
    background: rgba(192,57,43,0.12);
    color: #e57373;
    border-color: rgba(192,57,43,0.25);
}

/* ─── Movie Detail ─── */
.movie-detail-hero {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.movie-detail-banner {
    position: relative;
    min-height: 300px;
    background: linear-gradient(135deg, #0f1623, #1a2234);
    display: flex;
    align-items: flex-end;
}

.movie-detail-banner-img {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: 0.25;
}

.movie-detail-banner-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15,22,35,0.95) 0%, rgba(15,22,35,0.6) 60%, transparent 100%);
}

.movie-detail-banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 2rem;
    padding: 2rem;
    align-items: flex-end;
    width: 100%;
}

.movie-detail-poster {
    width: 160px;
    flex-shrink: 0;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    border: 2px solid rgba(200,160,52,0.3);
}

.movie-detail-info { flex: 1; }

.movie-detail-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.movie-detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-meta-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.detail-meta-chip strong { color: var(--accent-gold-lt); }

.detail-body { padding: 2rem; }

.detail-section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}

/* ─── YouTube embed ─── */
.yt-embed-wrapper {
    position: relative;
    width: 100%;
    max-width: 760px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}
.yt-embed-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.links-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all .2s;
    border: 1px solid transparent;
}

.link-btn-fa { background: rgba(255,165,0,0.1); border-color: rgba(255,165,0,0.3); color: #ffa500; }
.link-btn-fa:hover { background: rgba(255,165,0,0.2); color: #ffa500; }
.link-btn-imdb { background: rgba(245,197,24,0.1); border-color: rgba(245,197,24,0.3); color: #f5c518; }
.link-btn-imdb:hover { background: rgba(245,197,24,0.2); color: #f5c518; }
.link-btn-yt { background: rgba(255,0,0,0.1); border-color: rgba(255,0,0,0.25); color: #ff4444; }
.link-btn-yt:hover { background: rgba(255,0,0,0.2); color: #ff4444; }
.link-btn-wiki { background: rgba(255,255,255,0.05); border-color: var(--border); color: var(--text-secondary); }
.link-btn-wiki:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }

/* ─── Blog ─── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* ─── Blog featured post ─── */
.blog-featured-link {
    display: block;
    text-decoration: none;
    margin-bottom: 2.5rem;
}
.blog-featured {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow .2s, border-color .2s;
}
.blog-featured:hover {
    box-shadow: 0 6px 32px rgba(0,0,0,.5);
    border-color: var(--accent-gold);
}
.blog-featured-img-wrap {
    position: relative;
    overflow: hidden;
    max-height: 420px;
}
.blog-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.blog-featured:hover .blog-featured-img { transform: scale(1.04); }
.blog-featured-body {
    padding: 2rem 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.blog-featured-date {
    font-size: .8rem;
    color: var(--text-muted);
}
.blog-featured-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.75rem;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0;
}
.blog-featured-excerpt {
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0;
    font-size: .95rem;
}
@media (max-width: 680px) {
    .blog-featured { grid-template-columns: 1fr; }
    .blog-featured-img-wrap { min-height: 200px; }
}

.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform .25s, box-shadow .25s, border-color .25s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(200,160,52,0.25);
}

.blog-card-img { width: 100%; height: 180px; object-fit: cover; }

.blog-card-img-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #0f1623, #1a2234);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
}

.blog-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ─── Blog HTML content ─── */
.blog-html-content {
    color: var(--text-secondary);
    line-height: 1.85;
}

/* ─── Lectura cómoda en pantallas anchas (artículo individual) ─── */
/* En pantallas grandes las líneas demasiado largas (>90 caracteres) cansan la vista.
   Limitamos el ancho del artículo a ~760px (≈ 65-75 ch). En móvil y tablet se
   comporta igual que antes (el max-width no afecta porque el contenedor es estrecho). */
.blog-featured--reading {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}
.blog-featured--reading .blog-featured-body {
    padding: 2rem 2.25rem 2rem;
}
.blog-featured--reading .blog-featured-title {
    font-size: 2.1rem;
    line-height: 1.15;
    margin-bottom: .5rem;
}
.blog-featured--reading .blog-html-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-primary);
}
.blog-featured--reading .blog-html-content p {
    margin: 0 0 1.15rem;
}
@media (max-width: 600px) {
    .blog-featured--reading .blog-featured-body { padding: 1.25rem 1.25rem 1.5rem; }
    .blog-featured--reading .blog-featured-title { font-size: 1.55rem; }
}

/* ─── Dual editor (WYSIWYG + HTML tabs) ─── */
.dual-editor {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.dual-editor-tabs {
    display: flex;
    background: #12122a;
    border-bottom: 1px solid var(--border);
}
.dual-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: .45rem 1.1rem;
    font-size: .82rem;
    cursor: pointer;
    border-right: 1px solid var(--border);
    transition: color .15s, background .15s;
}
.dual-tab:hover  { color: var(--text-primary); background: rgba(255,255,255,.04); }
.dual-tab.active { color: var(--accent-gold); background: rgba(212,175,55,.08); }

/* ─── Quill editor dark theme ─── */
.quill-box { }
.quill-editor-box {
    background: #1a1a2e;
    color: var(--text-primary);
    border-radius: 0 0 6px 6px;
    min-height: 280px;
    font-size: .95rem;
    line-height: 1.75;
}
.ql-toolbar.ql-snow {
    background: #12122a;
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
}
.ql-container.ql-snow {
    border: none !important;
    min-height: 280px;
}
.ql-toolbar .ql-stroke { stroke: var(--text-muted) !important; }
.ql-toolbar .ql-fill  { fill:   var(--text-muted) !important; }
.ql-toolbar .ql-picker-label { color: var(--text-muted) !important; }
.ql-toolbar button:hover .ql-stroke,
.ql-toolbar button.ql-active .ql-stroke { stroke: var(--accent-gold) !important; }
.ql-toolbar button:hover .ql-fill,
.ql-toolbar button.ql-active .ql-fill   { fill:   var(--accent-gold) !important; }
.ql-editor { background: #1a1a2e; color: var(--text-primary); min-height: 280px; }
.ql-editor.ql-blank::before { color: var(--text-muted) !important; font-style: normal; }

/* CodeMirror inside dual editor */
.dual-pane .CodeMirror {
    height: 320px;
    font-size: .88rem;
    border-radius: 0;
}

.blog-html-content h4, .blog-html-content h5, .blog-html-content h6 {
    font-family: 'Oswald', sans-serif;
    color: var(--text-primary);
    margin: 1.5rem 0 .75rem;
}
.blog-html-content p { margin: 0 0 1rem; }
.blog-html-content a { color: var(--accent-gold); text-decoration: underline; }
.blog-html-content a:hover { color: var(--accent-gold-lt); }
.blog-html-content ul, .blog-html-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.blog-html-content li { margin-bottom: .35rem; }
.blog-html-content img { max-width: 100%; border-radius: 6px; margin: .75rem 0; }
.blog-html-content blockquote {
    border-left: 3px solid var(--accent-gold);
    margin: 1rem 0;
    padding: .5rem 1rem;
    color: var(--text-muted);
    font-style: italic;
}
.blog-html-content table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.blog-html-content th, .blog-html-content td {
    border: 1px solid var(--border);
    padding: .5rem .75rem;
    text-align: left;
}
.blog-html-content th { background: var(--bg-card); color: var(--accent-gold); }
.blog-html-content pre, .blog-html-content code {
    background: var(--bg-card);
    border-radius: 4px;
    font-size: .88rem;
    padding: .15rem .4rem;
}
.blog-html-content pre { padding: 1rem; overflow-x: auto; }

.blog-tag-pin {
    font-size: 0.7rem;
    padding: 2px 9px;
    border-radius: 12px;
    background: rgba(200,160,52,0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(200,160,52,0.3);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex: 1;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.blog-read-more { font-size: 0.82rem; color: var(--accent-gold); font-weight: 500; }
.blog-read-more:hover { color: var(--accent-gold-lt); }

/* ─── Buttons ─── */
.btn-ozt-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-gold);
    color: #000;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 10px 22px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}

.btn-ozt-primary:hover {
    background: var(--accent-gold-lt);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(200,160,52,0.35);
}

.btn-ozt-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-primary);
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 10px 22px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}

.btn-ozt-secondary:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.35); color: var(--text-primary); }

.btn-ozt-danger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(192,57,43,0.15);
    color: var(--accent-red-lt);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid rgba(192,57,43,0.3);
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}

.btn-ozt-danger:hover { background: rgba(192,57,43,0.3); color: var(--accent-red-lt); }

/* ─── Forms ─── */
.ozt-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.form-label-ozt {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    display: block;
}

.form-control-ozt {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}

.form-control-ozt:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(200,160,52,0.12);
    background: rgba(255,255,255,0.06);
}

.form-control-ozt::placeholder { color: var(--text-muted); }
textarea.form-control-ozt { resize: vertical; min-height: 120px; }

.form-check-ozt { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.form-check-ozt input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent-gold); cursor: pointer; }

/* ─── Admin ─── */
.admin-table { width: 100%; border-collapse: collapse; }

.admin-table th {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-weight: 600;
}

.admin-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    vertical-align: middle;
}

.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ─── Page Header ─── */
.page-header {
    padding: 3.5rem 0 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2.5rem;
    background: linear-gradient(180deg, rgba(200,160,52,0.04) 0%, transparent 100%);
}

.page-header-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 0.5rem;
}

.page-header-title::before {
    content: '';
    display: block;
    width: 5px;
    height: 2rem;
    background: var(--accent-gold);
    border-radius: 3px;
}

.page-header-sub { color: var(--text-muted); font-size: 0.9rem; margin-left: calc(5px + 14px); }

/* ─── Pagination ─── */
.ozt-pagination {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.ozt-pagination a, .ozt-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    transition: all .2s;
}

.ozt-pagination a:hover { background: rgba(200,160,52,0.1); border-color: rgba(200,160,52,0.3); color: var(--accent-gold); }
.ozt-pagination span.current { background: var(--accent-gold); color: #000; border-color: var(--accent-gold); font-weight: 700; }

/* ============================================================
   MID THEME OVERRIDE — “twilight slate”
   Tono intermedio: ni el negro cinema original ni un tema claro.
   Fondo gris pizarra suave, tarjetas algo más claras, texto
   blanquecino. Mantiene el dorado de marca y los héroes/banners
   oscuros. Para volver al tema oscuro original basta con eliminar
   todo este bloque.
   ============================================================ */

:root {
    --bg-main:        #2a3142;   /* slate medio */
    --bg-card:        #353d51;   /* tarjeta un punto más clara */
    --bg-card-hover:  #404a61;
    --bg-nav:         #1f2533;   /* navbar algo más profunda para identidad */
    --text-primary:   #e8ebf0;   /* off-white, no estridente */
    --text-secondary: #aab3c2;
    --text-muted:     #7d869a;
    --border:         rgba(255, 255, 255, 0.08);
    --shadow:         0 6px 24px rgba(0, 0, 0, 0.28);
}

body { background: var(--bg-main); color: var(--text-primary); }

/* Header / navbar */
.ozt-site-header { background: var(--bg-nav); }
.ozt-navbar      { background: var(--bg-nav); box-shadow: 0 2px 14px rgba(0,0,0,0.35); }

/* Placeholders de pósters / blog → degradado slate (no negro absoluto) */
.movie-card-poster-placeholder,
.blog-card-img-placeholder {
    background: linear-gradient(135deg, #353d51 0%, #404a61 100%);
    color: var(--text-muted);
}

/* Banner del detalle de película */
.movie-detail-banner      { background: linear-gradient(135deg, #353d51, #404a61); }
.movie-detail-banner-grad { background: linear-gradient(to right, rgba(31,37,51,0.92) 0%, rgba(31,37,51,0.55) 60%, transparent 100%); }

/* Hero: aclaramos un pelín el degradado para que case con el fondo */
.hero-section { background: #1f2533; }
.hero-bg-blur {
    background: linear-gradient(to bottom,
        rgba(31,37,51,0.10) 0%,
        rgba(31,37,51,0.40) 40%,
        rgba(31,37,51,0.85) 75%,
        rgba(31,37,51,1)    100%);
}

/* Inputs del formulario OZT (fondo apenas más claro que la tarjeta) */
.form-control-ozt       { background: rgba(255,255,255,0.05); }
.form-control-ozt:focus { background: rgba(255,255,255,0.08); }

/* Editor dual + Quill — superficies acordes al slate */
.dual-editor-tabs   { background: #2f3648; }
.quill-editor-box,
.ql-editor          { background: #2f3648; color: var(--text-primary); }
.ql-toolbar.ql-snow { background: #2f3648; }

/* Page header: tinte dorado un poco más visible sobre slate */
.page-header { background: linear-gradient(180deg, rgba(200,160,52,0.06) 0%, transparent 100%); }

/* Tarjetas: sombra algo más suave que la del tema oscuro original */
.blog-featured:hover,
.blog-card:hover,
.movie-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.30); }


/* ─── Alerts ─── */
.ozt-alert {
    padding: 0.9rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ozt-alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25); color: #4ade80; }
.ozt-alert-danger { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25); color: #f87171; }

.info-berezia {
    background: linear-gradient(135deg, rgba(200,160,52,0.12) 0%, rgba(200,160,52,0.04) 100%);
    border: 1px solid rgba(200,160,52,0.3);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--accent-gold-lt);
}

/* ─── Login ─── */
.login-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo-icon { font-size: 3rem; display: block; margin-bottom: 0.5rem; }
.login-logo-name { font-family: 'Oswald', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--accent-gold); letter-spacing: 0.1em; text-transform: uppercase; }

/* ─── Footer ─── */
.ozt-footer {
    background: var(--bg-nav);
    border-top: 1px solid var(--border);
    margin-top: 5rem;
    padding: 3rem 0 1.5rem;
}

.footer-brand { font-family: 'Oswald', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--accent-gold); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.5rem; }
.footer-tagline { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1rem; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.82rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent-gold); }

.footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ─── Responsive ─── */
@media (max-width: 992px) {
    .hero-poster { display: none; }
    .ozt-nav-links { display: none; }
    .ozt-nav-links.show {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: var(--bg-nav);
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        z-index: 999;
    }
    .navbar-toggler-ozt { display: block; }
    .ozt-navbar .container-fluid { flex-wrap: wrap; height: auto; padding: 0.75rem 1rem; }
}

@media (max-width: 768px) {
    .hero-section { min-height: 70vh; }
    .hero-title { font-size: 2rem; }
    .movies-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .blog-grid { grid-template-columns: 1fr; }
    .movie-detail-banner-content { flex-direction: column; gap: 1rem; }
    .movie-detail-poster { width: 120px; }
}

@media (max-width: 576px) {
    .movies-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .hero-actions { flex-direction: column; }
    .hero-meta { gap: 0.75rem; }
}
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}