/* ================================================================
   MORNINGSTAR EDITORIAL — Version 3
   Design: clean financial news aesthetic, white canvas,
   Georgia serif headings, charcoal text, crimson accents,
   data-driven minimal borders, no shadows, no rounded excess.
   ================================================================ */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
    --f-white:      #ffffff;
    --f-offwhite:   #fafaf8;
    --f-snow:       #f4f4f2;
    --f-charcoal:   #141414;
    --f-steel:      #3a3a3a;
    --f-slate:      #5e5e5e;
    --f-silver:     #969696;
    --f-mist:       #c8c8c8;
    --f-wire:       #e4e4e4;
    --f-crimson:    #c1261a;
    --f-crimson2:   #961e14;
    --f-crimson-bg: rgba(193,38,26,0.07);
    --ff-serif:     Georgia, 'Times New Roman', 'Noto Serif SC', 'PingFang SC', serif;
    --ff-sans:      'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    --dur:          0.15s;
    --ease:         ease;
    --site-max:     1240px;
    --gap-h:        16px;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    background: var(--f-white);
    color: var(--f-charcoal);
    font-family: var(--ff-sans);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}
a { color: var(--f-charcoal); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--f-crimson); }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
.fc { zoom: 1; }
.fc::after { content: ''; display: table; clear: both; }


/* ================================================================
   LAYOUT CENTER
   ================================================================ */
.lc {
    width: 100%;
    max-width: var(--site-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gap-h);
    padding-right: var(--gap-h);
}


/* ================================================================
   SITE HEADER
   ================================================================ */
.st-header {
    background: var(--f-white);
    border-bottom: 2px solid var(--f-charcoal);
    position: relative;
}

.st-header-inner {
    display: flex;
    align-items: center;
    height: 52px;
    gap: 0;
    flex-wrap: nowrap;
    overflow: hidden;
}

.st-logotype {
    display: flex;
    align-items: baseline;
    gap: 0;
    flex-shrink: 0;
    min-width: 0;
    flex-wrap: nowrap;
}

.st-sitename {
    font-family: var(--ff-serif);
    font-size: 22px;
    font-weight: 700;
    font-style: normal;
    color: var(--f-charcoal);
    letter-spacing: -0.5px;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
}
.st-sitename:hover { color: var(--f-crimson); }

.st-divider {
    width: 1px;
    height: 16px;
    background: var(--f-mist);
    margin: 0 14px;
    flex-shrink: 0;
}

.st-freshurl {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
}

.st-freshurl-caption {
    font-family: var(--ff-sans);
    font-size: 11px;
    color: var(--f-slate);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.st-freshurl-value {
    font-family: var(--ff-sans);
    font-size: 15px;
    font-weight: 700;
    color: var(--f-crimson);
    letter-spacing: 0.1px;
}


/* ================================================================
   BANNER ZONE
   ================================================================ */
.st-banner {
    margin: 5px 0 3px;
    overflow: hidden;
}


/* ================================================================
   CATEGORY NAV ROWS
   ================================================================ */
.nav-panel {
    background: var(--f-snow);
    border-bottom: 1px solid var(--f-wire);
    padding: 4px 0 3px;
    margin-bottom: 4px;
}

.navr {
    display: flex;
    align-items: flex-start;
    padding: 3px 0;
    border-bottom: 1px solid var(--f-wire);
}

.navr:last-child { border-bottom: none; padding-bottom: 0; }

.navr-badge {
    flex-shrink: 0;
    width: 60px;
    font-family: var(--ff-sans);
    font-size: 10px;
    font-weight: 700;
    color: var(--f-crimson);
    background: var(--f-crimson-bg);
    padding: 3px 2px;
    text-align: center;
    line-height: 1.4;
    margin-right: 10px;
    margin-top: 2px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.navr-items {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 4px;
}

.navr-items a {
    font-family: var(--ff-sans);
    font-size: 13px;
    color: var(--f-steel);
    padding: 2px 8px;
    border-bottom: 2px solid transparent;
    transition: color var(--dur), background var(--dur), border-color var(--dur);
    white-space: nowrap;
}

.navr-items a:hover {
    color: var(--f-crimson);
    background: var(--f-crimson-bg);
    border-bottom-color: var(--f-crimson);
}

.navr-items a.active {
    color: var(--f-crimson);
    font-weight: 600;
    background: var(--f-crimson-bg);
    border-bottom-color: var(--f-crimson);
}


/* ================================================================
   SEARCH BAR
   ================================================================ */
.qbar {
    background: var(--f-offwhite);
    border-bottom: 1px solid var(--f-wire);
    padding: 6px 0;
    margin-bottom: 4px;
}

.qbar-form {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
    width: 100%;
}

.qbar-form input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 34px;
    background: var(--f-white);
    border: 1px solid var(--f-mist);
    border-radius: 17px;
    font-family: var(--ff-sans);
    font-size: 13px;
    color: var(--f-charcoal);
    padding: 0 16px;
    outline: none;
    transition: border-color var(--dur), box-shadow var(--dur);
}

.qbar-form input[type="text"]:focus {
    border-color: var(--f-crimson);
    box-shadow: 0 0 0 2px var(--f-crimson-bg);
}

.qbar-form input[type="text"]::placeholder { color: var(--f-mist); }

.qbar-form button {
    flex-shrink: 0;
    height: 34px;
    background: var(--f-crimson);
    color: var(--f-white);
    border: none;
    border-radius: 17px;
    font-family: var(--ff-sans);
    font-size: 12px;
    font-weight: 700;
    padding: 0 12px;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.2px;
    transition: background var(--dur);
}

.qbar-form button:hover { background: var(--f-crimson2); }


/* ================================================================
   HOT KEYWORDS
   ================================================================ */
.kwbar {
    padding: 5px 0 3px;
    border-bottom: 1px solid var(--f-wire);
    margin-bottom: 4px;
}

.kwbar-head {
    font-family: var(--ff-sans);
    font-size: 11px;
    font-weight: 700;
    color: var(--f-slate);
    text-transform: uppercase;
    letter-spacing: 0.9px;
    margin-bottom: 5px;
}

.kwbar-head b { color: var(--f-crimson); }

.kwbar-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
}

.kwbar-list .kw {
    font-family: var(--ff-sans);
    font-size: 12px;
    color: var(--f-crimson);
    border-bottom: 1px solid rgba(193,38,26,0.28);
    white-space: nowrap;
    transition: color var(--dur), border-color var(--dur);
}

.kwbar-list .kw:hover { color: var(--f-crimson2); border-bottom-color: var(--f-crimson2); }


/* ================================================================
   CONTENT MODULE
   ================================================================ */
.cmod {
    padding: 7px 0 4px;
    border-bottom: 1px solid var(--f-wire);
    margin-bottom: 4px;
}

.cmod:last-child { border-bottom: none; }

.cmod-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 9px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--f-charcoal);
}

.cmod-title {
    font-family: var(--ff-serif);
    font-size: 14px;
    font-weight: 700;
    color: var(--f-charcoal);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cmod-title a { color: var(--f-charcoal); }
.cmod-title a:hover { color: var(--f-crimson); }

.cmod-meta {
    font-family: var(--ff-sans);
    font-size: 11px;
    color: var(--f-silver);
}


/* ================================================================
   FILM GRID
   ================================================================ */
.fgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fgrid-cell {
    display: flex;
    flex-direction: column;
}

.fgrid-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    background: #ececec;
    aspect-ratio: 600 / 350;
    border: 1px solid var(--f-wire);
    transition: border-color var(--dur), box-shadow var(--dur);
}

.fgrid-thumb:hover {
    border-color: var(--f-crimson);
    box-shadow: 0 2px 8px rgba(193,38,26,0.14);
}

.fgrid-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.25s var(--ease);
}

.fgrid-thumb:hover img { transform: scale(1.04); }

.fgrid-info { padding: 4px 1px 2px; }

.fgrid-info h6 {
    font-family: var(--ff-sans);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    color: var(--f-slate);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fgrid-info h6 a { color: var(--f-slate); }
.fgrid-info h6 a:hover { color: var(--f-crimson); }


/* ================================================================
   DETAIL PAGE — shared
   ================================================================ */
.dpage-title {
    font-family: var(--ff-serif);
    font-size: 16px;
    text-align: center;
    padding: 14px 16px;
    line-height: 1.8;
    word-break: break-all;
    border-bottom: 1px solid var(--f-wire);
    margin-bottom: 10px;
    color: var(--f-charcoal);
}

.dpage-title a {
    color: var(--f-crimson);
    font-weight: 700;
    margin-right: 5px;
}

.dpage-specs {
    background: var(--f-snow);
    border: 1px solid var(--f-wire);
    border-left: 3px solid var(--f-crimson);
    font-family: var(--ff-sans);
    font-size: 14px;
    line-height: 1.9;
    padding: 14px 18px;
    margin-bottom: 10px;
    color: var(--f-steel);
}

.dpage-capture { margin-top: 10px; width: 100%; }
.dpage-capture picture { display: block; width: 100%; }
.dpage-capture picture img,
.dpage-capture img {
    width: 100%; height: auto; display: block;
    border: 1px solid var(--f-wire);
}


/* ================================================================
   DOWNLOAD / ACTION BUTTONS
   ================================================================ */
.dpage-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 14px 0;
}

.act-btn {
    display: inline-flex;
    align-items: center;
    background: var(--f-crimson);
    color: var(--f-white);
    font-family: var(--ff-sans);
    font-size: 13px;
    font-weight: 700;
    padding: 9px 22px;
    border-radius: 17px;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: background var(--dur), transform var(--dur);
}

.act-btn:hover {
    background: var(--f-crimson2);
    color: var(--f-white);
    transform: translateY(-1px);
}

.dpage-dlhint {
    text-align: center;
    padding: 6px 0;
    font-family: var(--ff-sans);
    font-size: 13px;
    color: var(--f-slate);
}

.dpage-dlhint a { color: var(--f-crimson); font-weight: 600; }
.dpage-dlhint a:hover { color: var(--f-crimson2); }


/* ================================================================
   SHARE STRIP
   ================================================================ */
.share-strip {
    background: var(--f-snow);
    border: 1px solid var(--f-wire);
    padding: 9px 13px;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.share-strip-lbl {
    font-family: var(--ff-sans);
    font-size: 12px;
    font-weight: 600;
    color: var(--f-slate);
    white-space: nowrap;
}

.share-strip-url {
    flex: 1;
    font-family: monospace;
    font-size: 12px;
    color: var(--f-silver);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.share-strip-copy {
    flex-shrink: 0;
    background: var(--f-charcoal);
    color: var(--f-white);
    border: none;
    border-radius: 14px;
    padding: 5px 13px;
    font-family: var(--ff-sans);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--dur);
}

.share-strip-copy:hover { background: var(--f-crimson); }


/* ================================================================
   PLAYER
   ================================================================ */
.vplayer-wrap {
    margin: 8px 0;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--f-wire);
}


/* ================================================================
   PAGINATION
   ================================================================ */
.pg-nav { margin-top: 14px; padding-bottom: 8px; }

.pg-nav-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 0;
}

.pg-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    background: var(--f-white);
    border: 1px solid var(--f-wire);
    color: var(--f-steel);
    font-family: var(--ff-sans);
    font-size: 13px;
    transition: background var(--dur), color var(--dur), border-color var(--dur);
}

.pg-nav-btn:hover {
    background: var(--f-crimson-bg);
    color: var(--f-crimson);
    border-color: rgba(193,38,26,0.4);
}

.pg-nav-cur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    background: var(--f-crimson);
    border: 1px solid var(--f-crimson);
    color: var(--f-white);
    font-family: var(--ff-sans);
    font-size: 13px;
    font-weight: 700;
}


/* ================================================================
   FOOTER
   ================================================================ */
.ft-links {
    background: var(--f-snow);
    border-top: 1px solid var(--f-wire);
    border-bottom: 1px solid var(--f-wire);
    padding: 8px 0;
    margin-top: 6px;
}

.ft-links-cap {
    font-family: var(--ff-sans);
    font-size: 11px;
    font-weight: 700;
    color: var(--f-slate);
    text-transform: uppercase;
    letter-spacing: 0.9px;
    margin-bottom: 6px;
}

.ft-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 14px;
}

.ft-links-list dd { margin: 0; }

.ft-links-list a {
    font-family: var(--ff-sans);
    font-size: 12px;
    color: var(--f-steel);
    border-bottom: 1px solid var(--f-wire);
    transition: color var(--dur), border-color var(--dur);
}

.ft-links-list a:hover { color: var(--f-crimson); border-bottom-color: var(--f-crimson); }

.ft-copyright {
    background: var(--f-charcoal);
    padding: 10px 0;
    margin-top: 5px;
}

.ft-copyright-txt {
    text-align: center;
    font-family: var(--ff-sans);
    font-size: 12px;
    color: rgba(255,255,255,0.42);
    line-height: 1.8;
}


/* ================================================================
   SHOW/HIDE HELPERS
   ================================================================ */
@media (max-width: 768px) { .only-pc { display: none !important; } }
@media (min-width: 769px) { .only-mob { display: none !important; } }


/* ================================================================
   RESPONSIVE BREAKPOINTS
   ================================================================ */

/* — Small phones ≤480px — */
@media (max-width: 480px) {
    /* Zone badge = 15% */
    .navr-badge { width: 15%; font-size: 10px; padding: 2px 1px; margin-right: 4px; }
    .navr-items { width: 85%; }
    /* 4 nav links per row → 2 rows for 8 items */
    .navr-items a {
        width: calc(25% - 4px);
        font-size: 12px;
        padding: 2px 2px;
        text-align: center;
    }
    /* Film: 2 columns */
    .fgrid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
    /* Search: always single line */
    .qbar-form { flex-wrap: nowrap; }
    .qbar-form input[type="text"] { font-size: 12px; padding: 0 8px; }
    .qbar-form button { font-size: 11px; padding: 0 7px; }
    /* Brand */
    .st-sitename { font-size: 17px; }
    .st-freshurl-value { font-size: 13px; }
}

/* — Medium phones 481–768px — */
@media (min-width: 481px) and (max-width: 768px) {
    .navr-badge { width: 15%; font-size: 10px; padding: 2px 2px; margin-right: 5px; }
    .navr-items { width: 85%; }
    .navr-items a {
        width: calc(25% - 5px);
        font-size: 13px;
        padding: 2px 3px;
        text-align: center;
    }
    .fgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .qbar-form { flex-wrap: nowrap; }
}

/* — PC ≥769px — */
@media (min-width: 769px) {
    .navr-items a { flex: 1; text-align: center; }
    .fgrid { grid-template-columns: repeat(4, 1fr); }
}
