:root {
    --teal: #0d9488;
    --cyan: #0891b2;
    --blue: #2563eb;
    --orange: #ea580c;
    --pink: #db2777;
    --purple: #9333ea;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f9fafb;
    --dark: #111827;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 42%, #f9fafb 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.03em;
    white-space: nowrap;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 12px 25px rgba(13, 148, 136, 0.28);
}

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

.main-nav a {
    font-weight: 700;
    color: #374151;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--teal);
}

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

.header-search input,
.mobile-panel input,
.search-band input,
.filter-bar input,
.filter-bar select {
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: white;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 230px;
    padding: 10px 16px;
}

.header-search input:focus,
.mobile-panel input:focus,
.search-band input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

.header-search button,
.mobile-panel button,
.search-band button {
    border: 0;
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 999px;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    cursor: pointer;
    border-radius: 12px;
    padding: 8px 11px;
    background: #f3f4f6;
    color: #374151;
}

.mobile-panel {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow);
}

.mobile-panel.open {
    display: grid;
    gap: 12px;
}

.mobile-panel form {
    display: flex;
    gap: 8px;
}

.mobile-panel input {
    width: 100%;
    padding: 10px 14px;
}

.mobile-panel a {
    padding: 9px 4px;
    font-weight: 700;
    color: #374151;
}

.hero-carousel {
    position: relative;
    min-height: 640px;
    background: #0f172a;
    overflow: hidden;
}

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

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

.hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img,
.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04);
}

.hero-bg::after,
.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 24%, rgba(45, 212, 191, 0.45), transparent 28%),
        linear-gradient(90deg, rgba(15, 118, 110, 0.94), rgba(8, 145, 178, 0.82) 48%, rgba(37, 99, 235, 0.66)),
        rgba(0, 0, 0, 0.34);
}

.hero-content {
    position: relative;
    width: min(1240px, calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 380px;
    gap: 52px;
    align-items: center;
    color: white;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    letter-spacing: -0.06em;
    line-height: 1.08;
}

.hero-copy h1 {
    font-size: clamp(48px, 7vw, 88px);
    margin-bottom: 14px;
}

.hero-copy h2 {
    font-size: clamp(34px, 5vw, 62px);
    margin: 0 0 18px;
}

.hero-copy p,
.page-hero p,
.detail-copy .lead-text {
    max-width: 780px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    width: max-content;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #0f766e;
    background: rgba(240, 253, 250, 0.94);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

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

.primary-btn {
    padding: 13px 24px;
    color: var(--teal);
    background: white;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.22);
}

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

.ghost-btn {
    padding: 12px 22px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(14px);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.32);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4.1;
    object-fit: cover;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.45);
}

.hero-dots button.active {
    width: 34px;
    background: white;
}

.search-band {
    width: min(1100px, calc(100% - 32px));
    margin: -44px auto 0;
    position: relative;
    z-index: 5;
    padding: 20px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-band form {
    display: flex;
    gap: 12px;
}

.search-band input {
    flex: 1;
    padding: 15px 20px;
}

.search-band button {
    padding-inline: 28px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.quick-links a,
.tag-cloud a,
.detail-tags a,
.tag-row span {
    border-radius: 999px;
    background: #f0fdfa;
    color: #0f766e;
    font-weight: 800;
}

.quick-links a,
.tag-cloud a,
.detail-tags a {
    padding: 8px 14px;
}

.content-section {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 76px 0;
}

.content-section.no-top {
    padding-top: 26px;
}

.content-section.soft-bg,
.alternating:nth-of-type(even) {
    width: 100%;
    padding-inline: max(16px, calc((100% - 1240px) / 2));
    background: linear-gradient(135deg, #f3f4f6, #f9fafb);
}

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

.section-head.split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.section-head h2,
.text-panel h2,
.site-footer h2 {
    margin: 0 0 8px;
}

.section-head h2 {
    font-size: clamp(28px, 3vw, 42px);
    letter-spacing: -0.04em;
}

.section-head p,
.text-panel p,
.category-card p,
.ranking-item p,
.movie-card p,
.site-footer p {
    color: var(--muted);
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.92);
    border-radius: var(--radius);
    background: white;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(13, 148, 136, 0.35);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4.1;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.movie-card:hover .poster-link img,
.category-card:hover img,
.ranking-item:hover img {
    transform: scale(1.05);
}

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent);
}

.play-chip,
.rank-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    font-weight: 900;
}

.play-chip {
    left: 14px;
    bottom: 14px;
    padding: 7px 12px;
    background: rgba(13, 148, 136, 0.92);
}

.rank-chip {
    top: 12px;
    right: 12px;
    min-width: 34px;
    min-height: 34px;
    background: rgba(234, 88, 12, 0.92);
}

.rank-chip:empty {
    display: none;
}

.card-content {
    padding: 18px;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
}

.meta-line span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.meta-line span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: #d1d5db;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-item h3 a:hover,
.category-card h2 a:hover {
    color: var(--teal);
}

.movie-card p {
    display: -webkit-box;
    min-height: 52px;
    margin: 0 0 14px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-row span {
    padding: 5px 9px;
    font-size: 12px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--teal), var(--cyan), var(--blue));
    color: white;
}

.page-hero {
    min-height: 340px;
    display: flex;
    align-items: center;
    padding: 84px max(16px, calc((100% - 1240px) / 2));
}

.small-hero {
    min-height: 300px;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.22), transparent 28%),
        radial-gradient(circle at 12% 90%, rgba(255, 255, 255, 0.16), transparent 22%);
}

.page-hero > div {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.page-hero h1 {
    font-size: clamp(40px, 5vw, 70px);
}

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

.category-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.category-visual {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.category-visual img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-visual span {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    color: white;
    font-weight: 900;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(10px);
}

.filter-bar {
    width: min(1240px, calc(100% - 32px));
    margin: -34px auto 0;
    position: relative;
    z-index: 5;
    display: flex;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow);
}

.filter-bar input {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
}

.filter-bar select {
    padding: 14px 18px;
}

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

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

.ranking-item {
    display: grid;
    grid-template-columns: 54px 96px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: white;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.ranking-number {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

.ranking-poster {
    overflow: hidden;
    border-radius: 16px;
}

.ranking-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ranking-item h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.ranking-item p {
    margin: 0;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-cloud a {
    background: white;
    border: 1px solid #ccfbf1;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.detail-hero {
    min-height: 650px;
}

.detail-inner {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 34px;
    color: rgba(255, 255, 255, 0.84);
    font-weight: 800;
}

.breadcrumb a:hover {
    color: white;
}

.detail-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 46px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.34);
}

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

.detail-copy h1 {
    font-size: clamp(42px, 6vw, 82px);
    margin-bottom: 20px;
}

.detail-meta,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: white;
    font-weight: 850;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(14px);
}

.detail-tags a {
    background: rgba(240, 253, 250, 0.92);
}

.player-section {
    width: min(1100px, calc(100% - 32px));
    margin: -78px auto 0;
    position: relative;
    z-index: 5;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.34);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    color: white;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.54));
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 18px 45px rgba(13, 148, 136, 0.38);
    font-size: 34px;
}

.player-shell.is-playing .player-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.text-panel {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.text-panel h2 {
    font-size: 28px;
}

.text-panel p {
    margin: 0;
    font-size: 17px;
}

.site-footer {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #d1d5db;
    margin-top: 40px;
}

.footer-grid {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
    padding: 58px 0;
}

.site-footer h2 {
    color: white;
    font-size: 18px;
}

.site-footer a {
    display: block;
    margin: 9px 0;
    color: #d1d5db;
}

.site-footer a:hover {
    color: #5eead4;
}

.site-footer p {
    color: #9ca3af;
}

.footer-bottom {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
}

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

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

    .mobile-toggle {
        display: inline-flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 92px 0 86px;
    }

    .hero-poster {
        display: none;
    }

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

    .category-grid,
    .ranking-preview .ranking-grid,
    .detail-content {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    .header-inner {
        width: min(100% - 24px, 1240px);
        height: 64px;
    }

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

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

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

    .hero-copy h2 {
        font-size: 34px;
    }

    .search-band form,
    .filter-bar,
    .section-head.split,
    .mobile-panel form {
        flex-direction: column;
    }

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

    .movie-grid,
    .movie-grid.featured,
    .movie-grid.compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .card-content {
        padding: 14px;
    }

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

    .movie-card p {
        font-size: 14px;
    }

    .category-card,
    .detail-grid,
    .ranking-item {
        grid-template-columns: 1fr;
    }

    .ranking-number {
        width: 42px;
        height: 42px;
    }

    .ranking-poster {
        display: none;
    }

    .detail-inner {
        padding-top: 26px;
    }

    .detail-poster {
        max-width: 230px;
    }

    .detail-copy h1,
    .page-hero h1 {
        font-size: 38px;
    }

    .player-section {
        margin-top: -48px;
    }

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

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

@media (max-width: 460px) {
    .movie-grid,
    .movie-grid.featured,
    .movie-grid.compact {
        grid-template-columns: 1fr;
    }
}
