:root {
    color-scheme: light;
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-400: #fbbf24;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-800: #9a3412;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow: 0 10px 25px rgba(17, 24, 39, 0.12);
    --shadow-strong: 0 25px 50px rgba(17, 24, 39, 0.24);
    --radius: 18px;
    --radius-sm: 12px;
    --content: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--gray-800);
    background: linear-gradient(180deg, var(--amber-50), #ffffff 38%, var(--orange-50));
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.content-wrap {
    width: min(100% - 32px, var(--content));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, var(--amber-900), var(--orange-800), var(--amber-900));
    box-shadow: 0 8px 24px rgba(120, 53, 15, 0.25);
}

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

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--amber-900);
    background: var(--amber-100);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.brand-text {
    display: grid;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 20px;
}

.brand-text em {
    font-size: 12px;
    font-style: normal;
    color: rgba(254, 243, 199, 0.78);
}

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

.nav-link {
    color: var(--amber-100);
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.dropdown-panel {
    position: absolute;
    top: 38px;
    left: 0;
    width: 192px;
    padding: 8px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow-strong);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--gray-700);
}

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--amber-100);
}

.mobile-nav {
    display: none;
    padding: 8px 16px 18px;
    background: rgba(146, 64, 14, 0.98);
}

.mobile-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--amber-100);
}

.mobile-nav a:hover {
    background: rgba(180, 83, 9, 0.45);
    color: #ffffff;
}

.mobile-nav.open {
    display: block;
}

.hero-carousel {
    position: relative;
    min-height: 76vh;
    overflow: hidden;
    background: #000000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.045);
    transition: opacity 1s ease, transform 1s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.52) 46%, rgba(0, 0, 0, 0.04));
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - var(--content)) / 2));
    bottom: 86px;
    width: min(720px, calc(100% - 48px));
    color: #ffffff;
}

.hero-kicker {
    display: inline-flex;
    padding: 8px 16px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: var(--amber-600);
    font-size: 14px;
    font-weight: 700;
}

.hero-content h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.08;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 26px;
    font-size: clamp(17px, 2.1vw, 22px);
    color: rgba(255, 255, 255, 0.86);
}

.hero-actions,
.hero-search-form,
.card-meta-row,
.select-row,
.detail-meta,
.breadcrumbs,
.card-subline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.primary-button,
.ghost-button,
.section-more,
.hero-search-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 22px;
    border-radius: 12px;
    border: 0;
    font-weight: 750;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button,
.hero-search-form button,
.section-more {
    color: #ffffff;
    background: var(--amber-600);
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.25);
}

.primary-button:hover,
.hero-search-form button:hover,
.section-more:hover {
    background: var(--amber-700);
    transform: translateY(-1px);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.16);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    font-size: 34px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

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

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

.quick-search {
    margin-top: -48px;
    position: relative;
    z-index: 5;
}

.quick-search-card {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 460px);
    gap: 28px;
    align-items: center;
    padding: 28px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-strong);
    border: 1px solid var(--amber-100);
}

.quick-search-card h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.quick-search-card p {
    margin: 0;
    color: var(--gray-600);
}

.hero-search-form {
    padding: 6px;
    border-radius: 14px;
    background: var(--amber-50);
    border: 1px solid var(--amber-200);
}

.hero-search-form input {
    flex: 1;
    min-width: 180px;
    border: 0;
    outline: 0;
    padding: 12px 14px;
    background: transparent;
}

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

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.section-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: var(--amber-600);
    box-shadow: 0 12px 22px rgba(217, 119, 6, 0.22);
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
}

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

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

.large-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.movie-card {
    border-radius: var(--radius-sm);
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card a {
    display: block;
    height: 100%;
}

.card-cover,
.poster-cover,
.horizontal-cover {
    position: relative;
    overflow: hidden;
    background: var(--gray-100);
}

.wide-cover {
    aspect-ratio: 16 / 9;
}

.poster-cover {
    aspect-ratio: 3 / 4;
}

.card-cover img,
.poster-cover img,
.horizontal-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.25s ease;
}

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

.cover-gradient {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.16));
    transition: opacity 0.25s ease;
}

.cover-summary {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    margin: 0;
    color: #ffffff;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .cover-gradient,
.movie-card:hover .cover-summary {
    opacity: 1;
    transform: translateY(0);
}

.card-body,
.compact-body {
    padding: 18px;
}

.movie-card h3 {
    margin: 9px 0 7px;
    color: var(--gray-800);
    font-size: 17px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.movie-card p {
    margin: 0;
    color: var(--gray-600);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 6px 11px;
    border-radius: 999px;
    color: var(--amber-900);
    background: var(--amber-100);
    font-size: 13px;
    font-weight: 750;
}

.pill.small {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
}

.rating {
    color: var(--amber-600);
    font-weight: 800;
}

.rating.small,
.mini-info,
.tag-line {
    font-size: 12px;
}

.card-subline {
    justify-content: space-between;
    margin-top: 12px;
    color: var(--gray-500);
    font-size: 13px;
}

.tag-line {
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.floating-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 8px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.72);
    font-size: 13px;
    font-weight: 800;
}

.highlight-panel {
    padding: 34px;
    margin-top: 62px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, var(--orange-100), var(--amber-50), var(--orange-100));
    box-shadow: var(--shadow);
}

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

.small-gap {
    gap: 14px;
}

.movie-card-horizontal a {
    display: flex;
    min-height: 156px;
}

.horizontal-cover {
    width: 192px;
    flex: 0 0 192px;
}

.horizontal-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
}

.compact-row {
    gap: 8px;
}

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

.picked-box {
    padding: 24px;
    border-radius: var(--radius);
    background: #ffffff;
    border: 2px solid var(--amber-200);
    box-shadow: var(--shadow);
}

.picked-box h3 {
    margin: 0 0 18px;
    font-size: 24px;
}

.orange-box {
    border-color: #fed7aa;
}

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

.category-tile,
.category-card {
    display: block;
    padding: 20px;
    border-radius: var(--radius-sm);
    background: #ffffff;
    box-shadow: 0 7px 18px rgba(17, 24, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile span,
.category-card-body span {
    color: var(--amber-600);
    font-weight: 850;
}

.category-tile h3,
.category-card h2 {
    margin: 8px 0 6px;
}

.category-tile p,
.category-card p {
    margin: 0;
    color: var(--gray-600);
    font-size: 14px;
}

.dark-panel {
    padding: 34px;
    margin-top: 62px;
    margin-bottom: 70px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--amber-900), var(--orange-800));
    box-shadow: var(--shadow-strong);
}

.dark-panel h2 {
    margin: 0 0 24px;
    color: #ffffff;
    font-size: 32px;
}

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

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

.page-hero {
    padding: 56px 0;
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber-900), var(--orange-800), var(--amber-900));
}

.page-hero h1 {
    margin: 14px 0 10px;
    font-size: clamp(36px, 5vw, 54px);
    line-height: 1.1;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--amber-100);
}

.breadcrumbs {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
}

.breadcrumbs a,
.breadcrumb-link {
    color: var(--amber-100);
}

.breadcrumbs a:hover,
.breadcrumb-link:hover {
    color: #ffffff;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 26px;
    padding: 18px;
    border-radius: var(--radius-sm);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.search-box {
    display: grid;
    gap: 8px;
    font-weight: 750;
}

.search-box input,
.select-row select {
    height: 44px;
    border: 1px solid var(--amber-200);
    border-radius: 12px;
    outline: 0;
    padding: 0 12px;
    background: var(--amber-50);
}

.search-box input:focus,
.select-row select:focus {
    border-color: var(--amber-600);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}

.empty-state {
    display: none;
    padding: 36px;
    border-radius: var(--radius-sm);
    text-align: center;
    color: var(--gray-600);
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.category-card {
    overflow: hidden;
    padding: 0;
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 140px;
    background: var(--gray-100);
}

.category-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-body {
    padding: 20px;
}

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

.rank-item {
    border-radius: var(--radius-sm);
}

.rank-item a {
    display: grid;
    grid-template-columns: 64px 120px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
}

.rank-number {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: var(--amber-600);
    font-size: 20px;
    font-weight: 900;
}

.rank-item img {
    width: 120px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
}

.rank-content h3 {
    margin: 8px 0 4px;
    font-size: 20px;
}

.rank-content p {
    -webkit-line-clamp: 1;
}

.section-more {
    width: fit-content;
    margin: 22px auto 0;
}

.player-top {
    padding: 22px 0 36px;
    background: #000000;
}

.breadcrumbs.light {
    margin-bottom: 18px;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius);
    background: #000000;
    box-shadow: var(--shadow-strong);
}

.movie-video,
.player-cover,
.player-cover img {
    width: 100%;
    height: 100%;
}

.movie-video {
    display: block;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #000000;
}

.player-cover img {
    object-fit: cover;
    opacity: 0.78;
}

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

.play-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--amber-600);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
    transform: translate(-50%, -50%);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 28px;
}

.detail-main,
.detail-side {
    display: grid;
    gap: 24px;
    align-content: start;
}

.detail-card,
.side-card {
    padding: 28px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.detail-card h1 {
    margin: 16px 0 14px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.detail-card p {
    margin: 0;
    color: var(--gray-700);
    font-size: 17px;
    line-height: 1.85;
}

.one-line {
    font-size: 18px;
    color: var(--gray-600);
}

.info-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.info-list div {
    padding: 14px;
    border-radius: 12px;
    background: var(--amber-50);
}

.info-list dt {
    color: var(--gray-500);
    font-size: 13px;
}

.info-list dd {
    margin: 5px 0 0;
    font-weight: 750;
}

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

.tag-cloud span {
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--amber-900);
    background: var(--amber-100);
    font-size: 13px;
    font-weight: 700;
}

.warm-card {
    background: linear-gradient(135deg, var(--amber-50), var(--orange-50));
}

.sticky-card {
    position: sticky;
    top: 96px;
}

.site-footer {
    margin-top: 72px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber-900), var(--orange-800), var(--amber-900));
}

.footer-inner {
    width: min(100% - 32px, var(--content));
    margin: 0 auto;
    padding: 46px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
}

.footer-brand {
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 850;
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.site-footer p,
.site-footer a,
.footer-bottom {
    color: var(--amber-100);
}

.site-footer ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 8px;
}

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

.footer-bottom {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(253, 230, 138, 0.28);
    text-align: center;
    font-size: 14px;
}

@media (max-width: 980px) {
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .quick-search-card,
    .split-grid,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

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

@media (max-width: 640px) {
    .hero-carousel {
        min-height: 72vh;
    }

    .hero-content {
        bottom: 72px;
    }

    .hero-arrow {
        display: none;
    }

    .quick-search {
        margin-top: 0;
    }

    .quick-search-card,
    .highlight-panel,
    .dark-panel,
    .detail-card,
    .side-card,
    .picked-box {
        padding: 20px;
    }

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

    .movie-card-horizontal a {
        min-height: 132px;
    }

    .horizontal-cover {
        width: 132px;
        flex-basis: 132px;
    }

    .rank-item a {
        grid-template-columns: 46px 90px 1fr;
        gap: 12px;
    }

    .rank-number {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .rank-item img {
        width: 90px;
    }

    .info-list {
        grid-template-columns: 1fr;
    }

    .select-row select {
        width: 100%;
    }
}
