:root {
    --teal: #14b8a6;
    --teal-dark: #0f766e;
    --cyan: #0891b2;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f8fafc;
    --panel: #ffffff;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: #f9fafb;
    line-height: 1.6;
}

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

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

button,
input,
select {
    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.96);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(16px);
}

.nav-shell {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 12px 25px rgba(20, 184, 166, 0.28);
}

.brand-copy,
.footer-brand div {
    display: grid;
    gap: 2px;
}

.brand-copy strong,
.footer-brand strong {
    font-size: 20px;
    line-height: 1;
}

.brand-copy small,
.footer-brand small {
    color: var(--muted);
    font-size: 12px;
}

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

.desktop-nav > a,
.nav-dropdown > a {
    padding: 10px 14px;
    border-radius: 12px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
    color: var(--teal-dark);
    background: #ecfdf5;
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 12px);
    min-width: 190px;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #4b5563;
    font-size: 14px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    cursor: pointer;
}

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

.mobile-nav {
    display: none;
    padding: 12px 16px 18px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #374151;
    font-weight: 700;
}

.mobile-nav a:hover {
    background: #ecfdf5;
    color: var(--teal-dark);
}

.mobile-category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding-top: 4px;
}

.hero-slider {
    position: relative;
    height: min(720px, 72vh);
    min-height: 560px;
    overflow: hidden;
    background: #030712;
}

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

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

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

.hero-slide.is-active img {
    transform: scale(1);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.46) 48%, rgba(0, 0, 0, 0.1));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 80px;
    color: #fff;
}

.hero-kicker,
.inner-hero span,
.section-heading span,
.featured-copy em {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--teal);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    font-style: normal;
}

.hero-content h1 {
    max-width: 780px;
    margin: 20px 0 18px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
}

.tag-row span,
.detail-tags span {
    color: var(--teal-dark);
    background: #ecfdf5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.primary-button,
.ghost-button,
.outline-button,
.list-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
    color: #111827;
    background: #fff;
}

.primary-button:hover {
    color: #fff;
    background: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(20, 184, 166, 0.28);
}

.ghost-button {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.outline-button {
    color: var(--teal-dark);
    border: 1px solid rgba(20, 184, 166, 0.35);
    background: #fff;
}

.hero-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 5;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: #fff;
}

.hero-search {
    position: absolute;
    left: 50%;
    bottom: 78px;
    z-index: 6;
    display: flex;
    width: min(640px, calc(100% - 32px));
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    transform: translateX(-50%);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    padding: 0 16px;
}

.hero-search button {
    border: 0;
    border-radius: 999px;
    background: var(--teal);
    color: #fff;
    padding: 10px 22px;
    font-weight: 800;
    cursor: pointer;
}

.featured-overlap {
    position: relative;
    z-index: 9;
    margin-top: -70px;
}

.featured-card {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 20px;
    border-radius: 30px;
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

.featured-cover {
    aspect-ratio: 21 / 9;
    border-radius: 22px;
    overflow: hidden;
    background: #e5e7eb;
}

.featured-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-copy {
    display: grid;
    gap: 8px;
}

.featured-copy strong {
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.1;
}

.featured-copy span {
    color: var(--muted);
}

.featured-play {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: var(--ink);
}

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

.white-band {
    background: #fff;
}

.soft-band {
    background: linear-gradient(180deg, #f9fafb, #fff);
}

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

.section-heading h2 {
    margin: 12px 0 8px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
}

.section-heading p {
    margin: 0;
    max-width: 720px;
    color: var(--muted);
}

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

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

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

.six-col {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e5e7eb;
}

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

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

.play-chip {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #111827;
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
    transition: all 0.25s ease;
}

.movie-card:hover .play-chip {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.type-chip,
.rank-badge {
    position: absolute;
    top: 12px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.type-chip {
    right: 12px;
    padding: 5px 9px;
    background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
    left: 12px;
    min-width: 30px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--teal);
}

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

.movie-title {
    display: -webkit-box;
    min-height: 50px;
    overflow: hidden;
    color: var(--ink);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title:hover {
    color: var(--teal-dark);
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    margin: 8px 0 12px;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.movie-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f3f4f6;
}

.tag-row {
    margin-top: 12px;
}

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

.compact-card .movie-title {
    min-height: 44px;
    font-size: 15px;
}

.compact-card .movie-card-body p,
.compact-card .tag-row {
    display: none;
}

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

.category-tile,
.category-overview-card a {
    display: grid;
    gap: 10px;
    min-height: 150px;
    padding: 24px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, #0f766e, #0891b2);
    box-shadow: 0 18px 40px rgba(8, 145, 178, 0.22);
}

.category-tile strong,
.category-overview-card strong {
    font-size: 24px;
}

.category-tile span,
.category-overview-card p {
    color: rgba(255, 255, 255, 0.86);
}

.mini-title-list {
    display: grid;
    gap: 4px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

.center-action {
    text-align: center;
    margin-top: 30px;
}

.inner-hero,
.movie-detail-hero {
    padding: 86px 0;
    color: #fff;
    background: radial-gradient(circle at top left, rgba(20, 184, 166, 0.35), transparent 38%), linear-gradient(135deg, #111827, #0f172a 55%, #082f49);
}

.inner-hero h1 {
    margin: 18px 0 10px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb em {
    font-style: normal;
    color: #fff;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
    margin-bottom: 26px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.filter-panel input,
.filter-panel select {
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    outline: none;
    padding: 0 14px;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

.ranking-list {
    display: grid;
    gap: 14px;
}

.list-card {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.list-cover {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    background: #e5e7eb;
}

.list-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-title-line {
    display: flex;
    align-items: center;
    gap: 12px;
}

.list-title-line h2 {
    margin: 0;
    font-size: 22px;
}

.list-title-line h2 a:hover {
    color: var(--teal-dark);
}

.list-rank {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 12px;
    color: #fff;
    background: var(--teal);
    font-weight: 900;
}

.list-content p {
    margin: 8px 0 12px;
    color: var(--muted);
}

.list-action {
    color: #fff;
    background: var(--ink);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(260px, 380px) 1fr;
    gap: 44px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.detail-copy h1 {
    margin: 16px 0;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.detail-copy .lead {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
}

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

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

.detail-tags {
    margin-bottom: 28px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000;
    box-shadow: var(--shadow);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.62));
    cursor: pointer;
}

.play-overlay span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #111827;
    background: rgba(255, 255, 255, 0.94);
    font-size: 32px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.play-overlay strong {
    font-size: 18px;
}

.player-shell.is-playing .play-overlay {
    display: none;
}

.article-section {
    max-width: 920px;
}

.article-section h2 {
    margin: 0 0 12px;
    font-size: 30px;
}

.article-section p {
    margin: 0 0 26px;
    color: #374151;
    font-size: 18px;
    line-height: 1.9;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, #f9fafb, #eef2f7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 36px;
    padding: 54px 0;
}

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

.footer-grid p,
.footer-grid a {
    color: var(--muted);
    font-size: 14px;
}

.footer-grid a {
    display: block;
    margin: 8px 0;
}

.footer-grid a:hover {
    color: var(--teal-dark);
}

.footer-bottom {
    padding: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

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

@media (max-width: 1100px) {
    .four-col {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

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

    .menu-toggle {
        display: block;
    }

    .mobile-nav.is-open {
        display: block;
    }

    .hero-slider {
        min-height: 620px;
        height: 78vh;
    }

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

    .hero-nav {
        display: none;
    }

    .hero-search {
        bottom: 72px;
    }

    .featured-card,
    .detail-grid,
    .list-card {
        grid-template-columns: 1fr;
    }

    .featured-play,
    .list-action {
        width: 100%;
    }

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

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

    .list-cover {
        width: 100%;
    }

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

@media (max-width: 560px) {
    .brand-copy small {
        display: none;
    }

    .brand-copy strong {
        font-size: 17px;
    }

    .nav-shell {
        height: 66px;
    }

    .hero-slider {
        min-height: 590px;
    }

    .hero-search {
        flex-direction: column;
        border-radius: 22px;
    }

    .hero-search input {
        min-height: 44px;
    }

    .hero-search button {
        width: 100%;
    }

    .page-section {
        padding: 52px 0;
    }

    .three-col,
    .four-col,
    .six-col,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .movie-title {
        min-height: auto;
    }

    .detail-poster img {
        aspect-ratio: 16 / 10;
    }
}
