:root {
    --bg: #fff7ed;
    --panel: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --line: #f3d9bd;
    --primary: #d97706;
    --primary-dark: #92400e;
    --soft: #fffbeb;
    --dark: #111827;
    --radius: 22px;
    --shadow: 0 22px 60px rgba(146, 64, 14, 0.16);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 38%, #fff7ed 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(251, 191, 36, 0.28);
    backdrop-filter: blur(18px);
}

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

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.32);
    font-size: 15px;
}

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

.desktop-nav > a,
.nav-more > button,
.mobile-nav a {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #374151;
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.desktop-nav > a:hover,
.desktop-nav > a.active,
.nav-more:hover > button,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--primary-dark);
    background: #ffedd5;
}

.nav-more {
    position: relative;
}

.nav-more > div {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    display: none;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 8px;
    min-width: 310px;
    padding: 14px;
    border: 1px solid #fed7aa;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.nav-more:hover > div {
    display: grid;
}

.nav-more a {
    padding: 10px 12px;
    border-radius: 14px;
    color: #4b5563;
}

.nav-more a:hover {
    background: #fff7ed;
    color: var(--primary-dark);
}

.menu-toggle {
    display: none;
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: var(--primary-dark);
    background: #ffedd5;
    font-size: 22px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(146, 64, 14, 0.14);
}

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

.hero-slider {
    position: relative;
    min-height: 680px;
    color: #ffffff;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    filter: saturate(1.05);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(146, 64, 14, 0.72), rgba(17, 24, 39, 0.24)), linear-gradient(0deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.05));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 96px 0 128px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    color: #92400e;
    background: #ffedd5;
    font-size: 14px;
    font-weight: 800;
}

.hero-kicker {
    color: #fef3c7;
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.34);
}

.hero-content h1 {
    max-width: 850px;
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.96;
    letter-spacing: -0.07em;
}

.hero-content p {
    max-width: 760px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 2vw, 23px);
    line-height: 1.75;
}

.hero-actions,
.filter-row,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn-primary,
.btn-ghost,
.hero-dot,
.category-card,
.search-box button {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 18px 40px rgba(234, 88, 12, 0.35);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.btn-primary:hover,
.btn-ghost:hover,
.category-card:hover,
.search-box button:hover {
    transform: translateY(-2px);
}

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

.hero-dot {
    width: 44px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    cursor: pointer;
}

.hero-dot.active {
    background: #f59e0b;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.15);
}

main {
    display: block;
}

.section {
    padding: 74px 0;
}

.section-soft {
    margin: 34px 0;
    padding: 62px 0;
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
    border-top: 1px solid #fed7aa;
    border-bottom: 1px solid #fed7aa;
}

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

.section-head h2,
.page-title h1 {
    margin: 12px 0 0;
    color: #111827;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.section-head p,
.page-title p,
.category-card p,
.movie-card p,
.detail-copy p {
    color: var(--muted);
    line-height: 1.75;
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(146, 64, 14, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #451a03;
}

.card-large .poster-wrap {
    aspect-ratio: 16 / 10;
}

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

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

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.78), rgba(17, 24, 39, 0.02) 58%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-wrap::after {
    opacity: 1;
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: #ffffff;
    border-radius: 50%;
    background: rgba(217, 119, 6, 0.9);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: #9a3412;
    font-size: 13px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--primary);
}

.movie-card p {
    display: -webkit-box;
    min-height: 74px;
    margin: 0 0 14px;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 14px;
}

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

.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 800;
}

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

.category-card {
    min-height: 190px;
    padding: 24px;
    border: 1px solid rgba(251, 191, 36, 0.45);
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff, #fffbeb);
    box-shadow: 0 12px 30px rgba(146, 64, 14, 0.08);
}

.category-card:hover {
    box-shadow: var(--shadow);
}

.category-card strong {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-size: 22px;
}

.search-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    max-width: 760px;
    margin: 30px 0 0;
    padding: 8px;
    border: 1px solid #fed7aa;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(146, 64, 14, 0.08);
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 0 16px;
    color: #111827;
    background: transparent;
    font-size: 16px;
}

.search-box button {
    border: 0;
    border-radius: 16px;
    padding: 13px 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    font-weight: 900;
    cursor: pointer;
}

.rank-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 28px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: auto 74px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(251, 191, 36, 0.38);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(146, 64, 14, 0.07);
}

.rank-item:hover {
    border-color: #f59e0b;
    transform: translateY(-2px);
}

.rank-item strong {
    color: #d97706;
    font-size: 24px;
}

.rank-item img {
    width: 74px;
    height: 98px;
    border-radius: 14px;
}

.rank-item b {
    display: block;
    margin-bottom: 8px;
    font-size: 17px;
}

.rank-item em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.page-title {
    padding: 74px 0 36px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #9a3412;
    font-size: 14px;
    font-weight: 800;
}

.detail-hero {
    padding: 54px 0;
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.34), transparent 28%), linear-gradient(135deg, #111827, #451a03 64%, #92400e);
}

.detail-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 38px;
    align-items: center;
}

.detail-cover {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
    aspect-ratio: 2 / 3;
}

.detail-info h1 {
    margin: 14px 0 18px;
    font-size: clamp(34px, 5vw, 66px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.detail-info p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #fef3c7;
    background: rgba(251, 191, 36, 0.16);
    border: 1px solid rgba(251, 191, 36, 0.26);
    font-weight: 800;
}

.player-section {
    padding: 56px 0;
}

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

.movie-player {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.player-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.22));
}

.player-cover span {
    position: relative;
    display: grid;
    place-items: center;
    width: 94px;
    height: 94px;
    border-radius: 50%;
    background: rgba(217, 119, 6, 0.92);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    font-size: 32px;
}

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

.detail-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 36px;
}

.copy-panel {
    padding: 28px;
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(146, 64, 14, 0.08);
}

.copy-panel h2 {
    margin: 0 0 12px;
    color: #111827;
}

.site-footer {
    margin-top: 60px;
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 36px;
    padding: 56px 0 36px;
}

.footer-brand {
    color: #ffffff;
}

.site-footer p {
    max-width: 560px;
    color: #9ca3af;
    line-height: 1.8;
}

.site-footer h3 {
    color: #ffffff;
}

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

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

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #6b7280;
    text-align: center;
}

.no-results {
    display: none;
    padding: 32px;
    border-radius: 22px;
    color: #92400e;
    background: #ffedd5;
    font-weight: 900;
}

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

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

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-slider {
        min-height: 620px;
    }

    .movie-grid,
    .movie-grid.featured,
    .rank-layout,
    .detail-grid,
    .detail-copy,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .detail-cover {
        max-width: 320px;
    }
}

@media (max-width: 560px) {
    .nav-shell,
    .footer-grid,
    .container,
    .hero-content,
    .copyright {
        width: min(100% - 22px, 1180px);
    }

    .brand {
        font-size: 22px;
    }

    .hero-content {
        padding-top: 74px;
    }

    .hero-actions,
    .button-row {
        align-items: stretch;
        flex-direction: column;
    }

    .btn-primary,
    .btn-ghost {
        width: 100%;
    }

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

    .search-box {
        grid-template-columns: 1fr;
    }
}
