/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

/* ── Palette ────────────────────────────────────────────── */
:root {
    --accent:      #e8a000;
    --accent-dim:  #b37800;
    --bg:          #0f1117;
    --bg2:         #181b24;
    --bg3:         #20242f;
    --text:        #dde1ed;
    --text-muted:  #6e7491;
    --border:      #272b38;
    --r:           10px;
}

/* ── Base ───────────────────────────────────────────────── */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; opacity: .85; }
img { max-width: 100%; height: auto; }

/* ── Layout ─────────────────────────────────────────────── */
.wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 18px;
    width: 100%;
}
main { flex: 1; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.logo {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}
.logo:hover { text-decoration: none; opacity: 1; }
.logo-icon {
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 7px 0 7px 13px;
    border-color: transparent transparent transparent var(--accent);
    margin-right: 8px;
    vertical-align: middle;
}
.logo-text { vertical-align: middle; }

/* ── Navigation ─────────────────────────────────────────── */
.site-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    align-items: center;
}
.site-nav a {
    font-size: .88rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color .15s;
}
.site-nav a:hover,
.site-nav a.active {
    color: var(--accent);
    text-decoration: none;
    opacity: 1;
}
.site-nav a.active { font-weight: 700; }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    color: var(--text);
    font-size: 1.2rem;
    line-height: 1;
}

/* ── Page hero (inner pages) ────────────────────────────── */
.page-hero {
    padding: 28px 0 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}
.page-hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 8px;
}
.page-hero p {
    color: var(--text-muted);
    font-size: .94rem;
}

/* ── Breadcrumbs ────────────────────────────────────────── */
.breadcrumbs {
    font-size: .82rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumb_sep { margin: 0 6px; opacity: .5; }

/* ── Hero (poster + meta) ───────────────────────────────── */
.hero {
    display: flex;
    gap: 28px;
    padding: 30px 0 22px;
    align-items: flex-start;
}
.poster-wrap {
    flex-shrink: 0;
    width: 190px;
}
.poster-wrap img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: var(--r);
    display: block;
    box-shadow: 0 8px 32px rgba(0,0,0,.55);
}
.movie-meta { flex: 1; min-width: 0; }
.movie-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

/* Badges */
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: .82rem;
    color: var(--text-muted);
}
.badge.hi {
    background: var(--accent);
    color: #111;
    border-color: var(--accent);
    font-weight: 700;
}

/* Meta table */
.meta-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.meta-table td { padding: 4px 0; vertical-align: top; }
.meta-table td:first-child {
    color: var(--accent);
    white-space: nowrap;
    padding-right: 14px;
    min-width: 90px;
}

/* ── Player ─────────────────────────────────────────────── */
.player-section { margin: 24px 0; }
.player-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--r);
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 24px rgba(0,0,0,.6);
}
#dcvideo {
    width: 100% !important;
    height: 100% !important;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Section title ──────────────────────────────────────── */
.section-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

/* ── Description / content ──────────────────────────────── */
.desc-section,
.content-section {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 20px 22px;
    margin-bottom: 28px;
    font-size: .94rem;
    line-height: 1.75;
}
.content-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 24px 0 10px;
    color: var(--text);
}
.content-section h2:first-child { margin-top: 0; }
.content-section p { margin-bottom: 12px; }
.content-section p:last-child { margin-bottom: 0; }
.content-section ul {
    margin: 0 0 12px 20px;
}
.content-section li { margin-bottom: 6px; }

/* ── Fighter cards (home) ───────────────────────────────── */
.fighters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}
.fighter-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    transition: border-color .15s, transform .15s;
}
.fighter-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    text-decoration: none;
    opacity: 1;
}
.fighter-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.fighter-card-body {
    padding: 14px 16px;
}
.fighter-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.fighter-card-record {
    font-size: .82rem;
    color: var(--accent);
    font-weight: 600;
}

/* ── Fighter profile ────────────────────────────────────── */
.fighter-profile {
    display: flex;
    gap: 28px;
    margin-bottom: 28px;
    align-items: flex-start;
}
.fighter-photo {
    flex-shrink: 0;
    width: 220px;
}
.fighter-photo img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--r);
    box-shadow: 0 8px 32px rgba(0,0,0,.55);
}
.fighter-info { flex: 1; min-width: 0; }
.fighter-info h1 { font-size: 1.75rem; margin-bottom: 8px; }
.fighter-nickname {
    color: var(--accent);
    font-size: .94rem;
    margin-bottom: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}
.stat-item {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
}
.stat-label {
    font-size: .75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
}
.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

/* ── Timeline ───────────────────────────────────────────── */
.timeline { margin-bottom: 28px; }
.timeline-item {
    position: relative;
    padding-left: 28px;
    padding-bottom: 24px;
    border-left: 2px solid var(--border);
    margin-left: 8px;
}
.timeline-item:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg);
}
.timeline-year {
    font-size: .82rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}
.timeline-title {
    font-weight: 700;
    margin-bottom: 6px;
}
.timeline-text {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ── Compare table ──────────────────────────────────────── */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    margin-bottom: 28px;
}
.compare-table th,
.compare-table td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-align: left;
}
.compare-table th {
    background: var(--bg3);
    color: var(--accent);
    font-weight: 700;
}
.compare-table tr:nth-child(even) td { background: var(--bg2); }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-list { margin-bottom: 32px; }
.faq-item {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    margin-bottom: 10px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: none;
    border: none;
    color: var(--text);
    font-size: .94rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.4;
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
    flex-shrink: 0;
    font-size: 1.2rem;
    color: var(--accent);
    transition: transform .2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
    display: none;
    padding: 0 18px 16px;
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ── CTA button ─────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #111;
    font-weight: 700;
    font-size: .9rem;
    padding: 10px 22px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background .15s, opacity .15s;
}
.btn:hover {
    background: var(--accent-dim);
    text-decoration: none;
    opacity: 1;
    color: #111;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 28px 0 20px;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
    text-align: left;
}
.footer-col h3 {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 10px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a {
    font-size: .85rem;
    color: var(--text-muted);
}
.footer-col a:hover { color: var(--accent); }
.footer-copy {
    text-align: center;
    font-size: .78rem;
    color: var(--text-muted);
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 720px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg2);
        border-bottom: 1px solid var(--border);
        padding: 12px 18px 16px;
    }
    .site-header { position: relative; }
    .site-header.nav-open .site-nav { display: block; }
    .site-nav ul { flex-direction: column; align-items: flex-start; gap: 10px; }
    .fighters-grid { grid-template-columns: 1fr; }
    .fighter-profile { flex-direction: column; }
    .fighter-photo { width: 160px; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
    .hero { flex-direction: column; gap: 18px; }
    .poster-wrap { width: 130px; }
    .movie-title, .page-hero h1 { font-size: 1.35rem; }
    .compare-table { font-size: .82rem; }
    .compare-table th, .compare-table td { padding: 8px 10px; }
}
