:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--slate-800);
    background: linear-gradient(180deg, var(--amber-50), var(--white) 34%, var(--slate-50));
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(251, 191, 36, 0.34);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.08);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: #78350f;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.38);
}

.brand-text {
    font-size: 21px;
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 430px;
    border: 1px solid var(--amber-300);
    border-radius: 999px;
    overflow: hidden;
    background: var(--white);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.header-search input,
.mobile-search input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 12px 16px 12px 20px;
    color: var(--slate-700);
    background: transparent;
}

.header-search button,
.mobile-search button,
.primary-btn,
.ghost-btn,
.filter-button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.header-search button,
.mobile-search button,
.primary-btn,
.filter-button {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.25);
}

.header-search button,
.mobile-search button {
    margin-right: 4px;
    padding: 9px 18px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
}

.ghost-btn {
    color: #92400e;
    border: 1px solid rgba(251, 191, 36, 0.56);
    background: rgba(255, 255, 255, 0.82);
}

.header-search button:hover,
.mobile-search button:hover,
.primary-btn:hover,
.filter-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(245, 158, 11, 0.32);
}

.ghost-btn:hover {
    color: var(--amber-700, #92400e);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.18);
}

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

.nav-link,
.mobile-link {
    color: #78350f;
    font-weight: 800;
    border-radius: 999px;
    padding: 9px 14px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: var(--amber-700, #92400e);
    background: var(--amber-100);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #78350f;
    background: var(--amber-100);
    cursor: pointer;
}

.mobile-panel {
    display: none;
}

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

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

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

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

.hero-backdrop {
    position: absolute;
    inset: 0;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px) saturate(1.05);
    transform: scale(1.04);
    opacity: 0.52;
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 76% 36%, rgba(245, 158, 11, 0.33), transparent 34%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72) 46%, rgba(15, 23, 42, 0.35)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.92), transparent 32%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 120px 0 92px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
    gap: 56px;
    align-items: center;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 14px;
    border: 1px solid rgba(252, 211, 77, 0.5);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

.hero h1 {
    margin: 18px 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-summary {
    max-width: 720px;
    color: #e2e8f0;
    font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 28px 0;
}

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

.tag-chip,
.hero-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-tag {
    color: #fde68a;
    border: 1px solid rgba(252, 211, 77, 0.38);
    background: rgba(251, 191, 36, 0.12);
}

.tag-chip {
    color: #92400e;
    background: var(--amber-100);
}

.hero-poster-panel {
    position: relative;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.hero-poster-panel img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.36);
}

.hero-card-caption {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 30px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.9));
}

.hero-card-caption strong {
    display: block;
    font-size: 22px;
}

.hero-card-caption span {
    display: block;
    color: #cbd5e1;
    font-size: 14px;
}

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

.hero-dot {
    width: 36px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 62px;
    background: var(--amber-400);
}

.section {
    padding: 72px 0;
}

.section.alt {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.82), rgba(255, 247, 237, 0.94));
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-kicker {
    color: var(--amber-600);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.detail-text h2 {
    margin: 0;
    color: var(--slate-900);
    line-height: 1.16;
}

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

.section-heading p {
    margin: 8px 0 0;
    color: var(--slate-600);
}

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

.video-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.video-card:hover {
    transform: translateY(-7px);
    border-color: rgba(251, 191, 36, 0.58);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.16);
}

.card-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-200), var(--amber-100));
}

.card-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.video-card:hover .card-poster img {
    transform: scale(1.05);
}

.quality-badge,
.card-play,
.rank-badge {
    position: absolute;
    display: inline-grid;
    place-items: center;
    color: var(--white);
    font-weight: 900;
}

.quality-badge {
    top: 12px;
    left: 12px;
    min-width: 44px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.card-play {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
}

.card-body {
    padding: 18px;
}

.card-meta,
.info-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.card-meta span,
.info-chips span {
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
    padding: 2px 9px;
    background: var(--amber-100);
}

.card-body h3 {
    margin: 0 0 8px;
    color: var(--slate-900);
    font-size: 18px;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: var(--amber-600);
}

.card-body p {
    margin: 0 0 14px;
    color: var(--slate-600);
    font-size: 14px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    padding: 24px;
    border-radius: 28px;
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-900), #78350f);
    box-shadow: var(--shadow-soft);
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(251, 191, 36, 0.34), transparent 32%);
}

.category-card > * {
    position: relative;
    z-index: 1;
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p {
    margin: 0 0 18px;
    color: #e2e8f0;
}

.category-mini-links a {
    color: #fde68a;
    font-size: 13px;
    font-weight: 800;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 78px 0 62px;
    color: var(--slate-900);
    background:
        radial-gradient(circle at 85% 15%, rgba(245, 158, 11, 0.24), transparent 30%),
        linear-gradient(135deg, var(--amber-100), var(--white));
}

.page-hero h1 {
    max-width: 880px;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--slate-600);
    font-size: 18px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 0.22fr));
    gap: 12px;
    margin-bottom: 26px;
    padding: 16px;
    border: 1px solid rgba(253, 230, 138, 0.8);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-card);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--amber-200);
    border-radius: 14px;
    padding: 0 13px;
    color: var(--slate-700);
    background: var(--white);
    outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.13);
}

.filter-button {
    min-height: 46px;
    padding: 0 18px;
}

.empty-state {
    padding: 56px 20px;
    text-align: center;
    color: var(--slate-500);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 30px;
}

.rank-list {
    list-style: none;
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.rank-row a {
    display: grid;
    grid-template-columns: 50px 58px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, background 0.22s ease;
}

.rank-row a:hover {
    transform: translateX(4px);
    background: var(--amber-50);
}

.rank-number {
    color: var(--amber-600);
    font-size: 22px;
    font-weight: 900;
    text-align: center;
}

.rank-thumb img {
    width: 58px;
    height: 78px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-text strong,
.rank-text em {
    display: block;
}

.rank-text strong {
    color: var(--slate-900);
}

.rank-text em {
    color: var(--slate-500);
    font-size: 13px;
    font-style: normal;
}

.compact-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.compact-card {
    position: relative;
    overflow: hidden;
    min-height: 160px;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    background: var(--slate-200);
}

.compact-card img {
    width: 100%;
    height: 100%;
    min-height: 160px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.compact-card:hover img {
    transform: scale(1.06);
}

.compact-card span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 36px 12px 12px;
    color: var(--white);
    font-weight: 900;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.88));
}

.watch-section {
    color: var(--white);
    background:
        radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.24), transparent 36%),
        linear-gradient(135deg, #020617, #0f172a 55%, #1e1b4b);
}

.watch-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: #cbd5e1;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--amber-300);
}

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

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.46);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    cursor: pointer;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.76));
    transition: opacity 0.25s ease;
}

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

.player-overlay span {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 22px 48px rgba(245, 158, 11, 0.36);
    font-size: 34px;
    transform: translateX(3px);
}

.watch-info {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px);
}

.watch-info img {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 20px;
    object-fit: cover;
}

.watch-info h1 {
    margin: 18px 0 10px;
    font-size: 28px;
    line-height: 1.25;
}

.watch-info p {
    color: #cbd5e1;
}

.detail-content {
    padding: 62px 0;
}

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

.detail-text,
.sidebar-panel {
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-card);
}

.detail-text {
    padding: 34px;
}

.detail-text h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.detail-text p {
    margin: 0 0 28px;
    color: var(--slate-700);
    font-size: 17px;
}

.sidebar-panel {
    padding: 22px;
}

.sidebar-panel h2 {
    margin: 0 0 16px;
    color: var(--slate-900);
    font-size: 22px;
}

.site-footer {
    color: #cbd5e1;
    background: var(--slate-900);
}

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 34px;
}

.footer-brand {
    color: var(--white);
    font-size: 24px;
}

.footer-inner p {
    margin: 10px 0 0;
}

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

.footer-links a:hover {
    color: var(--amber-300);
}

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

    .hero-inner,
    .watch-layout,
    .detail-layout,
    .rank-layout {
        grid-template-columns: 1fr;
    }

    .hero-poster-panel {
        max-width: 420px;
    }

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

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

    .menu-toggle {
        display: grid;
        place-items: center;
        margin-left: auto;
    }

    .mobile-panel {
        position: fixed;
        inset: 76px 14px auto 14px;
        z-index: 60;
        padding: 18px;
        border: 1px solid rgba(251, 191, 36, 0.4);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow-soft);
    }

    body.menu-open .mobile-panel {
        display: block;
    }

    .mobile-brand {
        color: #78350f;
        font-size: 20px;
        font-weight: 900;
        margin-bottom: 14px;
    }

    .mobile-search {
        max-width: none;
        margin-bottom: 14px;
    }

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

    .mobile-link {
        display: block;
    }

    .mobile-category-strip {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 12px;
    }

    .mobile-category-strip a {
        color: #92400e;
        border-radius: 999px;
        padding: 6px 10px;
        background: var(--amber-100);
        font-size: 13px;
        font-weight: 800;
    }

    .hero {
        min-height: auto;
    }

    .hero-slide {
        position: relative;
        display: none;
    }

    .hero-slide.is-active {
        display: grid;
    }

    .hero-inner {
        padding: 92px 0 86px;
        gap: 30px;
    }

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

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

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .header-inner,
    .container,
    .section-inner,
    .hero-inner,
    .watch-inner,
    .footer-inner {
        width: min(100% - 24px, 1240px);
    }

    .brand-text {
        font-size: 18px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .section {
        padding: 52px 0;
    }

    .section-heading {
        display: block;
    }

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

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

    .detail-text {
        padding: 24px;
    }

    .player-overlay span {
        width: 72px;
        height: 72px;
        font-size: 28px;
    }
}
