:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --orange-50: #fff7ed;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
    --red-500: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 8px 24px rgba(154, 82, 18, 0.10);
    --shadow-md: 0 18px 40px rgba(154, 82, 18, 0.16);
    --shadow-xl: 0 26px 80px rgba(124, 45, 18, 0.28);
    --radius-xl: 22px;
    --radius-2xl: 30px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 251, 235, 0.92);
    border-bottom: 1px solid rgba(251, 146, 60, 0.22);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--orange-700);
    font-weight: 900;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--orange-500), var(--amber-500));
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.brand-text {
    font-size: 22px;
    letter-spacing: 0.02em;
}

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

.nav-link,
.mobile-link {
    border-radius: 999px;
    color: var(--gray-700);
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--orange-700);
    background: rgba(251, 146, 60, 0.16);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(251, 146, 60, 0.14);
    cursor: pointer;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    margin: 4px auto;
    display: block;
    border-radius: 999px;
    background: var(--orange-700);
}

.mobile-panel {
    display: none;
    padding: 10px 16px 18px;
    border-top: 1px solid rgba(251, 146, 60, 0.20);
}

.mobile-link {
    display: block;
    padding: 12px 14px;
}

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #fbbf24 0%, #fb923c 46%, #facc15 100%);
}

.hero-symbols {
    position: absolute;
    inset: 0;
    opacity: 0.13;
    pointer-events: none;
}

.hero-symbols span {
    position: absolute;
    font-size: clamp(42px, 8vw, 96px);
    filter: drop-shadow(0 16px 30px rgba(124, 45, 18, 0.30));
}

.hero-symbols span:nth-child(1) {
    top: 8%;
    left: 7%;
}

.hero-symbols span:nth-child(2) {
    top: 22%;
    right: 10%;
}

.hero-symbols span:nth-child(3) {
    bottom: 14%;
    left: 24%;
}

.hero-symbols span:nth-child(4) {
    right: 6%;
    bottom: 8%;
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 92px 0 116px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
    align-items: center;
    gap: 56px;
}

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

.hero-copy {
    color: var(--white);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: #7c2d12;
    background: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

.hero h1,
.section-head h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(38px, 7vw, 70px);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 950;
}

.hero h1 span {
    color: #fffbeb;
    text-shadow: 0 14px 36px rgba(120, 53, 15, 0.22);
}

.hero p {
    max-width: 650px;
    margin: 22px 0 0;
    color: rgba(255, 251, 235, 0.94);
    font-size: 20px;
}

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

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

.btn-primary {
    color: var(--orange-600);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-warm:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    color: var(--white);
    background: rgba(124, 45, 18, 0.58);
}

.btn-warm {
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-500), var(--amber-500));
    box-shadow: var(--shadow-sm);
}

.hero-card {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: #111827;
    box-shadow: var(--shadow-xl);
    transform: rotate(1deg);
    transition: transform 0.3s ease;
}

.hero-card:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero-card img {
    width: 100%;
    height: 490px;
    object-fit: cover;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.03), rgba(17, 24, 39, 0.86));
}

.hero-card-info {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 26px;
    color: var(--white);
}

.hero-card-info h2 {
    margin: 0 0 8px;
    font-size: 27px;
    line-height: 1.2;
}

.hero-card-info p {
    margin: 0;
    color: var(--amber-100);
    font-size: 15px;
}

.daily-badge {
    position: absolute;
    z-index: 3;
    top: -12px;
    right: -12px;
    padding: 13px 22px;
    border-radius: 999px;
    color: var(--white);
    background: var(--red-500);
    font-weight: 900;
    box-shadow: var(--shadow-md);
    transform: rotate(12deg);
}

.hero-dots {
    display: flex;
    gap: 8px;
    margin-top: 26px;
}

.hero-dot {
    width: 38px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

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

.hero-wave {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    z-index: 3;
    color: var(--amber-50);
}

.main-section {
    padding: 74px 0;
}

.main-section.white {
    background: var(--white);
}

.main-section.soft {
    background: linear-gradient(180deg, var(--amber-50), var(--orange-50));
}

.section-title {
    max-width: 720px;
    margin: 0 auto 38px;
    text-align: center;
}

.section-title h2 {
    margin: 8px 0 10px;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.14;
    font-weight: 950;
}

.section-title p,
.section-head p,
.detail-title p {
    color: var(--gray-500);
    font-size: 18px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--orange-700);
    background: rgba(251, 146, 60, 0.13);
    font-weight: 850;
}

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

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

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

.poster-link {
    display: block;
    height: 100%;
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-200), var(--orange-500));
}

.poster-wrap img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-category,
.rank-badge,
.poster-play {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-weight: 900;
}

.poster-category {
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    color: var(--orange-600);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    font-size: 12px;
}

.rank-badge {
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-500), var(--orange-500));
    box-shadow: var(--shadow-sm);
}

.poster-play {
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: rgba(17, 24, 39, 0.64);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-info {
    padding: 17px;
}

.movie-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
    color: var(--orange-600);
    font-size: 12px;
    font-weight: 800;
}

.movie-line span {
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--orange-50);
}

.movie-info h3 {
    min-height: 48px;
    margin: 0 0 8px;
    color: var(--gray-900);
    font-size: 18px;
    line-height: 1.34;
    transition: color 0.2s ease;
}

.movie-card:hover h3 {
    color: var(--orange-600);
}

.movie-info p {
    min-height: 48px;
    margin: 0 0 12px;
    color: var(--gray-500);
    font-size: 14px;
}

.mini-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mini-tags span,
.tag-chip {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 10px;
    color: #92400e;
    background: var(--amber-50);
    font-size: 12px;
    font-weight: 750;
}

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

.category-card {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px;
    border-radius: var(--radius-2xl);
    color: var(--white);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.90), rgba(245, 158, 11, 0.86));
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -54px;
    bottom: -74px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

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

.category-card strong {
    font-size: 26px;
    line-height: 1.2;
}

.category-card p {
    max-width: 88%;
    color: rgba(255, 251, 235, 0.92);
}

.section-head {
    width: min(1180px, calc(100% - 32px));
    margin: 44px auto 26px;
    padding: 32px;
    border-radius: var(--radius-2xl);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 28px;
    align-items: end;
}

.filter-box {
    display: grid;
    gap: 12px;
}

.filter-box label {
    display: grid;
    gap: 6px;
    color: var(--gray-700);
    font-weight: 800;
}

.filter-box input,
.filter-box select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(251, 146, 60, 0.26);
    border-radius: 15px;
    outline: none;
    color: var(--gray-800);
    background: var(--white);
}

.filter-box input:focus,
.filter-box select:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

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

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

.detail-hero {
    padding: 36px 0 64px;
    background: linear-gradient(135deg, var(--amber-100), var(--orange-50));
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--gray-500);
    font-size: 14px;
    font-weight: 750;
}

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

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

.player-panel,
.detail-panel,
.side-panel {
    border-radius: var(--radius-2xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

.player-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0f172a;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.14), rgba(15, 23, 42, 0.74));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-button {
    width: 92px;
    height: 92px;
    border: 0;
    border-radius: 999px;
    color: var(--orange-600);
    background: rgba(255, 255, 255, 0.94);
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    transition: transform 0.2s ease, background 0.2s ease;
}

.play-button:hover {
    transform: scale(1.08);
    background: var(--white);
}

.player-caption {
    padding: 24px;
}

.player-caption h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.16;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--orange-700);
    background: var(--orange-50);
    font-weight: 800;
}

.detail-panel {
    margin-top: 28px;
    padding: 28px;
}

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

.detail-panel p {
    margin: 0 0 18px;
    color: var(--gray-700);
    font-size: 17px;
}

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

.side-panel {
    padding: 22px;
}

.side-poster {
    width: 100%;
    border-radius: 22px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.related-list {
    display: grid;
    gap: 13px;
    margin-top: 18px;
}

.related-item {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 9px;
    border-radius: 16px;
    background: var(--orange-50);
    transition: transform 0.2s ease, background 0.2s ease;
}

.related-item:hover {
    transform: translateX(4px);
    background: var(--amber-100);
}

.related-item img {
    width: 74px;
    height: 92px;
    border-radius: 12px;
    object-fit: cover;
}

.related-item strong {
    display: block;
    color: var(--gray-900);
    line-height: 1.25;
}

.related-item span {
    color: var(--gray-500);
    font-size: 13px;
}

.site-footer {
    color: var(--amber-50);
    background: linear-gradient(135deg, #7c2d12, #9a3412 45%, #92400e);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.7fr;
    gap: 34px;
    padding: 50px 0 34px;
}

.footer-grid p {
    max-width: 520px;
    color: var(--amber-100);
}

.footer-grid h3 {
    margin: 0 0 12px;
    color: var(--white);
}

.footer-grid a {
    display: block;
    margin: 8px 0;
    color: var(--amber-100);
}

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

.footer-bottom {
    padding: 20px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--amber-100);
    text-align: center;
}

.hidden-by-filter {
    display: none !important;
}

@media (max-width: 1020px) {
    .hero-slide,
    .detail-layout,
    .search-panel {
        grid-template-columns: 1fr;
    }

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

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

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

    .mobile-toggle {
        display: inline-block;
    }

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

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

    .hero-inner {
        padding: 58px 0 86px;
    }

    .hero p {
        font-size: 17px;
    }

    .hero-card img {
        height: 380px;
    }

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

    .section-head {
        padding: 24px;
    }

    .main-section {
        padding: 52px 0;
    }
}

@media (max-width: 480px) {
    .container,
    .nav-inner,
    .section-head,
    .listing-wrap {
        width: min(100% - 22px, 1180px);
    }

    .hero h1,
    .section-head h1,
    .detail-title h1 {
        font-size: 36px;
    }

    .hero-card img {
        height: 320px;
    }

    .btn {
        width: 100%;
    }

    .play-button {
        width: 78px;
        height: 78px;
    }
}
