:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --yellow-400: #facc15;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(146, 64, 14, 0.14);
    --shadow-strong: 0 28px 80px rgba(120, 53, 15, 0.24);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: linear-gradient(135deg, var(--amber-50), #fff7ed 48%, #fefce8);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-600), var(--orange-500), var(--yellow-400));
    box-shadow: 0 12px 30px rgba(180, 83, 9, 0.28);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 18px;
}

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--orange-600);
    background: var(--white);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(120, 53, 15, 0.18);
}

.brand-text {
    font-size: 1.55rem;
}

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

.nav-link,
.nav-dropdown > button {
    border: 0;
    color: var(--white);
    background: transparent;
    font-weight: 650;
    opacity: 0.94;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-dropdown > button:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    display: grid;
    width: 180px;
    padding: 8px;
    color: var(--gray-700);
    background: var(--white);
    border-radius: 14px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

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

.nav-dropdown-menu a {
    padding: 9px 12px;
    border-radius: 10px;
}

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

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

.header-search input,
.mobile-search input,
.hero-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 0;
    outline: none;
    color: var(--gray-900);
    background: var(--white);
    border-radius: 999px;
    padding: 12px 16px;
    box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.12);
}

.header-search input {
    width: 260px;
}

.header-search button,
.mobile-search button,
.hero-search button {
    border: 0;
    color: var(--orange-600);
    background: var(--white);
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 800;
}

.menu-toggle {
    display: none;
    border: 0;
    color: var(--white);
    background: transparent;
    font-size: 1.8rem;
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
    background: rgba(146, 64, 14, 0.32);
}

.mobile-panel.open {
    display: grid;
    gap: 12px;
}

.mobile-link {
    display: block;
    padding: 10px 4px;
    font-weight: 700;
}

.hero-shell {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.25), transparent 28%),
        linear-gradient(120deg, var(--amber-600), var(--orange-500) 54%, var(--yellow-400));
}

.hero-shell::after {
    position: absolute;
    inset: auto -10% -30% auto;
    width: 520px;
    height: 520px;
    content: "";
    background: rgba(255, 255, 255, 0.17);
    border-radius: 999px;
    filter: blur(12px);
}

.hero-stage {
    position: relative;
    z-index: 1;
    min-height: 580px;
    padding: 76px 0 116px;
}

.hero-slide {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
}

.hero-slide.active {
    display: flex;
    animation: fadeIn 0.45s ease both;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

.text-orange {
    color: var(--orange-600);
}

.hero-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.hero-copy h2 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3vw, 2.7rem);
    line-height: 1.16;
}

.hero-copy p,
.page-hero p {
    max-width: 780px;
    margin: 0 0 22px;
    font-size: 1.12rem;
    color: rgba(255, 255, 255, 0.92);
}

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

.primary-btn,
.ghost-btn,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-600), var(--orange-500), var(--yellow-400));
    padding: 13px 22px;
    box-shadow: 0 14px 28px rgba(194, 65, 12, 0.22);
}

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

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hero-poster {
    position: relative;
    flex: 0 0 min(380px, 34vw);
    overflow: hidden;
    min-height: 420px;
    border: 10px solid rgba(255, 255, 255, 0.26);
    border-radius: 28px;
    box-shadow: var(--shadow-strong);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    color: var(--gray-900);
    background: var(--white);
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 800;
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 70px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 38px;
    height: 8px;
    border: 0;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 999px;
}

.hero-dot.active {
    background: var(--white);
}

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

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    color: var(--orange-600);
    background: var(--amber-50);
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.83rem;
    font-weight: 750;
}

.hero-tags .tag {
    color: var(--gray-900);
    background: rgba(255, 255, 255, 0.86);
}

.featured-panel {
    position: relative;
    z-index: 2;
    margin-top: -64px;
    padding: 30px;
    background: var(--white);
    border-radius: 28px;
    box-shadow: var(--shadow-strong);
}

.section-block {
    margin-top: 68px;
}

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

.section-title-row.slim {
    align-items: center;
    margin-bottom: 18px;
}

.section-title-row h2,
.page-hero h1,
.detail-content h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.16;
    letter-spacing: -0.04em;
}

.section-link {
    color: var(--orange-600);
    background: var(--white);
    border: 1px solid rgba(249, 115, 22, 0.2);
    padding: 10px 16px;
}

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

.movie-card {
    overflow: hidden;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(146, 64, 14, 0.1);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10.5;
    background: #fed7aa;
}

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

.movie-card:hover .poster-link img,
.category-card:hover img,
.compact-card:hover img,
.rank-item:hover img {
    transform: scale(1.07);
}

.poster-gradient,
.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.76));
}

.play-chip,
.card-type {
    position: absolute;
    color: var(--white);
    background: rgba(249, 115, 22, 0.92);
    border-radius: 999px;
    font-weight: 800;
}

.play-chip {
    top: 14px;
    left: 14px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.card-type {
    right: 14px;
    bottom: 14px;
    padding: 6px 10px;
    font-size: 0.82rem;
}

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

.movie-card-body h2 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    line-height: 1.28;
}

.movie-card-body h2 a:hover,
.rank-info h2 a:hover,
.compact-card:hover strong {
    color: var(--orange-600);
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--gray-500);
    font-size: 0.93rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--gray-500);
    font-size: 0.88rem;
}

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

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    color: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.category-card img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-card strong,
.category-card em {
    position: absolute;
    left: 22px;
    right: 22px;
    z-index: 1;
}

.category-card strong {
    bottom: 72px;
    font-size: 1.45rem;
}

.category-card em {
    bottom: 22px;
    color: rgba(255, 255, 255, 0.88);
    font-style: normal;
    font-size: 0.94rem;
}

.two-column {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
}

.ranking-panel,
.horizontal-panel,
.content-card,
.player-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.ranking-panel,
.horizontal-panel {
    padding: 26px;
}

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

.rank-list.full {
    gap: 20px;
}

.rank-item {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
    align-items: center;
    padding: 12px;
    background: var(--white);
    border-radius: 18px;
    box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.08);
}

.rank-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
}

.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.rank-cover span {
    position: absolute;
    top: 8px;
    left: 8px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: var(--white);
    background: var(--orange-500);
    border-radius: 999px;
    font-weight: 900;
}

.rank-info h2 {
    margin: 0 0 6px;
    font-size: 1.08rem;
}

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

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.compact-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    align-items: center;
    min-width: 260px;
    padding: 10px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.08);
}

.compact-card img {
    width: 96px;
    height: 66px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.35s ease;
}

.compact-card strong,
.compact-card em {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.compact-card strong {
    font-size: 0.96rem;
    -webkit-line-clamp: 1;
}

.compact-card em {
    color: var(--gray-500);
    font-size: 0.82rem;
    font-style: normal;
    -webkit-line-clamp: 1;
}

.page-hero {
    color: var(--white);
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
        linear-gradient(120deg, var(--amber-600), var(--orange-500), var(--yellow-400));
    padding: 76px 0;
}

.page-hero h1 {
    max-width: 900px;
    margin-bottom: 16px;
}

.split-hero {
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 38px;
    align-items: center;
}

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

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 220px 220px;
    gap: 14px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 22px;
    box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.08);
}

.compact-filter {
    grid-template-columns: 220px 220px;
    justify-content: end;
}

.empty-message {
    margin: 30px 0 0;
    padding: 26px;
    color: var(--gray-500);
    text-align: center;
    background: var(--white);
    border-radius: 18px;
}

.detail-wrap {
    padding-top: 32px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    color: var(--gray-500);
    font-size: 0.92rem;
}

.breadcrumb a:hover {
    color: var(--orange-600);
}

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

.player-card {
    padding: 12px;
}

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

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

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.72));
    text-align: center;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.big-play {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    color: var(--orange-600);
    background: var(--white);
    border-radius: 999px;
    font-size: 2rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.player-controls {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    pointer-events: none;
}

.player-controls button {
    pointer-events: auto;
    border: 0;
    color: var(--white);
    background: rgba(0, 0, 0, 0.58);
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 800;
}

.content-card {
    padding: 26px;
}

.detail-content {
    margin-top: 22px;
}

.detail-content .lead {
    margin: 16px 0;
    color: var(--orange-600);
    font-size: 1.12rem;
    font-weight: 700;
}

.detail-content h2,
.side-info h2 {
    margin: 26px 0 12px;
    font-size: 1.32rem;
}

.detail-content h2:first-child,
.side-info h2:first-child {
    margin-top: 0;
}

.detail-content p {
    color: var(--gray-700);
    font-size: 1rem;
}

.detail-side {
    display: grid;
    gap: 18px;
}

.side-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.side-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

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

.detail-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-100);
}

.detail-list strong {
    color: var(--gray-500);
}

.block-btn {
    width: 100%;
    margin-top: 20px;
}

.side-links {
    display: grid;
    gap: 12px;
}

.site-footer {
    margin-top: 80px;
    color: var(--white);
    background: linear-gradient(90deg, #92400e, #c2410c, #b45309);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
    padding: 44px 0;
}

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

.site-footer p,
.site-footer a,
.footer-bottom {
    color: rgba(255, 255, 255, 0.82);
}

.site-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 18px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
    font-size: 0.92rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .detail-grid,
    .two-column,
    .split-hero {
        grid-template-columns: 1fr;
    }

    .detail-side {
        grid-template-columns: 260px 1fr;
    }
}

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

    .menu-toggle {
        display: block;
    }

    .hero-stage {
        min-height: auto;
        padding: 56px 0 96px;
    }

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

    .hero-poster {
        min-height: 300px;
        transform: none;
    }

    .hero-poster img {
        min-height: 300px;
    }

    .hero-dots {
        bottom: 48px;
    }

    .featured-panel {
        padding: 20px;
    }

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

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

    .filter-bar,
    .compact-filter {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {
    .container {
        width: min(100% - 22px, 1280px);
    }

    .brand-text {
        font-size: 1.25rem;
    }

    .hero-copy h1 {
        font-size: 2.25rem;
    }

    .movie-grid,
    .category-grid,
    .category-grid.large,
    .detail-side,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 96px 1fr;
    }

    .player-controls {
        justify-content: center;
    }

    .player-controls button {
        padding: 8px 10px;
        font-size: 0.88rem;
    }
}
