:root {
    --night-950: #0a1929;
    --night-900: #102a43;
    --night-850: #17324e;
    --night-800: #243b53;
    --night-700: #334e68;
    --harbor-900: #06312d;
    --harbor-700: #0e7773;
    --harbor-600: #157f7b;
    --harbor-500: #1f9994;
    --harbor-400: #26b3af;
    --harbor-300: #4dc4c1;
    --amber-500: #ffc107;
    --amber-400: #ffca28;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --text-soft: #d1d5db;
    --border-soft: rgba(255, 255, 255, 0.1);
    --shadow-xl: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-main);
    background: linear-gradient(180deg, var(--night-900), var(--night-950) 38%, var(--night-900));
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

main {
    min-height: 70vh;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(16, 42, 67, 0.95);
    border-bottom: 1px solid rgba(51, 78, 104, 0.5);
    backdrop-filter: blur(16px);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Noto Serif SC", Georgia, serif;
    font-weight: 700;
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #06211f;
    background: linear-gradient(135deg, var(--harbor-300), var(--amber-400));
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(38, 179, 175, 0.25);
}

.brand-name {
    font-size: 20px;
    letter-spacing: 0.04em;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 1;
}

.nav-link,
.mobile-link {
    color: var(--text-soft);
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #ffffff;
}

.header-search,
.mobile-search,
.big-search {
    display: flex;
    align-items: center;
}

.header-search input,
.mobile-search input,
.big-search input,
.local-filter,
.type-filter {
    color: #ffffff;
    background: rgba(36, 59, 83, 0.75);
    border: 1px solid rgba(51, 78, 104, 0.9);
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.local-filter:focus,
.type-filter:focus {
    border-color: var(--harbor-500);
    background: rgba(36, 59, 83, 0.95);
}

.header-search input {
    width: 190px;
    padding: 9px 12px;
    border-radius: 8px 0 0 8px;
}

.header-search button,
.mobile-search button,
.big-search button {
    padding: 9px 14px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: var(--harbor-600);
    border-radius: 0 8px 8px 0;
    transition: background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.big-search button:hover {
    background: var(--harbor-500);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: rgba(36, 59, 83, 0.9);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
}

.mobile-panel {
    border-top: 1px solid var(--border-soft);
    padding: 16px;
    background: rgba(10, 25, 41, 0.98);
}

.mobile-panel nav {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.mobile-search input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px 0 0 8px;
}

.hero-carousel {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: var(--night-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--night-950) 0%, rgba(10, 25, 41, 0.75) 42%, rgba(10, 25, 41, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding-bottom: 78px;
    max-width: 1180px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--harbor-400);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.hero-content h1,
.hero-title {
    margin: 0 0 8px;
    color: var(--text-soft);
    font-size: 18px;
    font-weight: 500;
}

.hero-content h2 {
    margin: 0;
    max-width: 760px;
    font-family: "Noto Serif SC", Georgia, serif;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.08;
}

.hero-content p:not(.eyebrow):not(.hero-title) {
    max-width: 720px;
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 24px;
    border-radius: 12px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
    color: #ffffff;
    background: var(--harbor-600);
    box-shadow: 0 15px 35px rgba(21, 127, 123, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px);
}

.primary-btn:hover {
    background: var(--harbor-500);
}

.ghost-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
}

.ghost-btn:hover {
    border-color: var(--harbor-400);
    background: rgba(38, 179, 175, 0.16);
}

.hero-dots {
    position: absolute;
    right: max(24px, calc((100% - 1180px) / 2));
    bottom: 36px;
    z-index: 3;
    display: flex;
    gap: 9px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.36);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--harbor-400);
}

.section-block {
    padding: 72px 0 0;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.section-heading h2 {
    margin: 0;
    color: #ffffff;
    font-family: "Noto Serif SC", Georgia, serif;
    font-size: 28px;
    line-height: 1.2;
}

.section-heading a {
    color: var(--harbor-400);
    font-size: 14px;
}

.with-border h2 {
    border-left: 4px solid var(--harbor-500);
    padding-left: 14px;
}

.with-border.amber h2 {
    border-color: var(--amber-500);
}

.movie-grid {
    display: grid;
    gap: 24px;
}

.three-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
    min-width: 0;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: var(--night-800);
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .poster-link img,
.large-card:hover img,
.update-item:hover img {
    transform: scale(1.08);
}

.play-hover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 40px;
    opacity: 0;
    background: rgba(0, 0, 0, 0.42);
    transition: opacity 0.2s ease;
}

.movie-card:hover .play-hover {
    opacity: 1;
}

.type-badge,
.rank-badge {
    position: absolute;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
    backdrop-filter: blur(8px);
}

.type-badge {
    right: 10px;
    bottom: 10px;
    padding: 7px 10px;
    background: rgba(0, 0, 0, 0.68);
}

.rank-badge {
    left: 10px;
    top: 10px;
    min-width: 30px;
    padding: 8px 9px;
    text-align: center;
    background: linear-gradient(135deg, var(--amber-500), #ff8f00);
}

.card-body h2 {
    margin: 12px 0 4px;
    font-size: 17px;
    line-height: 1.4;
}

.card-body h2 a {
    transition: color 0.2s ease;
}

.movie-card:hover h2 a {
    color: var(--harbor-400);
}

.meta-line,
.card-desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.card-desc {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 8px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    color: var(--harbor-300);
    background: rgba(6, 49, 45, 0.5);
    border: 1px solid rgba(38, 179, 175, 0.16);
    border-radius: 999px;
    font-size: 12px;
}

.panel-block {
    margin-top: 72px;
    padding: 34px;
    border-radius: 24px;
    background: rgba(36, 59, 83, 0.5);
    box-shadow: var(--shadow-xl);
}

.horizontal-scroll {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 4px 0 14px;
    scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.horizontal-scroll .movie-card {
    width: 285px;
    flex: 0 0 auto;
}

.compact .card-desc,
.compact .tag-row {
    display: none;
}

.large-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.large-card {
    position: relative;
    overflow: hidden;
    min-height: 330px;
    border-radius: 18px;
    background: var(--night-800);
    box-shadow: var(--shadow-xl);
}

.large-card img {
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.large-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 25, 41, 0.95), rgba(10, 25, 41, 0.12));
}

.large-copy {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
}

.large-copy strong {
    display: block;
    font-family: "Noto Serif SC", Georgia, serif;
    font-size: 28px;
    line-height: 1.25;
}

.large-copy em {
    display: block;
    margin-top: 8px;
    color: var(--text-soft);
    font-style: normal;
    line-height: 1.7;
}

.two-column-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 34px;
}

.update-list,
.side-list {
    display: grid;
    gap: 14px;
}

.update-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 14px;
    background: rgba(36, 59, 83, 0.3);
    transition: background 0.2s ease;
}

.update-item:hover {
    background: rgba(36, 59, 83, 0.78);
}

.update-item img {
    width: 132px;
    height: 82px;
    flex: 0 0 auto;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.update-copy {
    min-width: 0;
}

.update-copy strong,
.update-copy em,
.update-copy span {
    display: block;
}

.update-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.update-copy em {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 5px;
    color: var(--text-muted);
    font-style: normal;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.update-copy span {
    margin-top: 6px;
    color: #6b7280;
    font-size: 12px;
}

.rank-panel,
.side-card {
    padding: 22px;
    border-radius: 18px;
    background: rgba(36, 59, 83, 0.5);
}

.rank-list,
.rank-wide-list {
    display: grid;
    gap: 10px;
}

.rank-row,
.rank-wide-row {
    display: grid;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    background: rgba(10, 25, 41, 0.26);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row {
    grid-template-columns: 32px 1fr auto;
    padding: 12px;
}

.rank-row:hover,
.rank-wide-row:hover {
    transform: translateY(-1px);
    background: rgba(6, 49, 45, 0.55);
}

.rank-row span,
.rank-wide-row span {
    color: var(--amber-400);
    font-weight: 800;
    text-align: center;
}

.rank-row strong,
.rank-wide-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-row em,
.rank-wide-row em {
    color: var(--text-muted);
    font-size: 12px;
    font-style: normal;
}

.rank-wide-row {
    grid-template-columns: 44px 96px minmax(0, 1fr) auto;
    padding: 12px 16px;
}

.rank-wide-row img {
    width: 96px;
    height: 58px;
    border-radius: 9px;
    object-fit: cover;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.category-card {
    min-height: 160px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(51, 78, 104, 0.8);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(36, 59, 83, 0.95), rgba(16, 42, 67, 0.95));
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: var(--harbor-500);
    background: linear-gradient(135deg, rgba(6, 49, 45, 0.9), rgba(36, 59, 83, 0.95));
}

.category-card strong {
    font-size: 20px;
}

.category-card span {
    margin: 12px 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.category-card em {
    color: var(--harbor-300);
    font-style: normal;
    font-size: 14px;
}

.page-hero {
    padding: 72px 0 54px;
    background: linear-gradient(180deg, rgba(36, 59, 83, 0.88), rgba(10, 25, 41, 0));
}

.page-hero h1 {
    margin: 0 0 14px;
    font-family: "Noto Serif SC", Georgia, serif;
    font-size: clamp(36px, 5vw, 56px);
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 0;
    color: var(--text-soft);
    line-height: 1.8;
    font-size: 18px;
}

.big-search {
    max-width: 620px;
    margin-top: 28px;
}

.big-search input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px 0 0 12px;
}

.big-search button {
    padding: 14px 24px;
    border-radius: 0 12px 12px 0;
}

.filter-bar-wrap {
    padding-top: 34px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(51, 78, 104, 0.65);
    border-radius: 18px;
    background: rgba(36, 59, 83, 0.42);
}

.local-filter,
.type-filter {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
}

.detail-wrap {
    padding-top: 38px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--harbor-400);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
}

.detail-main {
    display: grid;
    gap: 22px;
}

.player-card,
.detail-panel {
    border-radius: 18px;
    background: rgba(36, 59, 83, 0.48);
    box-shadow: var(--shadow-xl);
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    background: #000000;
}

.video-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.4));
}

.play-overlay span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 999px;
    background: rgba(21, 127, 123, 0.92);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    font-size: 34px;
}

.play-overlay.is-hidden {
    display: none;
}

.detail-panel {
    padding: 26px;
}

.detail-panel h1 {
    margin: 0;
    font-family: "Noto Serif SC", Georgia, serif;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.18;
}

.lead-text {
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.8;
}

.detail-tags {
    margin: 18px 0;
}

.info-table {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.info-table div {
    padding: 14px;
    border-radius: 12px;
    background: rgba(10, 25, 41, 0.35);
}

.info-table span,
.info-table strong {
    display: block;
}

.info-table span {
    color: var(--text-muted);
    font-size: 12px;
}

.info-table strong {
    margin-top: 6px;
    color: #ffffff;
    font-size: 14px;
}

.info-table a {
    color: var(--harbor-300);
}

.article-copy h2,
.related-links h2,
.side-card h2 {
    margin: 0 0 14px;
    font-family: "Noto Serif SC", Georgia, serif;
    font-size: 24px;
}

.article-copy p,
.related-links p {
    color: var(--text-soft);
    line-height: 2;
}

.related-links p {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.related-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--harbor-300);
    background: rgba(6, 49, 45, 0.5);
}

.detail-side {
    display: grid;
    gap: 20px;
    align-content: start;
}

.detail-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: var(--shadow-xl);
}

.side-card .update-item {
    padding: 0;
    background: transparent;
}

.side-card .update-item img {
    width: 104px;
    height: 68px;
}

.site-footer {
    margin-top: 84px;
    border-top: 1px solid rgba(51, 78, 104, 0.5);
    background: rgba(16, 42, 67, 0.75);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    margin-bottom: 14px;
    font-size: 20px;
}

.site-footer p,
.site-footer a,
.site-footer li {
    color: var(--text-muted);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 16px;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a:hover {
    color: var(--harbor-300);
}

.footer-bottom {
    padding: 18px 16px;
    color: #6b7280;
    text-align: center;
    border-top: 1px solid rgba(51, 78, 104, 0.45);
    font-size: 14px;
}

.is-hidden-card {
    display: none;
}

@media (max-width: 1040px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .mobile-toggle {
        display: block;
        margin-left: auto;
    }

    .three-cols,
    .four-cols,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .two-column-layout,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-side {
        grid-template-columns: 220px 1fr;
    }

    .info-table {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .container,
    .nav-wrap,
    .hero-content,
    .footer-grid {
        width: min(100% - 24px, 1180px);
    }

    .hero-carousel {
        min-height: 590px;
        height: 78vh;
    }

    .hero-content {
        padding-bottom: 92px;
    }

    .hero-content p:not(.eyebrow):not(.hero-title) {
        font-size: 16px;
    }

    .hero-dots {
        left: 12px;
        right: auto;
        bottom: 34px;
    }

    .section-block {
        padding-top: 52px;
    }

    .panel-block {
        margin-top: 52px;
        padding: 18px;
        border-radius: 18px;
    }

    .three-cols,
    .four-cols,
    .large-grid,
    .category-grid,
    .footer-grid,
    .detail-side,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .movie-grid {
        gap: 18px;
    }

    .horizontal-scroll .movie-card {
        width: 250px;
    }

    .rank-row {
        grid-template-columns: 32px 1fr;
    }

    .rank-row em {
        grid-column: 2;
    }

    .rank-wide-row {
        grid-template-columns: 32px 78px minmax(0, 1fr);
    }

    .rank-wide-row em {
        grid-column: 3;
    }

    .rank-wide-row img {
        width: 78px;
        height: 50px;
    }

    .update-item {
        align-items: flex-start;
    }

    .update-item img {
        width: 112px;
        height: 74px;
    }

    .info-table {
        grid-template-columns: 1fr;
    }

    .site-footer {
        margin-top: 60px;
    }
}
