:root {
    --cyan: #0891b2;
    --cyan-dark: #0e7490;
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --slate: #0f172a;
    --muted: #64748b;
    --soft: #f8fafc;
    --line: #e2e8f0;
    --card: #ffffff;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #1f2937;
    background: #ffffff;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.82);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.site-header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--cyan-dark);
    letter-spacing: 0.02em;
}

.site-logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--teal));
    box-shadow: 0 10px 24px rgba(8, 145, 178, 0.28);
}

.site-logo-text {
    font-size: 22px;
}

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

.nav-link,
.mobile-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #475569;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
    min-width: 74px;
    padding: 10px 16px;
}

.nav-link:hover,
.mobile-nav-link:hover {
    color: var(--cyan-dark);
    background: #ecfeff;
}

.nav-link.is-active,
.mobile-nav-link.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--teal));
    box-shadow: 0 10px 20px rgba(8, 145, 178, 0.20);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #f1f5f9;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #334155;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

.mobile-nav-link {
    padding: 12px 14px;
    justify-content: flex-start;
}

.hero-carousel {
    position: relative;
    min-height: 670px;
    overflow: hidden;
    color: #ffffff;
    background: #07111f;
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(4, 13, 25, 0.92) 0%, rgba(8, 47, 73, 0.70) 48%, rgba(15, 118, 110, 0.42) 100%), var(--hero-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 38%;
    background: linear-gradient(180deg, rgba(7, 17, 31, 0), #07111f 86%);
}

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

.hero-slide-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 110px 0 170px;
    max-width: 760px;
}

.hero-eyebrow,
.page-hero p,
.section-heading p {
    margin: 0 0 12px;
    color: #67e8f9;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 13px;
}

.hero-slide h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 8vw, 84px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero-slide p {
    margin: 0;
    max-width: 680px;
    color: #dbeafe;
    font-size: clamp(17px, 2vw, 21px);
}

.hero-tags,
.detail-tags,
.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-tags span,
.detail-tags span,
.movie-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 700;
}

.hero-tags span,
.detail-tags span {
    padding: 7px 12px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

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

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

.primary-button {
    min-height: 48px;
    padding: 0 22px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--teal));
    box-shadow: 0 14px 32px rgba(8, 145, 178, 0.28);
}

.ghost-button {
    min-height: 48px;
    padding: 0 22px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
}

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

.hero-control-row {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 74px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hero-dots,
.hero-arrows {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.hero-dot.is-active {
    background: #67e8f9;
}

.hero-arrows button {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    backdrop-filter: blur(12px);
}

.hero-quick-links {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 16px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.hero-quick-links a {
    padding: 20px;
    border-radius: 18px;
    color: #e0f2fe;
    font-weight: 800;
    text-align: center;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
}

.section {
    padding: 74px 0;
    background: #ffffff;
}

.section-light {
    background: #f8fafc;
}

.section-heading {
    margin-bottom: 34px;
}

.section-heading.centered {
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-heading.row-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.section-heading h2,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    color: #0f172a;
    letter-spacing: -0.04em;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.section-heading span,
.page-hero span {
    display: block;
    color: var(--muted);
    font-size: 17px;
}

.text-link {
    color: var(--cyan-dark);
}

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

.large-category-grid {
    gap: 24px;
}

.category-tile {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 24px;
    background: var(--slate);
    box-shadow: var(--shadow-soft);
    isolation: isolate;
}

.category-tile img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.category-tile-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.84));
    z-index: 1;
}

.category-tile-content {
    position: absolute;
    z-index: 2;
    inset: auto 0 0;
    padding: 22px;
    color: #ffffff;
}

.category-tile strong,
.category-tile em {
    display: block;
}

.category-tile strong {
    margin-bottom: 8px;
    font-size: 22px;
    line-height: 1.15;
}

.category-tile em {
    color: #dbeafe;
    font-style: normal;
    font-size: 14px;
}

.movie-grid,
.rail-grid {
    display: grid;
    gap: 22px;
}

.movie-grid {
    grid-template-columns: repeat(4, 1fr);
}

.category-movie-grid {
    align-items: stretch;
}

.rail-grid {
    grid-template-columns: repeat(4, 1fr);
}

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--card);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(8, 145, 178, 0.24);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
}

.compact-card .movie-cover {
    aspect-ratio: 16 / 10;
}

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

.movie-card:hover .movie-cover img {
    transform: scale(1.08);
}

.movie-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(8, 145, 178, 0.92);
    font-size: 12px;
    font-weight: 800;
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 9px;
    color: var(--cyan-dark);
    font-size: 13px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-body h3 a:hover,
.detail-side a:hover {
    color: var(--cyan-dark);
}

.movie-card p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
}

.movie-tags span {
    padding: 5px 8px;
    color: #0e7490;
    background: #ecfeff;
    font-size: 12px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0;
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(103, 232, 249, 0.36), transparent 34%), linear-gradient(135deg, #0e7490, #0f766e);
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -8%;
    top: -22%;
    width: 460px;
    height: 460px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    color: #ffffff;
    font-size: clamp(36px, 6vw, 64px);
}

.page-hero span {
    margin-top: 14px;
    color: #cffafe;
    max-width: 720px;
}

.compact-hero {
    padding: 76px 0;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    max-width: 760px;
    margin-top: 28px;
    padding: 6px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

.search-panel input {
    width: 100%;
    min-height: 52px;
    border: 0;
    outline: none;
    padding: 0 16px;
    color: #0f172a;
    background: transparent;
}

.search-panel button {
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    padding: 0 22px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--teal));
    cursor: pointer;
    font-weight: 800;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.filter-button {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    font-weight: 800;
}

.filter-button.is-active,
.filter-button:hover {
    color: #0f172a;
    background: #ffffff;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 62px 92px 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--teal));
    font-weight: 900;
}

.rank-poster {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 3 / 4;
    background: #e0f2fe;
}

.rank-poster img {
    height: 100%;
    object-fit: cover;
}

.rank-body h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.35;
}

.rank-body p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #07111f;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(7, 17, 31, 0.96) 0%, rgba(7, 17, 31, 0.78) 50%, rgba(13, 148, 136, 0.35) 100%), var(--detail-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
    transform: scale(1.05);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 44px;
    align-items: center;
    padding: 70px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 3 / 4;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
    background: #111827;
}

.detail-poster img {
    height: 100%;
    object-fit: cover;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #a5f3fc;
    font-weight: 800;
    margin-bottom: 14px;
}

.detail-info h1 {
    color: #ffffff;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
}

.detail-one-line {
    margin: 18px 0 0;
    color: #dbeafe;
    font-size: 19px;
    max-width: 820px;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.detail-section {
    background: #f8fafc;
}

.player-card {
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.movie-player {
    display: block;
    width: 100%;
    height: 100%;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.52));
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--teal));
    box-shadow: 0 18px 45px rgba(8, 145, 178, 0.42);
    font-size: 32px;
    padding-left: 5px;
}

.play-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.player-copy {
    padding: 24px 28px 28px;
}

.player-copy h2,
.detail-article h2,
.detail-side h2,
.related-section h2 {
    margin: 0 0 14px;
    color: #0f172a;
}

.player-copy p {
    margin: 0;
    color: var(--muted);
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 28px;
    margin-top: 32px;
}

.detail-article,
.detail-side,
.related-section {
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.detail-article,
.detail-side {
    padding: 28px;
}

.detail-article p {
    margin: 0 0 24px;
    color: #475569;
    font-size: 16px;
}

.detail-article p:last-child {
    margin-bottom: 0;
}

.detail-side dl {
    margin: 0;
    display: grid;
    gap: 14px;
}

.detail-side dl div {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.detail-side dl div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.detail-side dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.detail-side dd {
    margin: 4px 0 0;
    color: #0f172a;
    font-weight: 700;
}

.related-section {
    margin-top: 32px;
    padding: 28px;
}

.site-footer {
    color: #cbd5e1;
    background: #0f172a;
}

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

.footer-logo {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 14px;
}

.footer-brand p,
.footer-column p {
    margin: 0;
    color: #94a3b8;
}

.footer-column h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 17px;
}

.footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.footer-column a:hover {
    color: #67e8f9;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #94a3b8;
    font-size: 14px;
}

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

@media (max-width: 1024px) {
    .category-grid,
    .movie-grid,
    .rail-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .rank-grid,
    .rank-list {
        grid-template-columns: 1fr;
    }

    .detail-hero-inner {
        grid-template-columns: 240px 1fr;
        gap: 30px;
    }

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

    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .mobile-menu-button {
        display: block;
    }

    .site-logo-text {
        font-size: 19px;
    }

    .hero-carousel {
        min-height: 720px;
    }

    .hero-slide-content {
        padding: 86px 0 190px;
    }

    .hero-quick-links {
        grid-template-columns: 1fr;
    }

    .hero-control-row {
        bottom: 150px;
    }

    .category-grid,
    .movie-grid,
    .rail-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .section {
        padding: 54px 0;
    }

    .section-heading.row-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .search-panel {
        grid-template-columns: 1fr;
    }

    .detail-hero-inner {
        grid-template-columns: 1fr;
        padding: 44px 0;
    }

    .detail-poster {
        width: min(260px, 78vw);
    }

    .rank-item {
        grid-template-columns: 46px 80px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .rank-number {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .footer-inner,
    .footer-bottom {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .container,
    .site-header-inner,
    .mobile-nav,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 24px, 1180px);
    }

    .category-grid,
    .movie-grid,
    .rail-grid {
        grid-template-columns: 1fr;
    }

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

    .page-hero {
        padding: 58px 0;
    }

    .detail-info h1,
    .hero-slide h1 {
        letter-spacing: -0.03em;
    }

    .play-overlay span {
        width: 68px;
        height: 68px;
        font-size: 26px;
    }
}
