:root {
    --teal-900: #134e4a;
    --teal-800: #115e59;
    --teal-700: #0f766e;
    --teal-600: #0d9488;
    --cyan-600: #0891b2;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --white: #ffffff;
    --amber: #f59e0b;
    --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 28px rgba(15, 118, 110, 0.14);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--slate-900);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #ecfeff 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: var(--white);
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.96), rgba(8, 145, 178, 0.96));
    box-shadow: 0 12px 30px rgba(8, 47, 73, 0.18);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.brand-text {
    display: grid;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 22px;
    letter-spacing: 0.04em;
}

.brand-text small {
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    margin-top: 4px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.header-search {
    width: 290px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.wide-search-panel input,
.filter-panel input,
.filter-panel select,
.search-tool input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    padding: 12px 14px;
    color: var(--slate-900);
    background: rgba(255, 255, 255, 0.92);
    outline: none;
}

.header-search button,
.mobile-search button,
.wide-search-panel button,
.search-tool button {
    border: 0;
    border-radius: 14px;
    padding: 12px 16px;
    color: var(--teal-900);
    font-weight: 700;
    background: var(--white);
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
}

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

.mobile-menu a,
.mobile-sub-link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    margin-top: 8px;
}

.mobile-search {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

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

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: var(--slate-950);
}

.hero-track,
.hero-slide,
.hero-image-layer,
.hero-shade {
    position: absolute;
    inset: 0;
}

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

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

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

.hero-shade {
    background:
        radial-gradient(circle at 72% 38%, rgba(20, 184, 166, 0.34), transparent 28%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.74) 46%, rgba(15, 118, 110, 0.34) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.96), transparent 46%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 650px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--white);
    padding: 108px 0 96px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #ccfbf1;
    background: rgba(20, 184, 166, 0.2);
    box-shadow: inset 0 0 0 1px rgba(153, 246, 228, 0.26);
}

.hero h1 {
    max-width: 760px;
    margin: 20px 0 18px;
    font-size: clamp(42px, 7vw, 88px);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 19px;
    line-height: 1.8;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--teal-800);
    font-size: 12px;
    font-weight: 700;
    background: #ccfbf1;
}

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

.primary-button,
.ghost-button,
.text-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    min-height: 52px;
    padding: 0 22px;
    color: var(--white);
    background: linear-gradient(135deg, var(--teal-600), var(--cyan-600));
    box-shadow: 0 16px 30px rgba(8, 145, 178, 0.3);
}

.ghost-button {
    min-height: 52px;
    padding: 0 22px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.hero-controls {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 38px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--white);
}

.wide-search-panel {
    width: min(1180px, calc(100% - 32px));
    margin: -48px auto 72px;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 24px;
    align-items: center;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-soft);
}

.wide-search-panel span {
    color: var(--teal-700);
    font-weight: 800;
}

.wide-search-panel h2 {
    margin: 8px 0 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.18;
}

.wide-search-panel form,
.search-tool {
    display: flex;
    gap: 12px;
}

.wide-search-panel input,
.search-tool input,
.filter-panel input,
.filter-panel select {
    border-color: var(--slate-200);
    background: var(--white);
}

.wide-search-panel button,
.search-tool button {
    color: var(--white);
    background: var(--teal-700);
}

.content-section,
.detail-layout,
.detail-content-grid,
.breadcrumb {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.content-section {
    margin-bottom: 78px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.section-heading h2,
.side-panel h2 {
    margin: 12px 0 8px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 0;
    max-width: 680px;
    color: var(--slate-600);
    line-height: 1.7;
}

.section-more,
.text-button {
    color: var(--teal-700);
}

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

.movie-grid-small {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 44px rgba(15, 118, 110, 0.2);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-900), var(--teal-800));
}

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

.movie-card:hover .movie-poster img {
    transform: scale(1.06);
}

.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(135deg, #f97316, var(--amber));
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.34);
}

.movie-card-body {
    padding: 16px;
}

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--teal-700);
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 9px 0 8px;
    font-size: 19px;
    line-height: 1.3;
}

.movie-card p {
    min-height: 52px;
    margin: 0 0 14px;
    color: var(--slate-600);
    font-size: 14px;
    line-height: 1.65;
}

.movie-card-compact .movie-card-body {
    padding: 13px;
}

.movie-card-compact h3 {
    font-size: 16px;
}

.movie-card-compact p {
    min-height: 46px;
    font-size: 13px;
}

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

.category-tile {
    position: relative;
    min-height: 240px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    border-radius: var(--radius-xl);
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

.category-tile img,
.category-tile-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.category-tile img {
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile-shade {
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(15, 118, 110, 0.28));
}

.category-tile strong,
.category-tile small,
.category-tile em {
    position: relative;
    z-index: 2;
}

.category-tile strong {
    font-size: 26px;
    line-height: 1.2;
}

.category-tile small {
    margin-top: 8px;
    color: #ccfbf1;
    font-weight: 800;
}

.category-tile em {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.78);
    font-style: normal;
    line-height: 1.6;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px;
    align-items: start;
}

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

.rank-list-home {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.side-panel,
.detail-text-card,
.detail-info-card,
.player-card,
.category-overview-card,
.search-page-panel {
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-card);
}

.side-panel {
    padding: 24px;
    position: sticky;
    top: 98px;
}

.mini-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.mini-link {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: var(--slate-100);
}

.mini-link img {
    width: 64px;
    height: 86px;
    object-fit: cover;
    border-radius: 12px;
}

.mini-link strong,
.mini-link small {
    display: block;
}

.mini-link small {
    margin-top: 5px;
    color: var(--slate-500);
    font-size: 12px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 78% 20%, rgba(45, 212, 191, 0.34), transparent 26%),
        linear-gradient(135deg, var(--slate-950), var(--teal-900) 52%, var(--cyan-600));
}

.compact-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 50px;
    padding: 52px;
    border-radius: 34px;
    box-shadow: var(--shadow-soft);
}

.compact-hero h1 {
    margin: 18px 0 12px;
    max-width: 820px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.compact-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.8;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    padding: 18px;
    align-items: center;
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.category-cover-stack img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
}

.category-overview-card span {
    color: var(--teal-700);
    font-weight: 900;
}

.category-overview-card h2 {
    margin: 8px 0 10px;
    font-size: 28px;
}

.category-overview-card p {
    margin: 0 0 16px;
    color: var(--slate-600);
    line-height: 1.7;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.5fr repeat(2, minmax(160px, 0.5fr));
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-card);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--slate-700);
    font-size: 13px;
    font-weight: 800;
}

.empty-state,
.search-status {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    color: var(--slate-600);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 28px;
    margin-bottom: 18px;
    color: var(--slate-500);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--teal-700);
    font-weight: 800;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
    align-items: stretch;
    margin-bottom: 26px;
}

.player-card {
    padding: 14px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: var(--slate-950);
}

.player-shell video,
.player-cover,
.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.player-shell video {
    object-fit: contain;
    background: #000000;
}

.player-cover {
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--white);
    background: #000000;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-cover img {
    object-fit: cover;
    opacity: 0.64;
    filter: saturate(1.05) contrast(1.08);
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    color: var(--white);
    font-size: 38px;
    background: linear-gradient(135deg, var(--teal-600), var(--cyan-600));
    box-shadow: 0 16px 40px rgba(8, 145, 178, 0.42);
}

.detail-info-card {
    padding: 20px;
}

.detail-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: var(--shadow-card);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 10px;
}

.detail-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--teal-800);
    font-size: 12px;
    font-weight: 900;
    background: #ccfbf1;
}

.detail-info-card h1 {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.15;
}

.detail-info-card p {
    color: var(--slate-600);
    line-height: 1.8;
}

.detail-tags {
    margin-top: 16px;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 70px;
}

.detail-text-card {
    padding: 26px;
}

.detail-text-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.detail-text-card p {
    margin: 0;
    color: var(--slate-700);
    font-size: 16px;
    line-height: 1.9;
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px;
}

.info-list dt {
    color: var(--slate-500);
    font-weight: 800;
}

.info-list dd {
    margin: 0;
    color: var(--slate-900);
}

.related-section {
    margin-bottom: 86px;
}

.search-page-panel {
    padding: 24px;
}

.search-tool {
    margin-bottom: 18px;
}

.search-status {
    margin-bottom: 20px;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(135deg, var(--slate-950), var(--teal-900));
}

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

.footer-logo {
    color: var(--white);
    font-size: 26px;
    font-weight: 900;
}

.footer-brand p,
.footer-links a {
    color: #cbd5e1;
    line-height: 1.8;
}

.site-footer h2 {
    color: var(--white);
    font-size: 18px;
    margin: 0 0 14px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-category-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1080px) {
    .header-search {
        display: none;
    }

    .movie-grid,
    .rank-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .movie-grid-small,
    .rank-list-home,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .split-section,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .side-panel {
        position: static;
    }
}

@media (max-width: 820px) {
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
    }

    .hero,
    .hero-content {
        min-height: 590px;
    }

    .wide-search-panel,
    .filter-panel,
    .category-overview-card,
    .detail-content-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .compact-hero {
        padding: 34px 24px;
    }

    .category-overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .header-inner,
    .content-section,
    .detail-layout,
    .detail-content-grid,
    .breadcrumb,
    .wide-search-panel,
    .compact-hero,
    .footer-inner,
    .mobile-menu {
        width: min(100% - 22px, 1180px);
    }

    .brand-text small {
        display: none;
    }

    .brand-text strong {
        font-size: 18px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-actions,
    .wide-search-panel form,
    .search-tool,
    .mobile-search {
        flex-direction: column;
    }

    .movie-grid,
    .movie-grid-small,
    .rank-list,
    .rank-list-home,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .movie-card-body {
        padding: 12px;
    }

    .movie-card h3 {
        font-size: 16px;
    }

    .movie-card p {
        font-size: 13px;
        min-height: 42px;
    }

    .tag-row span {
        font-size: 11px;
    }

    .play-button {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }
}

.sitemap-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.sitemap-links a {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--teal-700);
    background: var(--white);
    box-shadow: var(--shadow-card);
    font-weight: 700;
    word-break: break-all;
}
