/* Independent-style Editorial Template — Newspaper Clean */

:root {
    --ink:          #111111;
    --ink-mid:      #333333;
    --ink-soft:     #666666;
    --ink-faint:    #999999;
    --teal:         #007a7a;
    --teal-deep:    #005f5f;
    --teal-light:   rgba(0, 122, 122, 0.09);
    --red:          #cc1f1f;
    --red-deep:     #a01010;
    --rule:         #e2e2e2;
    --rule-dark:    #c8c8c8;
    --bg:           #f6f6f6;
    --surface:      #ffffff;
    --tag-bg:       #efefef;
    --radius-s:     3px;
    --radius-m:     5px;
    --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --trans:        all 0.22s var(--ease);
    --shadow-xs:    0 1px 3px rgba(0,0,0,0.07);
    --shadow-sm:    0 2px 8px rgba(0,0,0,0.09);
    --shadow-md:    0 4px 16px rgba(0,0,0,0.13);
    --maxw:         1080px;
    --sp:           8px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: Georgia, 'Times New Roman', 'SimSun', serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── MASTHEAD ── */
.masthead {
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    padding: 10px 0;
}

.masthead-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
}

.masthead-brand-lnk {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.masthead-site-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 27px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.4px;
    line-height: 1;
    text-decoration: none;
    border-bottom: none;
}

.masthead-vline {
    width: 1px;
    height: 28px;
    background: var(--rule-dark);
    flex-shrink: 0;
}

.masthead-domain-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.masthead-domain-badge {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--surface);
    background: var(--teal);
    padding: 2px 7px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    white-space: nowrap;
}

.masthead-domain-text {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--ink-mid);
    letter-spacing: 0.1px;
    white-space: nowrap;
}

/* ── CONTAINER ── */
.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 16px;
}

.content { padding: 7px 0; }

/* ── PROMO BANNER ── */
.promo-zone {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-m);
    margin: 3px 0;
}

.promo-zone img { display: block; width: 100%; }

/* ── NAV MODULE ── */
.navmod {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-top: 3px solid var(--teal);
    border-radius: 0 0 var(--radius-m) var(--radius-m);
    overflow: hidden;
    margin-bottom: var(--sp);
    box-shadow: var(--shadow-xs);
}

.navmod-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--rule);
}

.navmod-row:last-child { border-bottom: none; }

.navmod-zone {
    background: var(--teal);
    color: #fff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    width: 10%;
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 5px;
    flex-shrink: 0;
    letter-spacing: 0.2px;
    line-height: 1.3;
}

.navmod-links {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 9px 10px;
    align-items: center;
    background: var(--surface);
}

.navmod-links a {
    display: inline-block;
    color: var(--ink-mid);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--radius-s);
    transition: var(--trans);
    background: var(--bg);
    border: 1px solid var(--rule);
    white-space: nowrap;
    text-align: center;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.navmod-links a:hover {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
    box-shadow: var(--shadow-xs);
}

.navmod-links a.active {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
    font-weight: 700;
}

/* ── SEARCH BAR ── */
.searchbar {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-m);
    padding: 10px 14px;
    margin-bottom: var(--sp);
    box-shadow: var(--shadow-xs);
}

.searchbar form {
    display: flex;
    gap: 7px;
    align-items: center;
    flex-wrap: nowrap;
}

.searchbar input[type="text"] {
    flex: 1;
    min-width: 150px;
    padding: 8px 13px;
    border: 1px solid var(--rule-dark);
    border-radius: var(--radius-s);
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    outline: none;
    transition: var(--trans);
}

.searchbar input[type="text"]:focus {
    border-color: var(--teal);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,122,122,0.1);
}

.searchbar input[type="text"]::placeholder { color: var(--ink-faint); }

.searchbar button {
    padding: 8px 14px;
    border: none;
    border-radius: var(--radius-s);
    background: var(--teal);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    cursor: pointer;
    transition: var(--trans);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.searchbar button:hover {
    background: var(--teal-deep);
    box-shadow: var(--shadow-sm);
}

/* ── HOT TAGS ── */
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-m);
    margin-bottom: var(--sp);
    box-shadow: var(--shadow-xs);
}

.tagcloud-item {
    padding: 4px 11px;
    background: var(--tag-bg);
    border-radius: 2px;
    color: var(--ink-mid);
    text-decoration: none;
    font-size: 12px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 500;
    transition: var(--trans);
    border: 1px solid var(--rule);
}

.tagcloud-item:hover {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
}

/* ── SECTION BLOCK ── */
.sec-block { margin-bottom: var(--sp); }

.sec-head {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--rule);
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.sec-head::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 38px;
    height: 2px;
    background: var(--teal);
}

.sec-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.2px;
}

.sec-title a {
    color: var(--ink);
    text-decoration: none;
    transition: var(--trans);
}

.sec-title a:hover { color: var(--teal); }

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

.filmgrid li { animation: entryUp 0.45s var(--ease) backwards; }
.filmgrid li:nth-child(1){animation-delay:.04s}
.filmgrid li:nth-child(2){animation-delay:.08s}
.filmgrid li:nth-child(3){animation-delay:.12s}
.filmgrid li:nth-child(4){animation-delay:.16s}
.filmgrid li:nth-child(5){animation-delay:.20s}
.filmgrid li:nth-child(6){animation-delay:.24s}
.filmgrid li:nth-child(7){animation-delay:.28s}
.filmgrid li:nth-child(8){animation-delay:.32s}

@keyframes entryUp {
    from { opacity:0; transform:translateY(14px); }
    to   { opacity:1; transform:translateY(0); }
}

/* 封面宽高比 600:350 */
.cover-lnk {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-s);
    aspect-ratio: 600 / 350;
    background: var(--rule);
    box-shadow: var(--shadow-xs);
}

.cover-lnk img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
    display: block;
}

.cover-lnk:hover img { transform: scale(1.06); }

.cover-lnk::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.25s;
}

.cover-lnk:hover::after { opacity: 1; }

.card-caption { padding: 7px 2px 0; }

.card-caption h5 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-caption h5 a {
    color: inherit;
    text-decoration: none;
    transition: var(--trans);
}

.card-caption h5 a:hover { color: var(--teal); }

/* ── TITLE BAND ── */
.entry-titlebar {
    line-height: 1.7;
    text-align: left;
    padding: 13px 18px;
    font-size: 16px;
    margin: 7px 0;
    word-break: break-all;
    background: var(--surface);
    border-left: 4px solid var(--teal);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    border-right: 1px solid var(--rule);
    border-radius: 0 var(--radius-m) var(--radius-m) 0;
    box-shadow: var(--shadow-xs);
}

.entry-titlebar a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 700;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-right: 10px;
    background: var(--teal-light);
    padding: 2px 6px;
    border-radius: 2px;
}

/* ── DETAIL INFO ── */
.spec-panel {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.9;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-m);
    margin: 7px 0;
    box-shadow: var(--shadow-xs);
}

/* ── CAPTURE PREVIEW ── */
.caps-preview { margin-top: 10px; }

.caps-preview picture,
.caps-preview img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-s);
}

/* ── DOWNLOAD BUTTONS ── */
.dl-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 14px;
    margin: 7px 0;
    flex-wrap: wrap;
}

.dl-btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--teal);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-s);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--trans);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: var(--shadow-xs);
}

.dl-btn:hover {
    background: var(--teal-deep);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

/* ── SHARE STRIP ── */
.share-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-m);
    margin: 7px 0;
    box-shadow: var(--shadow-xs);
    flex-wrap: nowrap;
}

.share-url-slot {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: var(--radius-s);
    padding: 8px 11px;
    overflow: hidden;
}

.share-lbl-tag {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--teal);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.share-url-val {
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    color: var(--ink-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: var(--radius-s);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--trans);
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.share-trigger-btn:hover { background: var(--teal-deep); }
.share-icon-glyph { font-size: 14px; line-height: 1; }

/* ── BT CLIENT HINTS ── */
.btclient-pc, .btclient-mob {
    text-align: center;
    padding: 10px;
}

.btclient-pc a, .btclient-mob a {
    color: var(--teal);
    text-decoration: none;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    transition: var(--trans);
}

.btclient-pc a:hover, .btclient-mob a:hover {
    color: var(--teal-deep);
    text-decoration: underline;
}

/* ── PAGINATION ── */
.pgrow {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    padding: 16px 0;
    align-items: center;
}

.pg-a, .pg-c {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 13px;
    border-radius: var(--radius-s);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    min-width: 36px;
    text-align: center;
    transition: var(--trans);
}

.pg-a {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--rule-dark);
    text-decoration: none;
}

.pg-a:hover {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}

.pg-c {
    background: var(--teal);
    color: #fff;
    border: 1px solid var(--teal);
    cursor: default;
}

/* ── FOOTER ── */
.pgfooter {
    padding: 18px 0;
    text-align: center;
    border-top: 2px solid var(--teal);
    margin-top: 14px;
    background: var(--surface);
}

.pgfooter p {
    margin: 5px 0;
    color: var(--ink-soft);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12px;
}

.pgfooter a {
    color: var(--ink-soft);
    text-decoration: none;
    transition: var(--trans);
}

.pgfooter a:hover { color: var(--teal); }

/* ── FRIENDLY LINKS ── */
.flink-panel {
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-m);
}

.flink-panel dl { margin: 0; }
.flink-panel dd { display: inline-block; margin: 3px 4px; }

.flink-panel a {
    color: var(--teal);
    text-decoration: none;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12px;
    transition: var(--trans);
}

.flink-panel a:hover { color: var(--teal-deep); text-decoration: underline; }
.flink-panel a.pd5 { padding: 2px 4px; }

/* ── VISIBILITY HELPERS ── */
.only-pc  { display: block; }
.only-mob { display: block; }

@media (max-width: 768px) { .only-pc  { display: none !important; } }
@media (min-width: 769px) { .only-mob { display: none !important; } }

/* ── CLEARFIX ── */
.clearfix::after { content:""; display:table; clear:both; }

/* ── LAZY PLACEHOLDER ── */
img[data-original] { background: var(--tag-bg); }

/* ════════════════════════════
   TABLET  ≤768px
   ════════════════════════════ */
@media (max-width: 768px) {
    .container { padding: 0 10px; }
    .content   { padding: 5px 0; }

    .masthead-row      { gap: 10px; }
    .masthead-site-name { font-size: 20px; }
    .masthead-vline    { height: 22px; }
    .masthead-domain-text  { font-size: 15px; }
    .masthead-domain-badge { font-size: 9px; }

    /* Nav: 15% label / 85% links, 4-per-row, 14px */
    .navmod-zone {
        width: 15%;
        min-width: 0;
        font-size: 10px;
        padding: 8px 3px;
        letter-spacing: 0;
        word-break: break-all;
        line-height: 1.25;
    }

    .navmod-links {
        width: 85%;
        gap: 4px;
        padding: 7px 5px;
    }

    .navmod-links a {
        font-size: 14px;
        padding: 5px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    .filmgrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 9px;
    }

    .sec-title { font-size: 16px; }

    .searchbar { padding: 9px 10px; }
    .searchbar input[type="text"] { min-width: 100px; font-size: 13px; padding: 7px 10px; }
    .searchbar button { padding: 7px 10px; font-size: 11px; }

    .entry-titlebar { font-size: 14px; padding: 10px 12px; }
    .spec-panel     { padding: 12px 14px; font-size: 13px; }

    .dl-bar  { gap: 8px; padding: 10px 6px; flex-wrap: nowrap; }
    .dl-btn  { padding: 9px 14px; font-size: 12px; }

    .share-strip        { padding: 9px 10px; gap: 7px; }
    .share-trigger-btn  { padding: 8px 11px; font-size: 11px; }

    .tagcloud     { gap: 5px; padding: 9px 10px; }
    .tagcloud-item { font-size: 11px; padding: 3px 9px; }

    .pgrow { padding: 12px 0; gap: 4px; }
    .pg-a, .pg-c { padding: 5px 9px; font-size: 12px; min-width: 30px; }

    .sec-block { margin-bottom: 6px; }
}

/* ════════════════════════════
   PHONE  ≤480px
   ════════════════════════════ */
@media (max-width: 480px) {
    .masthead-site-name   { font-size: 18px; }
    .masthead-domain-text { font-size: 14px; }

    /* Still 15%/85%, 4-per-row, 12px */
    .navmod-zone {
        width: 15%;
        font-size: 10px;
        padding: 6px 2px;
    }

    .navmod-links {
        width: 85%;
        gap: 3px;
        padding: 6px 3px;
    }

    .navmod-links a {
        font-size: 12px;
        padding: 4px 1px;
        width: calc((100% - 9px) / 4);
    }

    .filmgrid { gap: 7px; }
    .card-caption h5 { font-size: 12px; }

    .dl-bar { gap: 5px; padding: 9px 3px; flex-wrap: nowrap; }
    .dl-btn { padding: 8px 10px; font-size: 11px; }

    .share-strip        { padding: 7px 8px; gap: 5px; }
    .share-url-slot     { padding: 7px 8px; }
    .share-lbl-tag      { font-size: 9px; }
    .share-url-val      { font-size: 10px; }
    .share-trigger-btn  { padding: 7px 9px; font-size: 11px; }
    .share-icon-glyph   { font-size: 12px; }
}

/* ════════════════════════════
   PC  ≥769px
   ════════════════════════════ */
@media (min-width: 769px) {
    .navmod-zone  { width: 10%; font-size: 13px; }
    .navmod-links { width: 90%; }
    .navmod-links a { width: calc((100% - 35px) / 8); font-size: 13px; }
    .filmgrid { grid-template-columns: repeat(4, 1fr); }
}
