:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-900: #78350f;
    --orange-50: #fff7ed;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --red-500: #ef4444;
    --blue-50: #eff6ff;
    --cyan-50: #ecfeff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(120, 53, 15, 0.12);
    --shadow-hover: 0 24px 60px rgba(120, 53, 15, 0.2);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-800);
    background: linear-gradient(135deg, var(--amber-50), var(--orange-50) 46%, #fffbeb);
    min-height: 100vh;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(245, 158, 11, 0.16);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    color: var(--amber-900);
    letter-spacing: -0.03em;
}

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

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-weight: 700;
    color: var(--gray-700);
}

.main-nav a {
    position: relative;
    padding: 8px 0;
    transition: color 0.25s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: right;
    background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
    transition: transform 0.25s ease;
}

.main-nav a:hover {
    color: var(--amber-700);
}

.main-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

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

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

.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 20px 52px;
    background: radial-gradient(circle at 18% 18%, rgba(245, 158, 11, 0.24), transparent 28%), linear-gradient(135deg, #fef3c7, #ffedd5 52%, #fef9c3);
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(30px);
    opacity: 0.32;
}

.hero-glow-one {
    top: 28px;
    left: 8%;
    width: 160px;
    height: 160px;
    background: var(--amber-500);
}

.hero-glow-two {
    right: 10%;
    bottom: 20px;
    width: 220px;
    height: 220px;
    background: var(--orange-500);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
}

.hero-slide {
    display: none;
    align-items: center;
    gap: 56px;
    min-height: 520px;
}

.hero-slide.is-active {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
    animation: fadeIn 0.58s ease both;
}

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

.hero-kicker,
.section-kicker,
.detail-kicker,
.page-hero p {
    display: inline-flex;
    margin: 0 0 14px;
    padding: 7px 13px;
    border-radius: 999px;
    color: var(--amber-700);
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(217, 119, 6, 0.18);
    font-size: 14px;
    font-weight: 800;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.04;
    font-weight: 950;
    color: var(--amber-900);
    letter-spacing: -0.06em;
}

.hero-copy p:not(.hero-kicker) {
    margin: 24px 0 0;
    font-size: 20px;
    line-height: 1.8;
    color: var(--amber-700);
}

.hero-tags,
.detail-tags,
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.card-tags span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--amber-700);
    border: 1px solid rgba(217, 119, 6, 0.16);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
}

.hero-actions,
.cta-section div {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.primary-btn,
.ghost-btn,
.section-more,
.category-overview-head a,
.region-head a,
.filter-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.primary-btn {
    min-height: 52px;
    padding: 0 28px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 16px 32px rgba(217, 119, 6, 0.28);
}

.ghost-btn {
    min-height: 52px;
    padding: 0 28px;
    color: var(--amber-700);
    background: var(--white);
    box-shadow: var(--shadow);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.category-overview-head a:hover,
.region-head a:hover,
.filter-row a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.hero-poster {
    position: relative;
    height: min(560px, 64vw);
    min-height: 390px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(120, 53, 15, 0.32);
    transform: rotate(2deg);
    isolation: isolate;
}

.hero-poster::after,
.card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.62));
    pointer-events: none;
}

.hero-control-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
}

.hero-arrow,
.hero-dots button {
    border: 0;
    cursor: pointer;
    color: var(--amber-700);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 30px;
    line-height: 1;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    opacity: 0.55;
}

.hero-dots button[aria-pressed="true"] {
    width: 28px;
    opacity: 1;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.content-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 58px 20px;
}

.soft-section,
.region-section {
    max-width: none;
    padding-left: max(20px, calc((100vw - 1240px) / 2 + 20px));
    padding-right: max(20px, calc((100vw - 1240px) / 2 + 20px));
}

.soft-section {
    background: linear-gradient(90deg, rgba(239, 246, 255, 0.8), rgba(236, 254, 255, 0.7));
}

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

.section-head h2,
.page-hero h1,
.detail-content h2 {
    margin: 0;
    color: var(--gray-800);
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.04em;
    font-weight: 950;
}

.section-more,
.category-overview-head a,
.region-head a,
.filter-row a {
    min-height: 42px;
    padding: 0 18px;
    color: var(--amber-700);
    background: var(--white);
    border: 1px solid rgba(217, 119, 6, 0.16);
}

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

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

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

.card-image {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.2;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100), var(--orange-50));
}

.card-image img {
    transition: transform 0.45s ease;
}

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

.type-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
}

.type-pill {
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
    background: rgba(245, 158, 11, 0.92);
}

.rank-badge {
    top: 12px;
    left: 12px;
    min-width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--red-500), var(--orange-500));
    box-shadow: 0 10px 18px rgba(239, 68, 68, 0.28);
}

.card-body {
    padding: 18px;
}

.card-body h3 {
    margin: 10px 0 8px;
    color: var(--gray-900);
    font-size: 19px;
    line-height: 1.35;
    font-weight: 900;
}

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

.card-body p {
    margin: 0;
    min-height: 3.3em;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.65;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 14px;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 700;
}

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

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
}

.movie-card-horizontal .card-image {
    aspect-ratio: 16 / 10;
    height: 100%;
}

.movie-card-horizontal .card-body {
    align-self: center;
}

.compact-list {
    display: grid;
    gap: 14px;
}

.movie-card-compact {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    border-radius: var(--radius-lg);
}

.movie-card-compact .card-image {
    aspect-ratio: 1 / 1.25;
}

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

.movie-card-compact .card-tags,
.movie-card-compact .movie-meta,
.movie-card-compact .type-pill {
    display: none;
}

.movie-card-compact .card-body h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.movie-card-compact .card-body p {
    min-height: auto;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.category-tile {
    min-height: 150px;
    padding: 24px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile span {
    display: block;
    margin-bottom: 12px;
    color: var(--gray-900);
    font-size: 24px;
    font-weight: 950;
}

.category-tile em {
    color: var(--gray-600);
    font-style: normal;
    line-height: 1.75;
}

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

.region-panel,
.category-overview-card {
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 22px;
}

.region-head,
.category-overview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.region-head h3,
.category-overview-head h2 {
    margin: 0;
    color: var(--gray-900);
    font-size: 24px;
    font-weight: 950;
}

.category-overview-head p {
    margin: 0 0 10px;
    color: var(--gray-600);
    line-height: 1.7;
}

.cta-section {
    max-width: 1180px;
    margin: 48px auto 74px;
    padding: 54px 28px;
    text-align: center;
    border-radius: 34px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 26px 70px rgba(217, 119, 6, 0.3);
}

.cta-section h2 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 950;
    letter-spacing: -0.05em;
}

.cta-section p {
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.92;
}

.cta-section div {
    justify-content: center;
}

.primary-btn.light,
.ghost-btn.light {
    background: var(--white);
    color: var(--amber-700);
}

.ghost-btn.light {
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.38);
}

.page-hero {
    max-width: 1240px;
    margin: 0 auto;
    padding: 62px 20px 28px;
}

.page-hero span {
    display: block;
    max-width: 780px;
    margin-top: 16px;
    color: var(--gray-600);
    font-size: 18px;
    line-height: 1.8;
}

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

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.6fr));
    gap: 16px;
    margin-bottom: 28px;
    padding: 20px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow);
}

.search-panel label {
    display: grid;
    gap: 8px;
    color: var(--gray-700);
    font-weight: 900;
}

.search-panel input,
.search-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 0 14px;
    outline: none;
    background: var(--gray-50);
    color: var(--gray-800);
}

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

.search-empty {
    display: none;
    padding: 28px;
    border-radius: var(--radius-xl);
    color: var(--gray-600);
    text-align: center;
    background: var(--white);
    box-shadow: var(--shadow);
}

.breadcrumb {
    max-width: 1240px;
    margin: 0 auto;
    padding: 26px 20px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--gray-600);
    font-weight: 800;
}

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

.detail-hero {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 20px 36px;
    display: grid;
    grid-template-columns: minmax(0, 1.34fr) minmax(320px, 0.66fr);
    gap: 30px;
    align-items: stretch;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    min-height: 520px;
    background: #0f172a;
    box-shadow: 0 30px 80px rgba(17, 24, 39, 0.32);
}

.movie-video,
.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.movie-video {
    z-index: 1;
    background: #020617;
}

.player-cover {
    z-index: 2;
    padding: 0;
    border: 0;
    cursor: pointer;
    color: var(--white);
    background: #020617;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.58));
}

.player-card.is-playing .player-cover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-ring {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    width: 94px;
    height: 94px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 24px 55px rgba(245, 158, 11, 0.42);
    font-size: 36px;
    text-indent: 4px;
}

.detail-info {
    padding: 30px;
    border-radius: 30px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.detail-info h1 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.14;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.detail-one-line {
    margin: 18px 0 20px;
    color: var(--gray-600);
    font-size: 17px;
    line-height: 1.8;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0 0;
}

.detail-meta div {
    padding: 14px;
    border-radius: 16px;
    background: var(--gray-50);
}

.detail-meta dt {
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 900;
}

.detail-meta dd {
    margin: 6px 0 0;
    color: var(--gray-900);
    font-weight: 900;
}

.detail-content {
    padding-top: 18px;
}

.detail-content p {
    margin: 16px 0 30px;
    color: var(--gray-700);
    font-size: 17px;
    line-height: 2;
    background: rgba(255, 255, 255, 0.76);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow);
}

.site-footer {
    margin-top: 40px;
    color: var(--amber-100);
    background: linear-gradient(135deg, #78350f, #92400e 54%, #7c2d12);
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 48px 20px;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 30px;
}

.footer-logo {
    color: var(--white);
}

.footer-brand p,
.footer-links a,
.copyright {
    color: var(--amber-200);
}

.footer-brand p {
    max-width: 520px;
    line-height: 1.8;
}

.footer-links h2 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 18px;
}

.footer-links div {
    display: grid;
    gap: 10px;
}

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

.copyright {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px;
    border-top: 1px solid rgba(253, 230, 138, 0.18);
    text-align: center;
}

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

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

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

    .hero-slide.is-active,
    .detail-hero,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        max-width: 520px;
        width: 100%;
        margin: 0 auto;
    }

    .search-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .header-inner {
        min-height: 64px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 68px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border-radius: 18px;
        background: var(--white);
        box-shadow: var(--shadow-hover);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 12px 14px;
        border-radius: 12px;
    }

    .main-nav a:hover {
        background: var(--amber-50);
    }

    .hero {
        padding-top: 42px;
    }

    .hero-slide {
        min-height: auto;
    }

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

    .hero-copy p:not(.hero-kicker) {
        font-size: 17px;
    }

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

    .section-head,
    .region-head,
    .category-overview-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .category-grid,
    .region-grid,
    .category-overview-grid,
    .search-panel {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal,
    .movie-card-compact {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .player-card {
        min-height: 360px;
        border-radius: 22px;
    }

    .detail-info,
    .detail-content p {
        padding: 20px;
        border-radius: 22px;
    }

    .detail-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .brand {
        font-size: 19px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .content-section,
    .page-hero,
    .detail-hero {
        padding-left: 14px;
        padding-right: 14px;
    }

    .movie-grid {
        gap: 16px;
    }

    .card-body {
        padding: 14px;
    }
}
