:root {
    color-scheme: light;
    --color-teal-700: #0f766e;
    --color-teal-600: #0d9488;
    --color-cyan-600: #0891b2;
    --color-amber-500: #f59e0b;
    --color-slate-900: #0f172a;
    --color-slate-800: #1e293b;
    --color-slate-700: #334155;
    --color-gray-900: #111827;
    --color-gray-700: #374151;
    --color-gray-600: #4b5563;
    --color-gray-100: #f3f4f6;
    --color-white: #ffffff;
    --shadow-card: 0 18px 42px rgba(15, 23, 42, 0.14);
    --shadow-soft: 0 10px 30px rgba(15, 118, 110, 0.18);
    --radius-xl: 1.25rem;
    --radius-lg: 1rem;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--color-gray-900);
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 48%, #ecfeff 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--color-white);
    background: linear-gradient(90deg, var(--color-teal-700), var(--color-cyan-600));
    box-shadow: 0 16px 36px rgba(8, 145, 178, 0.24);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.logo:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: #78350f;
    background: linear-gradient(135deg, #fde68a, var(--color-amber-500));
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.32);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.logo-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: #ccfbf1;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-weight: 700;
}

.primary-nav a {
    color: rgba(255, 255, 255, 0.92);
    transition: color 0.2s ease, transform 0.2s ease;
}

.primary-nav a:hover {
    color: #fcd34d;
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    min-width: 250px;
}

.header-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 9px 14px 9px 18px;
    color: var(--color-white);
    border-radius: 999px 0 0 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    transition: background 0.2s ease;
}

.header-search input:focus {
    background: rgba(255, 255, 255, 0.28);
}

.header-search input::placeholder {
    color: rgba(204, 251, 241, 0.92);
}

.header-search button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    color: var(--color-white);
    border-radius: 0 999px 999px 0;
    background: var(--color-amber-500);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover {
    background: #d97706;
    transform: translateY(-1px);
}

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

.mobile-panel {
    display: none;
    padding: 0 0 18px;
}

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

.mobile-panel nav {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.mobile-panel a {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
}

.hero-slider {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    color: var(--color-white);
    background: var(--color-slate-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    transition: opacity 0.8s ease, transform 1.2s ease;
    transform: scale(1.02);
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 22%, rgba(20, 184, 166, 0.38), transparent 26%), linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.78));
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    min-height: 70vh;
    padding: 96px 0 76px;
}

.hero-copy {
    width: min(680px, 100%);
}

.eyebrow-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 800;
    color: var(--color-white);
    background: rgba(13, 148, 136, 0.92);
    box-shadow: 0 8px 22px rgba(13, 148, 136, 0.24);
}

.badge.amber {
    color: #451a03;
    background: rgba(245, 158, 11, 0.94);
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 0.96;
    letter-spacing: -0.04em;
    text-shadow: 0 18px 60px rgba(0, 0, 0, 0.48);
}

.hero-copy p {
    max-width: 620px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.75;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 21px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--color-white);
    background: var(--color-teal-600);
    box-shadow: 0 16px 34px rgba(13, 148, 136, 0.28);
}

.btn-primary:hover {
    background: #0f766e;
}

.btn-amber {
    color: #451a03;
    background: var(--color-amber-500);
    box-shadow: 0 16px 34px rgba(245, 158, 11, 0.28);
}

.btn-ghost {
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: var(--color-amber-500);
}

.page-hero {
    color: var(--color-white);
    background: radial-gradient(circle at 16% 10%, rgba(45, 212, 191, 0.32), transparent 28%), linear-gradient(135deg, var(--color-teal-700), var(--color-slate-900));
    padding: 66px 0;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
}

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

.section {
    padding: 58px 0;
}

.section.compact {
    padding: 42px 0;
}

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

.section-kicker {
    margin: 0 0 6px;
    color: var(--color-teal-600);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    color: var(--color-gray-900);
    font-size: clamp(26px, 3.8vw, 40px);
    line-height: 1.1;
}

.section-desc {
    max-width: 740px;
    margin: 12px 0 0;
    color: var(--color-gray-600);
    line-height: 1.8;
}

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-teal-600);
    font-weight: 900;
}

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

.category-card {
    min-height: 168px;
    padding: 24px;
    color: var(--color-white);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.22);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -32px;
    bottom: -40px;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.category-icon {
    font-size: 34px;
}

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

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.65;
}

.tone-blue {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.tone-teal {
    background: linear-gradient(135deg, #14b8a6, #0f766e);
}

.tone-purple {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

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

.tone-green {
    background: linear-gradient(135deg, #22c55e, #15803d);
}

.tone-rose {
    background: linear-gradient(135deg, #f43f5e, #be123c);
}

.tone-cyan {
    background: linear-gradient(135deg, #06b6d4, #0e7490);
}

.tone-slate {
    background: linear-gradient(135deg, #475569, #0f172a);
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--color-white);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #0f766e, #0f172a);
}

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

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

.poster-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.16));
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-overlay {
    opacity: 1;
}

.play-bubble {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 999px;
    color: var(--color-white);
    background: var(--color-teal-600);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
}

.card-pill {
    position: absolute;
    top: 12px;
    z-index: 2;
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--color-white);
    font-size: 12px;
    font-weight: 800;
    background: var(--color-teal-600);
}

.card-pill.left {
    left: 12px;
}

.card-pill.right {
    right: 12px;
    border-radius: 8px;
    background: var(--color-amber-500);
}

.card-meta-band {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px 12px 12px;
    color: var(--color-white);
    font-size: 12px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0));
}

.card-body {
    flex: 1;
    padding: 17px;
}

.card-title {
    margin: 0 0 9px;
    font-size: 18px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

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

.card-desc {
    margin: 0;
    color: var(--color-gray-600);
    font-size: 14px;
    line-height: 1.65;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 58px 94px 1fr;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 20px;
    background: var(--color-white);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #451a03;
    font-weight: 900;
    border-radius: 14px;
    background: linear-gradient(135deg, #fde68a, var(--color-amber-500));
}

.rank-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-teal-600), var(--color-slate-900));
}

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

.rank-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.rank-info p {
    margin: 0;
    color: var(--color-gray-600);
    line-height: 1.6;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 180px));
    gap: 12px;
    padding: 18px;
    margin: -32px 0 34px;
    border-radius: 22px;
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 12px 16px;
    color: var(--color-gray-900);
    outline: 0;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--color-teal-600);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.14);
}

.empty-state {
    display: none;
    padding: 28px;
    text-align: center;
    color: var(--color-gray-600);
    border-radius: 20px;
    background: #f8fafc;
}

.empty-state.is-visible {
    display: block;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    align-items: start;
}

.detail-card {
    border-radius: 28px;
    background: var(--color-white);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.detail-head {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    padding: 28px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--color-teal-600), var(--color-slate-900));
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.breadcrumb a {
    color: #fcd34d;
    font-weight: 700;
}

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
}

.meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--color-gray-700);
    font-size: 14px;
    font-weight: 800;
    background: #ecfeff;
}

.detail-info p {
    color: var(--color-gray-600);
    line-height: 1.85;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tag {
    border-radius: 999px;
    padding: 7px 11px;
    color: var(--color-teal-700);
    font-size: 13px;
    font-weight: 800;
    background: #ccfbf1;
}

.text-block {
    padding: 0 28px 28px;
}

.text-block h2 {
    margin: 30px 0 12px;
    font-size: 24px;
}

.text-block p {
    margin: 0;
    color: var(--color-gray-700);
    line-height: 1.9;
}

.player-section {
    margin: 0 0 30px;
    border-radius: 28px;
    overflow: hidden;
    background: #020617;
    box-shadow: var(--shadow-card);
}

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

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--color-white);
    cursor: pointer;
    background-size: cover;
    background-position: center;
}

.player-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.38), rgba(2, 6, 23, 0.88));
}

.player-cover.is-hidden {
    display: none;
}

.player-start {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    border-radius: 999px;
    padding: 14px 26px 14px 18px;
    color: var(--color-white);
    font-size: 20px;
    font-weight: 900;
    background: rgba(13, 148, 136, 0.92);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
}

.player-start-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    color: #451a03;
    background: var(--color-amber-500);
}

.side-panel {
    display: grid;
    gap: 16px;
}

.side-box {
    padding: 22px;
    border-radius: 24px;
    background: var(--color-white);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
}

.side-box h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

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

.mini-card {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    align-items: center;
}

.mini-card img {
    width: 70px;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--color-teal-600), var(--color-slate-900));
}

.mini-card h3 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.35;
}

.mini-card p {
    margin: 0;
    color: var(--color-gray-600);
    font-size: 12px;
}

.site-footer {
    margin-top: 40px;
    color: #d1d5db;
    background: linear-gradient(180deg, var(--color-slate-800), var(--color-slate-900));
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 28px;
    padding: 46px 0;
}

.footer-title {
    margin: 0 0 12px;
    color: var(--color-white);
    font-size: 22px;
    font-weight: 900;
}

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

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

.footer-bottom {
    padding: 18px 0;
    color: #94a3b8;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

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

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

    .mobile-panel .header-search {
        display: flex;
        min-width: 0;
    }

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

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

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .hero-slider,
    .hero-content {
        min-height: 74vh;
    }

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

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

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

    .filter-panel {
        grid-template-columns: 1fr;
        margin-top: -24px;
    }

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

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

    .rank-card {
        grid-template-columns: 42px 74px 1fr;
        gap: 10px;
    }

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

@media (max-width: 520px) {
    .logo-title {
        font-size: 17px;
    }

    .logo-subtitle {
        display: none;
    }

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

    .hero-actions,
    .page-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}
