:root {
    color-scheme: light;
    --amber-950: #451a03;
    --amber-900: #78350f;
    --amber-800: #92400e;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --amber-300: #fcd34d;
    --amber-200: #fde68a;
    --amber-100: #fef3c7;
    --amber-50: #fffbeb;
    --stone-950: #0c0a09;
    --stone-900: #1c1917;
    --stone-800: #292524;
    --stone-700: #44403c;
    --stone-600: #57534e;
    --stone-500: #78716c;
    --stone-300: #d6d3d1;
    --stone-200: #e7e5e4;
    --stone-100: #f5f5f4;
    --stone-50: #fafaf9;
    --white: #ffffff;
    --shadow-soft: 0 20px 40px rgba(28, 25, 23, 0.14);
    --shadow-card: 0 14px 28px rgba(28, 25, 23, 0.10);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    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(--stone-900);
    background: linear-gradient(180deg, var(--amber-50), var(--stone-50) 34%, #ffffff 100%);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(69, 26, 3, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 28px rgba(69, 26, 3, 0.22);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--amber-50);
    flex: 0 0 auto;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--amber-200);
    transition: transform 0.3s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08) rotate(-2deg);
}

.brand-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.brand-icon svg path:nth-child(2) {
    fill: var(--amber-950);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: clamp(18px, 2.1vw, 25px);
    letter-spacing: -0.02em;
}

.brand-text em {
    margin-top: 4px;
    color: var(--amber-200);
    font-size: 12px;
    font-style: normal;
}

.top-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search {
    flex: 1;
    max-width: 460px;
    margin-left: auto;
}

.top-search input,
.mobile-search input,
.filter-box input,
.filter-box select {
    width: 100%;
    border: 1px solid rgba(251, 191, 36, 0.35);
    outline: none;
    border-radius: 999px;
    padding: 11px 16px;
    color: var(--amber-50);
    background: rgba(69, 26, 3, 0.58);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.filter-box input,
.filter-box select {
    color: var(--stone-900);
    background: var(--white);
    border-color: var(--stone-200);
}

.top-search input:focus,
.mobile-search input:focus,
.filter-box input:focus,
.filter-box select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.top-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(253, 230, 138, 0.7);
}

.top-search button,
.mobile-search button,
.primary-button,
.secondary-button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 700;
    transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.top-search button,
.mobile-search button,
.primary-button {
    color: var(--white);
    background: var(--amber-600);
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.32);
}

.top-search button:hover,
.mobile-search button:hover,
.primary-button:hover {
    background: var(--amber-700);
    transform: translateY(-1px) scale(1.02);
}

.secondary-button {
    color: var(--amber-50);
    border: 1px solid rgba(253, 230, 138, 0.45);
    background: rgba(255, 255, 255, 0.1);
}

.secondary-button:hover {
    color: var(--amber-950);
    background: var(--amber-100);
}

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

.nav-link {
    border: 0;
    background: transparent;
    color: var(--amber-50);
    font-weight: 700;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--amber-200);
}

.nav-dropdown {
    position: relative;
}

.dropdown-button {
    padding: 0;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 172px;
    padding: 8px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

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

.dropdown-menu a {
    display: block;
    padding: 10px 12px;
    color: var(--stone-700);
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
    background: var(--amber-50);
    color: var(--amber-800);
}

.mobile-menu-button {
    display: none;
    flex-direction: column;
    gap: 5px;
    border: 0;
    background: transparent;
    margin-left: auto;
}

.mobile-menu-button span {
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: var(--amber-50);
}

.mobile-panel {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-panel nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.mobile-panel .nav-link {
    display: block;
    text-align: center;
    border: 1px solid rgba(253, 230, 138, 0.25);
    border-radius: 999px;
    padding: 9px 8px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    color: var(--white);
    background: var(--stone-950);
}

.hero-track {
    position: relative;
    min-height: 520px;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 10, 9, 0.92), rgba(12, 10, 9, 0.68) 42%, rgba(12, 10, 9, 0.20)), linear-gradient(0deg, rgba(12, 10, 9, 0.60), rgba(12, 10, 9, 0.05) 45%, rgba(12, 10, 9, 0.52));
}

.hero-content {
    position: absolute;
    inset: 0;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    z-index: 2;
}

.hero-text {
    max-width: 650px;
    padding: 80px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amber-300);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.hero p {
    max-width: 610px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(16px, 2vw, 20px);
}

.hero-meta,
.detail-meta,
.card-meta {
    color: var(--stone-500);
    font-size: 14px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: rgba(255, 255, 255, 0.74);
    margin-bottom: 24px;
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(0, 0, 0, 0.48);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
    transform: translateY(-50%) scale(1.05);
}

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

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

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

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.25s ease, background 0.25s ease;
}

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

.page-main {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 72px;
}

.section {
    margin-bottom: 72px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.section-title h2,
.section-title h1 {
    margin: 0;
    color: var(--stone-900);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-title p,
.page-hero p {
    margin: 8px 0 0;
    color: var(--stone-600);
}

.view-more {
    color: var(--amber-700);
    font-weight: 800;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(28, 25, 23, 0.17);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: var(--stone-200);
}

.movie-card.large .poster-link {
    aspect-ratio: 16 / 10;
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.06);
    filter: brightness(0.86);
}

.play-chip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(217, 119, 6, 0.94);
    font-size: 12px;
    font-weight: 800;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-chip {
    opacity: 1;
    transform: translateY(0);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--amber-950);
    background: var(--amber-300);
    font-weight: 900;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
}

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

.movie-card h3 {
    margin: 0 0 8px;
    color: var(--stone-900);
    font-size: 17px;
    line-height: 1.35;
    min-height: 46px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.movie-card:hover h3 {
    color: var(--amber-800);
}

.card-line {
    min-height: 45px;
    margin: 0 0 10px;
    color: var(--stone-600);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    margin: 0 0 12px;
}

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

.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    color: var(--amber-900);
    background: var(--amber-100);
    font-size: 12px;
    font-weight: 700;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 24px;
    border-radius: var(--radius-lg);
    color: var(--amber-50);
    background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.38), transparent 34%), linear-gradient(135deg, var(--amber-950), var(--amber-800));
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.category-card p {
    margin: 0 0 24px;
    color: rgba(255, 251, 235, 0.78);
}

.category-card span {
    display: inline-flex;
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--amber-950);
    background: var(--amber-200);
    font-weight: 800;
}

.rank-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
}

.rank-list {
    border-radius: var(--radius-lg);
    padding: 12px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.rank-row {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 13px 12px;
    border-radius: 14px;
    transition: background 0.2s ease, color 0.2s ease;
}

.rank-row:hover {
    background: var(--amber-50);
    color: var(--amber-800);
}

.rank-row span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--amber-950);
    background: var(--amber-200);
    font-weight: 900;
}

.rank-row strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

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

.page-hero {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 36px 36px;
    color: var(--white);
    background: radial-gradient(circle at 12% 20%, rgba(251, 191, 36, 0.26), transparent 28%), linear-gradient(135deg, var(--amber-950), var(--stone-950));
}

.page-hero-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0 76px;
}

.page-hero p {
    max-width: 720px;
    color: rgba(255, 251, 235, 0.78);
    font-size: 18px;
}

.filter-box {
    display: grid;
    grid-template-columns: 1fr 190px 190px;
    gap: 12px;
    margin: 0 0 28px;
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-card);
}

.empty-message {
    display: none;
    padding: 24px;
    border-radius: var(--radius-md);
    color: var(--stone-600);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--stone-500);
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--amber-700);
    font-weight: 800;
}

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

.video-shell {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--stone-950);
    box-shadow: var(--shadow-soft);
}

.video-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-stage video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.video-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    color: var(--white);
    background: #000;
    z-index: 2;
}

.video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.64;
    filter: blur(0.2px);
}

.video-cover span {
    position: absolute;
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: rgba(217, 119, 6, 0.95);
    font-size: 34px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, background 0.2s ease;
}

.video-cover:hover span {
    transform: scale(1.06);
    background: var(--amber-700);
}

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

.video-info {
    padding: 22px;
    color: var(--amber-50);
}

.video-info h1 {
    margin: 0 0 10px;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.2;
}

.video-info p {
    margin: 0;
    color: rgba(255, 251, 235, 0.78);
}

.detail-side {
    border-radius: var(--radius-lg);
    padding: 18px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.detail-side img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.detail-side h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.detail-side dl {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 8px 10px;
    margin: 16px 0;
    color: var(--stone-600);
}

.detail-side dt {
    color: var(--stone-900);
    font-weight: 800;
}

.content-card {
    margin-top: 28px;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.content-card p {
    margin: 0 0 16px;
    color: var(--stone-700);
    font-size: 16px;
}

.site-footer {
    color: rgba(255, 251, 235, 0.78);
    background: var(--stone-950);
}

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

.footer-brand {
    color: var(--amber-200);
    font-size: 22px;
    font-weight: 900;
}

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

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

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

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

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

    .detail-side {
        max-width: 480px;
    }
}

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

    .mobile-menu-button {
        display: flex;
    }

    .hero,
    .hero-track,
    .hero-slide img {
        min-height: 560px;
    }

    .hero-text {
        padding: 72px 0 88px;
    }

    .hero-arrow {
        display: none;
    }

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

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

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

@media (max-width: 640px) {
    .header-inner {
        width: min(100% - 24px, 1280px);
        min-height: 68px;
    }

    .brand-text em {
        display: none;
    }

    .page-main {
        width: min(100% - 24px, 1280px);
        padding-top: 36px;
    }

    .page-hero-inner {
        width: min(100% - 24px, 1280px);
        padding: 54px 0 58px;
    }

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

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

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

    .card-line {
        font-size: 13px;
    }

    .rank-row {
        grid-template-columns: 34px 1fr;
    }

    .rank-row em {
        grid-column: 2;
    }

    .content-card {
        padding: 20px;
    }

    .video-cover span {
        width: 70px;
        height: 70px;
        font-size: 27px;
    }
}
