:root {
    --bg: #fffaf1;
    --bg-soft: #fff7ed;
    --paper: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fde7bd;
    --brand: #d97706;
    --brand-dark: #92400e;
    --brand-soft: #fef3c7;
    --shadow: 0 18px 45px rgba(146, 64, 14, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    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%;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 250, 241, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(253, 231, 189, 0.8);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: var(--brand-dark);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 10px 22px rgba(234, 88, 12, 0.28);
}

.brand-text {
    font-size: 20px;
    letter-spacing: 0.03em;
}

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

.nav-link,
.mobile-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #78350f;
    font-weight: 600;
    transition: background 0.25s ease, color 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav a:hover {
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.mobile-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 22px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid var(--line);
}

.hero-slider {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1s ease;
    pointer-events: none;
}

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

.hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 30%, rgba(245, 158, 11, 0.32), transparent 32%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.68) 45%, rgba(17, 24, 39, 0.2)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.85), transparent 55%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.58fr);
    gap: 48px;
    align-items: center;
    min-height: 72vh;
    padding: 92px 0 96px;
}

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

.eyebrow {
    margin: 0 0 10px;
    color: #f59e0b;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy h1,
.sub-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-desc {
    max-width: 660px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-tags span,
.hero-tags strong,
.detail-meta span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    font-size: 13px;
    font-weight: 700;
}

.hero-actions,
.detail-copy .btn {
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn-ghost {
    margin-left: 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.hero-poster {
    display: block;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 36px 80px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
    transition: transform 0.35s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) translateY(-6px);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(-50%);
}

.hero-controls > button,
.hero-dots button {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 28px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    padding: 0;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
    width: 32px;
    background: #f59e0b;
}

.search-band,
.page-section {
    padding: 72px 0;
}

.search-panel,
.side-card,
.content-card {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.search-panel {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 28px;
    align-items: center;
}

.search-panel h2,
.section-head h2,
.side-card h2,
.content-card h2,
.category-card-large h2 {
    margin: 0;
    color: #78350f;
    font-size: clamp(26px, 3.2vw, 42px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.search-panel span,
.section-head span,
.side-card p,
.content-card p,
.category-card-large p,
.sub-hero p {
    color: var(--muted);
}

.inline-search,
.search-tools {
    display: flex;
    gap: 12px;
}

.inline-search input,
.search-tools input,
.search-tools select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #f5d7a2;
    border-radius: 999px;
    background: #ffffff;
    color: var(--text);
    outline: none;
}

.inline-search input:focus,
.search-tools input:focus,
.search-tools select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.inline-search button {
    min-width: 108px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: #d97706;
    font-weight: 800;
}

.alt-bg {
    background:
        radial-gradient(circle at 15% 0%, rgba(245, 158, 11, 0.16), transparent 32%),
        linear-gradient(180deg, #fffaf1, #fff7ed);
}

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

.section-more,
.text-link {
    color: var(--brand);
    font-weight: 800;
}

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

.category-tile {
    min-height: 160px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, #ffffff, #fff7ed);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-card-large:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 56px rgba(146, 64, 14, 0.18);
}

.category-tile span {
    display: block;
    color: #78350f;
    font-size: 24px;
    font-weight: 900;
}

.category-tile small {
    display: block;
    margin-top: 10px;
    color: var(--muted);
}

.category-tile b {
    display: inline-flex;
    margin-top: 18px;
    color: var(--brand);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(146, 64, 14, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

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

.score-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 30px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(217, 119, 6, 0.94);
    font-size: 13px;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.score-pill {
    right: 10px;
    top: 10px;
}

.rank-badge {
    left: 10px;
    top: 10px;
    background: rgba(17, 24, 39, 0.8);
}

.movie-info {
    padding: 16px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.movie-info h3 {
    margin: 8px 0 6px;
    color: #78350f;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;
}

.movie-info p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.tag-row span {
    color: #92400e;
    background: #fff7ed;
    border-color: #fde7bd;
}

.compact .movie-info p {
    display: none;
}

.compact .movie-info h3 {
    font-size: 15px;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

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

.sub-hero {
    padding: 90px 0 70px;
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.36), transparent 26%),
        linear-gradient(135deg, #451a03, #92400e 48%, #f59e0b);
}

.sub-hero h1 {
    max-width: 860px;
}

.sub-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-search {
    max-width: 720px;
    margin-top: 24px;
}

.category-list {
    display: grid;
    gap: 24px;
}

.category-card-large {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 26px;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    overflow: hidden;
    border-radius: 18px;
}

.category-preview img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #fef3c7;
}

.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.rank-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.rank-table th,
.rank-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.rank-table th {
    color: #78350f;
    background: #fff7ed;
}

.rank-table a {
    color: var(--brand);
    font-weight: 800;
}

.search-tools {
    margin-top: 28px;
}

.search-count {
    margin-top: 14px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    background: #111827;
}

.detail-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.78), rgba(17, 24, 39, 0.34)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.92), transparent 60%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 40px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, 0.82);
}

.breadcrumb a {
    color: #fbbf24;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 64px rgba(0, 0, 0, 0.45);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #fef3c7;
}

.detail-copy {
    color: #ffffff;
}

.detail-one-line {
    max-width: 780px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
}

.large-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
}

.player-section {
    background: #111827;
    color: #ffffff;
}

.player-section .section-head h2,
.player-section .section-head span {
    color: #ffffff;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.62));
    font-size: 18px;
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 20px 40px rgba(234, 88, 12, 0.34);
}

.player-box.is-playing .play-overlay {
    display: none;
}

.player-status {
    position: absolute;
    left: 16px;
    bottom: 12px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.52);
    font-size: 13px;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.content-card p {
    font-size: 16px;
}

.site-footer {
    padding: 54px 0;
    color: #fef3c7;
    background: #451a03;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.7fr;
    gap: 32px;
}

.footer-grid p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.74);
}

.footer-grid h3 {
    margin: 0 0 12px;
    color: #ffffff;
}

.footer-grid a {
    display: block;
    margin: 8px 0;
    color: #fef3c7;
}

.footer-brand .brand-text {
    color: #ffffff;
}

@media (max-width: 1024px) {
    .hero-content,
    .search-panel,
    .two-column,
    .detail-layout,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .detail-poster {
        max-width: 320px;
    }

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

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

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

    .mobile-menu-btn {
        display: block;
    }

    .mobile-nav.is-open {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .hero-content {
        min-height: 76vh;
        padding-top: 78px;
        gap: 26px;
    }

    .hero-poster {
        display: none;
    }

    .hero-copy h1,
    .sub-hero h1,
    .detail-copy h1 {
        font-size: 38px;
    }

    .hero-controls {
        width: calc(100% - 32px);
        justify-content: space-between;
    }

    .inline-search,
    .search-tools,
    .section-head {
        flex-direction: column;
        align-items: stretch;
    }

    .category-grid,
    .movie-grid,
    .compact-grid,
    .ranking-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .category-card-large {
        grid-template-columns: 1fr;
    }

    .movie-info {
        padding: 13px;
    }

    .movie-info h3 {
        font-size: 16px;
    }

    .detail-layout {
        gap: 24px;
    }

    .detail-poster {
        max-width: 240px;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

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

    .page-section,
    .search-band {
        padding: 52px 0;
    }

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

    .hero-tags span:nth-child(n+5) {
        display: none;
    }
}
