* {
    box-sizing: border-box;
}

:root {
    --amber-50: #fff7ed;
    --amber-100: #ffedd5;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-900: #78350f;
    --orange-50: #fff7ed;
    --orange-500: #f97316;
    --orange-700: #c2410c;
    --blue-50: #eff6ff;
    --cyan-50: #ecfeff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(146, 64, 14, 0.12);
    --shadow: 0 18px 45px rgba(120, 53, 15, 0.15);
    --radius: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, var(--amber-50), var(--orange-50), #fef9c3);
    min-height: 100vh;
}

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

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

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 247, 237, 0.96), rgba(255, 237, 213, 0.96));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 28px rgba(120, 53, 15, 0.12);
    backdrop-filter: blur(18px);
}

.nav-inner {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.35);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-weight: 700;
    color: #374151;
}

.nav-links a {
    padding: 10px 0;
    transition: color 0.25s ease;
}

.nav-links a:hover {
    color: var(--amber-600);
}

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

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--amber-900);
}

.hero-shell {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffedd5, #fed7aa, #fef3c7);
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(45px);
    opacity: 0.34;
    pointer-events: none;
}

.hero-glow-one {
    width: 240px;
    height: 240px;
    left: 8%;
    top: 70px;
    background: #f59e0b;
}

.hero-glow-two {
    width: 330px;
    height: 330px;
    right: 8%;
    bottom: 30px;
    background: #fb923c;
}

.hero-track {
    position: relative;
    min-height: 620px;
    max-width: 1280px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    padding: 70px 24px;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 42px 24px;
    border-radius: 38px;
    background-image: linear-gradient(120deg, rgba(255, 247, 237, 0.95), rgba(255, 237, 213, 0.72), rgba(120, 53, 15, 0.56)), var(--hero-image);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.hero-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 48px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--amber-700);
    background: rgba(255, 255, 255, 0.76);
    font-weight: 800;
    font-size: 14px;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    color: var(--amber-900);
    font-weight: 950;
    letter-spacing: -0.05em;
}

.hero-copy h1 {
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1.02;
}

.hero-copy h2 {
    margin: 14px 0 14px;
    color: #1f2937;
    font-size: clamp(26px, 4vw, 42px);
}

.hero-copy p,
.page-hero p,
.detail-line {
    max-width: 760px;
    color: #7c2d12;
    font-size: 20px;
    line-height: 1.8;
}

.hero-tags,
.meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.hero-tags span,
.meta-chips span {
    display: inline-flex;
    padding: 8px 13px;
    border-radius: 999px;
    color: #92400e;
    background: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 800;
}

.hero-actions,
.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.primary-button,
.ghost-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
    padding: 0 28px;
    color: white;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
    box-shadow: 0 15px 28px rgba(217, 119, 6, 0.28);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.ghost-button {
    padding: 0 28px;
    color: var(--amber-700);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 15px 28px rgba(120, 53, 15, 0.12);
}

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

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

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(120, 53, 15, 0.26);
    cursor: pointer;
}

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

.content-section,
.overview-wrap,
.detail-content,
.player-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px;
}

.blue-section {
    max-width: none;
    background: linear-gradient(90deg, var(--blue-50), var(--cyan-50));
}

.blue-section > * {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.amber-section {
    max-width: none;
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.95), rgba(254, 243, 199, 0.95));
}

.amber-section > * {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

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

.section-heading h2,
.category-overview-head h2,
.detail-content h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(26px, 4vw, 36px);
    letter-spacing: -0.03em;
}

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

.section-more {
    min-height: 40px;
    padding: 0 18px;
    color: var(--amber-700);
    background: rgba(255, 255, 255, 0.8);
}

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

.six-cols {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.four-cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(120, 53, 15, 0.13);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(120, 53, 15, 0.2);
}

.poster {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 230px;
    background: linear-gradient(145deg, #fed7aa, #fef3c7, #ffedd5);
}

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

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

.poster-fallback {
    display: none;
    position: absolute;
    inset: 0;
    place-items: center;
    padding: 22px;
    text-align: center;
    color: var(--amber-900);
    font-size: 22px;
    font-weight: 950;
    line-height: 1.35;
}

.poster.no-image .poster-fallback {
    display: grid;
}

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    color: white;
    background: rgba(217, 119, 6, 0.92);
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
}

.card-body strong {
    color: #1f2937;
    font-size: 17px;
    line-height: 1.35;
}

.card-body em,
.compact-meta,
.rank-tags {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.card-desc {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
}

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

.horizontal-card {
    flex-direction: row;
    min-height: 180px;
}

.horizontal-card .poster {
    width: 34%;
    min-height: 180px;
    flex: 0 0 34%;
}

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

.category-tile {
    min-height: 190px;
    padding: 24px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px rgba(120, 53, 15, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(120, 53, 15, 0.18);
}

.category-tile strong {
    color: var(--amber-900);
    font-size: 24px;
}

.category-tile em {
    color: var(--muted);
    font-style: normal;
    line-height: 1.6;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-samples span {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--amber-700);
    background: var(--amber-100);
    font-size: 12px;
    font-weight: 800;
}

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

.region-box,
.category-overview-block,
.detail-content section,
.rank-list {
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 30px rgba(120, 53, 15, 0.11);
}

.region-box,
.category-overview-block {
    padding: 24px;
}

.region-box h3 {
    margin: 0 0 18px;
    color: var(--amber-900);
    font-size: 24px;
}

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

.compact-item,
.rank-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 247, 237, 0.7);
    transition: background 0.25s ease, transform 0.25s ease;
}

.compact-item:hover,
.rank-row:hover {
    background: #ffedd5;
    transform: translateX(4px);
}

.rank-num {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
    font-weight: 950;
}

.compact-title,
.rank-name {
    color: #1f2937;
    font-weight: 900;
}

.cta-section {
    max-width: 1280px;
    margin: 0 auto 70px;
    padding: 0 24px;
}

.cta-section > div {
    padding: 54px 28px;
    border-radius: 34px;
    color: white;
    text-align: center;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: var(--shadow);
}

.cta-section h2 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 48px);
}

.cta-section p {
    margin: 0 0 26px;
    font-size: 20px;
    opacity: 0.92;
}

.page-hero {
    position: relative;
    max-width: 1280px;
    margin: 32px auto 0;
    padding: 60px 24px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.96), rgba(254, 243, 199, 0.9));
    box-shadow: var(--shadow);
}

.compact-hero {
    overflow: hidden;
}

.compact-hero::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -70px;
    top: -80px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.18);
}

.page-hero h1 {
    font-size: clamp(38px, 6vw, 64px);
}

.page-hero p {
    margin-bottom: 0;
}

.hot-hero {
    background: linear-gradient(135deg, #ffedd5, #fee2e2, #fef3c7);
}

.search-panel {
    max-width: 1180px;
    margin: 34px auto 0;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 220px 180px;
    gap: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px rgba(120, 53, 15, 0.1);
}

.search-panel input,
.search-panel select {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 999px;
    padding: 0 18px;
    outline: none;
    color: #1f2937;
    background: white;
    font: inherit;
}

.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);
}

.detail-hero {
    position: relative;
    max-width: 1280px;
    margin: 34px auto 0;
    padding: 42px 24px;
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 34px;
    align-items: center;
    overflow: hidden;
    border-radius: 34px;
    background-image: linear-gradient(120deg, rgba(255, 247, 237, 0.95), rgba(255, 237, 213, 0.84), rgba(120, 53, 15, 0.55)), var(--detail-image);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.detail-poster {
    min-height: 430px;
    border-radius: 26px;
    box-shadow: 0 20px 45px rgba(120, 53, 15, 0.22);
}

.detail-info {
    position: relative;
    z-index: 2;
}

.detail-info h1 {
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.08;
}

.detail-line {
    margin: 18px 0 0;
}

.detail-tags span,
.detail-info .meta-chips span {
    background: rgba(255, 255, 255, 0.84);
}

.player-section {
    padding-top: 40px;
}

.player-panel {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    box-shadow: 0 22px 55px rgba(17, 24, 39, 0.28);
    aspect-ratio: 16 / 9;
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #111827;
}

.play-overlay {
    position: absolute;
    inset: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: white;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.22), rgba(17, 24, 39, 0.68));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-500));
    box-shadow: 0 18px 40px rgba(217, 119, 6, 0.34);
    font-size: 28px;
}

.play-overlay strong {
    font-size: 22px;
}

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

.detail-content {
    display: grid;
    gap: 24px;
    padding-top: 16px;
}

.detail-content section {
    padding: 30px;
}

.detail-content p {
    margin: 16px 0 0;
    color: #374151;
    font-size: 18px;
    line-height: 1.9;
}

.rank-list {
    padding: 18px;
    display: grid;
    gap: 10px;
}

.site-footer {
    margin-top: 30px;
    color: #fff7ed;
    background: linear-gradient(135deg, #78350f, #9a3412);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    color: white;
    font-size: 24px;
}

.footer-inner p {
    margin: 10px 0 0;
    color: #fde68a;
}

.footer-links {
    display: flex;
    gap: 18px;
    font-weight: 800;
}

.footer-links a:hover {
    color: #fef3c7;
}

@media (max-width: 1180px) {
    .six-cols,
    .category-list-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        padding: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 13px 16px;
        border-radius: 14px;
        background: rgba(255, 247, 237, 0.8);
    }

    .hero-shell,
    .hero-track {
        min-height: 720px;
    }

    .hero-slide {
        padding: 42px 16px 80px;
    }

    .hero-slide::before {
        inset: 24px 16px;
        border-radius: 28px;
    }

    .hero-copy {
        padding: 30px 22px;
    }

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

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

    .search-panel {
        grid-template-columns: 1fr;
        margin-left: 16px;
        margin-right: 16px;
    }

    .detail-hero {
        grid-template-columns: 1fr;
        margin-left: 16px;
        margin-right: 16px;
    }

    .detail-poster {
        max-width: 340px;
        width: 100%;
        margin: 0 auto;
    }

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

@media (max-width: 560px) {
    .brand-text {
        font-size: 22px;
    }

    .content-section,
    .overview-wrap,
    .detail-content,
    .player-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .movie-grid,
    .six-cols,
    .four-cols,
    .category-list-grid {
        grid-template-columns: 1fr;
    }

    .horizontal-card {
        flex-direction: column;
    }

    .horizontal-card .poster {
        width: 100%;
        flex-basis: auto;
    }

    .page-hero {
        margin-left: 16px;
        margin-right: 16px;
        padding: 42px 22px;
    }

    .rank-row,
    .compact-item {
        grid-template-columns: auto 1fr;
    }

    .rank-tags,
    .compact-meta {
        grid-column: 2;
    }
}
