:root {
    --hot-ink: #3f4a63;
    --hot-muted: #7582a1;
    --hot-pink: #ef66a7;
    --hot-pink-soft: #fff1f8;
    --hot-line: #e7edf9;
    --hot-shadow: 0 14px 30px rgba(77, 96, 142, .11);
}

body {
    margin: 0;
    color: var(--hot-ink);
    background:
        radial-gradient(circle at 8% 10%, #ffd9ee 0 5%, transparent 6%),
        radial-gradient(circle at 90% 16%, #d9eeff 0 6%, transparent 7%),
        linear-gradient(135deg, #fff7fc, #f4fff7 46%, #f2f7ff);
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.theater-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: max-content 1fr max-content;
    align-items: center;
    gap: 20px;
    min-height: 74px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(26,37,65,.08);
    background: rgba(255,255,255,.92);
    box-shadow: 0 14px 34px rgba(35,50,84,.08);
    backdrop-filter: blur(18px);
}
.theater-nav a { text-decoration: none; }
.theater-nav .brand { display: inline-flex; align-items: center; gap: 12px; min-width: 280px; }
.theater-nav .brand img { width: 46px; height: 46px; border-radius: 12px; object-fit: contain; }
.theater-nav .brand span { display: flex; align-items: baseline; gap: 12px; }
.theater-nav .brand strong { color: #101728; font-size: 27px; line-height: 1; letter-spacing: .03em; }
.theater-nav .brand em { color: #374151; font-size: 14px; font-style: normal; white-space: nowrap; }
.theater-nav .nav-links { display: flex; justify-content: center; gap: clamp(12px,1.15vw,22px); min-width: 0; }
.theater-nav .nav-links a { position: relative; display: inline-flex; align-items: center; min-height: 74px; color: #374151; font-size: 14px; font-weight: 700; white-space: nowrap; }
.theater-nav .nav-links .active { color: #8b35ff; }
.theater-nav .nav-links .active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 12px; height: 2px; border-radius: 99px; background: linear-gradient(90deg,#d437ff,#8b35ff); }
.theater-nav .nav-actions { display: flex; align-items: center; justify-content: flex-end; }
.theater-nav .search-wrap { display: grid; grid-template-columns: 1fr 24px; align-items: center; width: 282px; height: 42px; padding: 0 14px 0 18px; border: 1px solid rgba(27,39,68,.12); border-radius: 999px; background: rgba(244,247,252,.9); box-sizing: border-box; }
.theater-nav .search-wrap input { min-width: 0; border: 0; outline: 0; color: #111827; background: transparent; }
.theater-nav .search-wrap input::placeholder { color: #8a94a8; }
.theater-nav .search-trigger { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; color: #111827; background: transparent; cursor: pointer; font-size: 24px; line-height: 1; }

.hot-page { width: min(1180px, calc(100% - 28px)); margin: 12px auto 70px; }
.hot-hero { position: relative; overflow: hidden; padding: 24px; border: 1px solid rgba(255,255,255,.94); border-radius: 24px; background: linear-gradient(120deg,rgba(255,255,255,.9),rgba(255,240,248,.88),rgba(236,249,255,.9)); box-shadow: 0 16px 34px rgba(92,112,156,.14); }
.hot-hero::before,.hot-hero::after { content: ""; position: absolute; z-index: 0; border-radius: 50%; opacity: .34; background: linear-gradient(135deg,#ffc3e4,#bfeaff); }
.hot-hero::before { width: 180px; height: 180px; top: -48px; right: -42px; }
.hot-hero::after { width: 115px; height: 115px; left: -28px; bottom: -38px; }
.hot-hero > * { position: relative; z-index: 1; }
.eyebrow,.section-kicker { margin: 0 0 5px; color: var(--hot-pink); font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.hot-hero h1 { margin: 0 0 8px; color: #2f3c5a; font-size: clamp(26px,3.4vw,34px); font-weight: 900; line-height: 1.3; letter-spacing: .02em; }
.hot-hero > p:not(.eyebrow) { max-width: 850px; margin: 0; color: var(--hot-muted); font-size: 14px; line-height: 1.75; }
.hot-hero strong { color: #2f3c5a; }
.hot-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hot-chip-row span { padding: 6px 11px; border: 1px solid #ffd4e9; border-radius: 999px; color: #df5798; background: linear-gradient(90deg,#fff,#f4f9ff); font-size: 11px; font-weight: 750; }

.rank-tabs { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin: 12px 0 14px; padding: 8px; border-radius: 16px; background: rgba(255,255,255,.8); box-shadow: 0 10px 24px rgba(76,100,151,.1); }
.rank-tabs button { min-height: 48px; border: 0; border-radius: 12px; color: #5b6c91; background: linear-gradient(90deg,#fff,#f6f9ff); cursor: pointer; font: inherit; font-size: 14px; font-weight: 800; }
.rank-tabs button span { margin-left: 5px; }
.rank-tabs button.active { color: #fff; background: linear-gradient(90deg,#ff7cbc,#7fc8ff); box-shadow: 0 8px 18px rgba(104,130,183,.2); }

.work-directory { padding: 18px 16px 24px; border: 1px solid var(--hot-line); border-radius: 20px; background: linear-gradient(135deg,rgba(255,255,255,.84),rgba(247,250,255,.84),rgba(247,255,248,.84)); box-shadow: var(--hot-shadow); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 3px 4px 14px; }
.section-heading h2 { margin: 0; color: #2f3c5a; font-size: 24px; font-weight: 900; }
.section-heading > p { margin: 0; color: var(--hot-muted); font-size: 12px; }
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: end; gap: 10px; padding: 11px 12px; border: 1px solid var(--hot-line); border-radius: 14px; background: rgba(255,255,255,.86); box-shadow: 0 8px 18px rgba(76,104,156,.08); }
.filter-bar label { display: grid; gap: 5px; min-width: 170px; color: var(--hot-muted); font-size: 10px; font-weight: 700; }
.filter-bar .search-field { min-width: min(300px,100%); }
.filter-bar input,.filter-bar select,.filter-bar button { min-height: 38px; padding: 0 12px; border: 1px solid #dce5f8; border-radius: 11px; color: #516286; background: #fff; font: inherit; font-size: 12px; }
.filter-bar input:focus,.filter-bar select:focus { border-color: #ff91c4; outline: 3px solid rgba(255,124,188,.13); }
.filter-bar button { padding-inline: 18px; color: #fff; border-color: transparent; background: linear-gradient(90deg,#ff7cbc,#7fc8ff); cursor: pointer; font-weight: 750; }
.snapshot-note { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 12px 0; }
.snapshot-note span { padding: 5px 9px; border-radius: 999px; color: var(--hot-muted); background: #fff; font-size: 10px; }
.ranking-guide { display: grid; grid-template-columns: auto repeat(3,1fr); gap: 10px; align-items: stretch; margin: 12px 0 16px; padding: 12px; border: 1px solid var(--hot-line); border-radius: 16px; background: linear-gradient(120deg,#fff,#fff7fc,#f3f9ff); box-shadow: 0 10px 22px rgba(79,102,151,.08); }
.ranking-guide h2 { display: grid; place-items: center; margin: 0; padding: 0 12px; color: #2f3c5a; font-size: 16px; }
.ranking-guide p { margin: 0; padding: 10px 12px; border-radius: 11px; color: var(--hot-muted); background: rgba(255,255,255,.72); font-size: 11px; line-height: 1.65; }
.ranking-guide strong { color: #2f3c5a; }

.work-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(245px,1fr)); gap: 14px; align-items: stretch; }
.work-card { min-width: 0; }
.work-card > a { min-height: 272px; height: 100%; display: flex; flex-direction: column; padding: 16px; border: 1px solid #e8eefb; border-radius: 18px; color: #2f3c5a; background: linear-gradient(135deg,#fff,#fff8fc,#f2f8ff); box-shadow: 0 12px 26px rgba(73,96,143,.1); text-decoration: none; transition: transform .2s ease,box-shadow .2s ease; }
.work-card > a:hover { transform: translateY(-5px) rotate(-.2deg); box-shadow: 0 18px 34px rgba(73,96,143,.17); }
.work-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.work-rank { flex: 0 0 auto; padding: 4px 9px; border-radius: 999px; color: #df5798; background: var(--hot-pink-soft); font-size: 10px; font-weight: 800; }
.work-tags { min-width: 0; display: flex; justify-content: end; gap: 4px; overflow: hidden; }
.work-tags span { padding: 3px 6px; border-radius: 999px; color: #6584a7; background: #edf8ff; font-size: 9px; white-space: nowrap; }
.work-card h3 { margin: 9px 0 3px; overflow: hidden; color: #2f3c5a; font-size: 15px; font-weight: 850; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.work-description { margin: 0 0 10px; overflow: hidden; color: #6f7fa1; font-size: 11px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.work-media { display: flex; justify-content: center; align-items: center; gap: 12px; }
.work-media img { width: 112px; height: 112px; flex: 0 0 auto; border: 2px dotted #ffb9da; border-radius: 12px; object-fit: cover; box-shadow: 0 6px 12px rgba(90,110,151,.12); background: #fff; }
.work-facts { min-width: 0; display: grid; gap: 4px; margin: 0; text-align: left; }
.work-facts div { display: grid; grid-template-columns: auto 1fr; gap: 5px; align-items: baseline; }
.work-facts dt { color: var(--hot-muted); font-size: 9px; }
.work-facts dt::after { content: ":"; }
.work-facts dd { min-width: 0; margin: 0; overflow: hidden; color: #df5798; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.work-card-foot { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: auto; padding-top: 10px; color: var(--hot-muted); font-size: 9px; }
.work-card-foot strong { width: 100%; color: #df5798; font-size: 10px; text-align: right; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 22px; }
.pagination button { min-width: 86px; min-height: 42px; border: 1px solid #e1e7f4; border-radius: 10px; color: #516286; background: #fff; cursor: pointer; font-weight: 700; }
.pagination button:disabled { opacity: .42; cursor: not-allowed; }
.pagination span { min-width: 88px; color: var(--hot-muted); font-size: 11px; text-align: center; }
.empty-tip,.noscript-tip { padding: 22px; border-radius: 14px; color: var(--hot-muted); background: #fff; text-align: center; }
.panel { margin-top: 18px; padding: 18px 20px; border: 1px solid var(--hot-line); border-radius: 16px; background: rgba(255,255,255,.84); box-shadow: 0 10px 22px rgba(79,102,151,.08); }
.ranking-method { display: grid; grid-template-columns: .8fr 1.2fr; gap: 25px; }
.ranking-method h2 { margin: 0; color: #2f3c5a; font-size: 20px; }
.ranking-method > div:first-child > p:last-child { margin: 7px 0 0; color: var(--hot-muted); font-size: 12px; }
.method-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.method-list p { margin: 0; padding: 10px; border-radius: 11px; color: var(--hot-muted); background: #f8faff; font-size: 10px; }
.method-list strong { display: block; color: #2f3c5a; }

@media (max-width: 820px) { .ranking-guide { grid-template-columns: 1fr; } .ranking-guide h2 { justify-content: start; padding: 0; } .ranking-method { grid-template-columns: 1fr; } .method-list { grid-template-columns: 1fr; } }
@media (max-width: 1380px) {
    .theater-nav { grid-template-columns: max-content 1fr; min-height: 0; padding-top: 10px; padding-bottom: 8px; }
    .theater-nav .nav-links { grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; order: 3; }
    .theater-nav .nav-links a { min-height: 34px; }
    .theater-nav .nav-links .active::after { bottom: 0; }
}
@media (max-width: 620px) {
    .theater-nav { display: flex; flex-direction: column; align-items: stretch; padding: 10px 12px; }
    .theater-nav .brand { min-width: 0; }
    .theater-nav .brand span { display: grid; gap: 2px; }
    .theater-nav .brand strong { font-size: 22px; }
    .theater-nav .brand em { font-size: 12px; }
    .theater-nav .nav-links { order: initial; gap: 18px; padding-bottom: 3px; }
    .theater-nav .nav-actions { display: block; }
    .theater-nav .search-wrap { width: 100%; min-width: 0; }
    .hot-page { width: min(100% - 18px,1180px); margin-top: 9px; }
    .hot-hero { padding: 18px 15px; border-radius: 17px; }
    .hot-hero h1 { font-size: 24px; }
    .rank-tabs { grid-template-columns: repeat(2,1fr); gap: 4px; padding: 6px; }
    .rank-tabs button { min-height: 42px; font-size: 12px; }
    .work-directory { padding: 13px 10px 18px; border-radius: 15px; }
    .section-heading { display: grid; gap: 4px; }
    .section-heading h2 { font-size: 21px; }
    .filter-bar { display: grid; grid-template-columns: 1fr; }
    .filter-bar label,.filter-bar .search-field { min-width: 0; width: 100%; }
    .filter-bar button { width: 100%; }
    .work-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
