:root {
    --brand: #00A3AF;
    --brand-dark: #008C97;
    --brand-soft: #E6F7F8;
    --text: #1f2937;
    --muted: #64748b;
    --line: #e5e7eb;
    --page: #f5f8fb;
    --card: #ffffff;
    --shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    backdrop-filter: blur(18px);
}

.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;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), #33B8C2);
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 163, 175, 0.24);
    font-size: 15px;
}

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

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: #475569;
    font-weight: 700;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    cursor: pointer;
}

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

.page-stack {
    padding: 48px 0 64px;
    display: grid;
    gap: 54px;
}

.fade-in {
    animation: fadeIn .55s ease both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-carousel {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 1180px;
    padding-right: 44%;
    color: #fff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(0, 163, 175, .28);
}

.hero-content h1,
.page-hero h1,
.detail-intro h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
    text-shadow: 0 2px 20px rgba(0, 0, 0, .45);
}

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

.hero-tags {
    margin-bottom: 26px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    background: rgba(255, 255, 255, .16);
    color: #fff;
    backdrop-filter: blur(12px);
}

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

.primary-btn {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 12px 24px rgba(0, 163, 175, .28);
}

.primary-btn:hover,
.outline-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(0, 163, 175, .25);
}

.primary-btn:hover {
    background: var(--brand-dark);
}

.outline-btn {
    border: 1px solid var(--brand);
    color: var(--brand-dark);
    background: #fff;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .24);
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 38px;
    line-height: 1;
    transition: background .2s ease, transform .2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, .42);
    transform: translateY(-50%) scale(1.04);
}

.hero-prev {
    left: 22px;
    transform: translateY(-50%);
}

.hero-next {
    right: 22px;
    transform: translateY(-50%);
}

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

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

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

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.section-title h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
    font-weight: 900;
    color: #1f2937;
}

.section-icon,
.category-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    background: linear-gradient(135deg, var(--brand), #33B8C2);
}

.tone-red,
.section-icon.tone-red {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.tone-teal,
.section-icon.tone-teal {
    background: linear-gradient(135deg, var(--brand), #33B8C2);
}

.tone-amber,
.section-icon.tone-amber {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.tone-purple,
.section-icon.tone-purple {
    background: linear-gradient(135deg, #6366f1, #a855f7);
}

.tone-pink,
.section-icon.tone-pink {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.tone-blue,
.section-icon.tone-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.tone-orange,
.section-icon.tone-orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.tone-green,
.section-icon.tone-green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.grid {
    display: grid;
}

.cards-grid {
    gap: 18px;
}

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

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .08);
    transition: transform .28s ease, box-shadow .28s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 163, 175, .18);
}

.movie-thumb {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #0f172a;
}

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

.movie-card:hover .movie-thumb img {
    transform: scale(1.05);
}

.play-mask {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0, 0, 0, .42);
    opacity: 0;
    transition: opacity .25s ease;
}

.play-mask span {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--brand);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .25);
}

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

.movie-badge,
.movie-year {
    position: absolute;
    z-index: 2;
    padding: 4px 9px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.movie-badge {
    top: 10px;
    left: 10px;
    background: var(--brand);
}

.movie-year {
    right: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, .68);
}

.movie-body {
    padding: 14px;
    display: grid;
    gap: 8px;
}

.movie-body h3 {
    margin: 0;
    min-height: 2.7em;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s ease;
}

.movie-card:hover h3 {
    color: var(--brand-dark);
}

.movie-body p {
    margin: 0;
    min-height: 3.2em;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
}

.meta-line span + span::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 999px;
    background: #cbd5e1;
}

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

.movie-card-list {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
}

.movie-card-list .movie-body {
    padding: 22px;
    align-content: center;
}

.movie-card-list .movie-body h3 {
    font-size: 22px;
}

.movie-card-list .list-thumb {
    aspect-ratio: 16 / 10;
}

.highlight-block {
    padding: 30px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--brand-soft), #fff);
    box-shadow: var(--shadow);
}

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

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 24px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform .28s ease, box-shadow .28s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
}

.category-card h3,
.category-card h2 {
    margin: 16px 0 8px;
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    margin: 0 0 16px;
    color: var(--muted);
}

.category-strip {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.category-strip img {
    width: 56px;
    height: 76px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .14);
}

.page-hero,
.detail-hero {
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.page-hero {
    padding: clamp(30px, 6vw, 58px);
    background: linear-gradient(135deg, #0f172a, #164e63 55%, var(--brand));
    color: #fff;
}

.small-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.small-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--brand-dark);
    font-weight: 700;
}

.filter-panel {
    padding: 22px;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 22px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
}

.search-box input {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid #dbe3ea;
    border-radius: 16px;
    outline: 0;
    color: #1f2937;
    background: #fff;
    transition: border .2s ease, box-shadow .2s ease;
}

.search-box input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(0, 163, 175, .12);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.chip {
    min-height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    color: #475569;
    background: #eef2f7;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.chip:hover,
.chip.active {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), #33B8C2);
    transform: translateY(-1px);
}

.empty-state {
    display: none;
    margin: 18px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.empty-state.show {
    display: block;
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 34px;
    padding: clamp(24px, 5vw, 42px);
    background: linear-gradient(135deg, #0f172a, #134e4a 60%, var(--brand));
    color: #fff;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, .35);
}

.detail-intro {
    align-self: center;
}

.detail-intro p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, .88);
    font-size: 18px;
}

.detail-tags span {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

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

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

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, .18), rgba(0, 0, 0, .52));
    color: #fff;
    cursor: pointer;
    transition: opacity .2s ease, visibility .2s ease;
}

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

.player-button {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 34px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, .38);
    transition: transform .2s ease, background .2s ease;
}

.player-overlay:hover .player-button {
    transform: scale(1.06);
    background: var(--brand-dark);
}

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

.content-card {
    padding: 26px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
}

.content-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 900;
}

.content-card p {
    margin: 0;
    color: #475569;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 62px 110px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .08);
    transition: transform .24s ease, box-shadow .24s ease;
}

.rank-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 163, 175, .15);
}

.rank-no {
    color: var(--brand-dark);
    font-size: 28px;
    font-weight: 900;
    text-align: center;
}

.rank-thumb img {
    width: 110px;
    height: 150px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-info h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 900;
}

.rank-info p {
    margin: 0 0 8px;
    color: var(--muted);
}

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

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
}

.footer-brand {
    color: #fff;
}

.site-footer p {
    max-width: 680px;
    margin: 10px 0 0;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(255, 255, 255, .08);
}

@media (max-width: 1100px) {
    .five-cols {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .four-cols,
    .three-cols,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .hero-content {
        padding-right: 20%;
    }
}

@media (max-width: 820px) {
    .site-header-inner {
        min-height: 62px;
    }
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 70px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 18px;
        background: #fff;
        box-shadow: var(--shadow);
    }
    .site-nav.is-open {
        display: flex;
    }
    .hero-carousel {
        min-height: 560px;
        height: 78vh;
    }
    .hero-content {
        padding-right: 0;
    }
    .hero-arrow {
        display: none;
    }
    .five-cols,
    .four-cols,
    .three-cols,
    .category-grid,
    .large-grid,
    .detail-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .detail-hero {
        grid-template-columns: 1fr;
    }
    .detail-poster {
        max-width: 280px;
    }
    .movie-card-list {
        grid-template-columns: 1fr;
    }
    .rank-row {
        grid-template-columns: 42px 88px minmax(0, 1fr);
    }
    .rank-row .outline-btn {
        grid-column: 2 / -1;
        justify-self: start;
    }
    .rank-thumb img {
        width: 88px;
        height: 120px;
    }
    .footer-inner {
        grid-template-columns: 1fr;
    }
    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .container,
    .site-header-inner,
    .footer-inner {
        width: min(100% - 22px, 1180px);
    }
    .brand {
        font-size: 19px;
    }
    .brand-mark {
        width: 34px;
        height: 34px;
    }
    .hero-content h1,
    .detail-intro h1,
    .page-hero h1 {
        font-size: 34px;
    }
    .five-cols,
    .four-cols,
    .three-cols,
    .category-grid,
    .large-grid,
    .detail-content {
        grid-template-columns: 1fr;
    }
    .movie-card {
        border-radius: 15px;
    }
    .movie-thumb {
        aspect-ratio: 16 / 10;
    }
    .highlight-block,
    .page-hero,
    .detail-hero,
    .content-card {
        border-radius: 20px;
        padding: 20px;
    }
    .category-card {
        min-height: auto;
    }
    .rank-row {
        grid-template-columns: 1fr;
    }
    .rank-no {
        text-align: left;
    }
    .rank-thumb img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }
    .rank-row .outline-btn {
        grid-column: auto;
    }
}
