:root {
    --bg: #fff7ed;
    --paper: #ffffff;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #fef3c7;
    --line: #f3d8aa;
    --brand: #d97706;
    --brand-dark: #b45309;
    --accent: #f97316;
    --red: #ef4444;
    --green: #059669;
    --blue: #2563eb;
    --shadow: 0 18px 45px rgba(120, 53, 15, 0.13);
    --shadow-soft: 0 10px 25px rgba(120, 53, 15, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fffaf0 0%, #ffffff 48%, #fff7ed 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: 0 10px 25px rgba(146, 64, 14, 0.08);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-weight: 900;
}

.brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    border-radius: 12px;
    box-shadow: 0 10px 18px rgba(217, 119, 6, 0.28);
}

.brand-text {
    font-size: 24px;
    line-height: 1;
    background: linear-gradient(135deg, var(--brand-dark), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand);
}

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

.nav-dropdown {
    position: relative;
}

.nav-drop-button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.drop-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 190px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #fde5bf;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .drop-menu,
.nav-dropdown:focus-within .drop-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.drop-menu a {
    display: block;
    padding: 10px 12px;
    color: #4b5563;
    border-radius: 10px;
    font-size: 14px;
}

.drop-menu a:hover {
    color: var(--brand);
    background: #fff7ed;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 280px;
    padding: 4px;
    border: 1px solid #f0d8b1;
    border-radius: 999px;
    background: #fff;
}

.header-search input,
.mobile-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 8px 10px;
    color: var(--ink);
    background: transparent;
}

.header-search button,
.mobile-search button,
.search-button {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(217, 119, 6, 0.2);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #fff7ed;
    cursor: pointer;
}

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

.mobile-panel {
    padding: 16px;
    border-top: 1px solid #fde5bf;
    background: #fff;
}

.mobile-search {
    display: flex;
    gap: 8px;
    padding: 4px;
    border: 1px solid #f0d8b1;
    border-radius: 999px;
    background: #fffaf0;
}

.mobile-link {
    display: block;
    padding: 14px 4px;
    color: #374151;
    font-weight: 800;
    border-bottom: 1px solid #fef3c7;
}

.mobile-link.active,
.mobile-link:hover {
    color: var(--brand);
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    transform: scale(1.03);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 38%, rgba(251, 191, 36, 0.2), transparent 30%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.72) 44%, rgba(17, 24, 39, 0.2) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.88) 0%, transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 620px;
    padding: 86px 0 116px;
}

.hero-copy {
    width: min(680px, 100%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    color: #fff7ed;
    background: rgba(245, 158, 11, 0.9);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero p {
    max-width: 640px;
    margin: 0 0 28px;
    color: #e5e7eb;
    font-size: clamp(17px, 2vw, 22px);
}

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

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    box-shadow: 0 18px 30px rgba(217, 119, 6, 0.28);
}

.btn-primary:hover,
.btn-soft:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn-soft {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

.hero-panel {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 28px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
}

.hero-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.hero-dot {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
    padding: 10px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    cursor: pointer;
    text-align: left;
    backdrop-filter: blur(12px);
}

.hero-dot.active {
    background: rgba(245, 158, 11, 0.82);
}

.hero-dot img {
    width: 52px;
    height: 68px;
    object-fit: cover;
    border-radius: 10px;
    flex: 0 0 auto;
}

.hero-dot span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 800;
}

main {
    display: block;
}

.section {
    padding: 64px 0;
}

.section.compact {
    padding: 42px 0;
}

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

.section-kicker {
    color: var(--brand);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section h2,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    color: #1f2937;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-head p,
.page-hero p,
.detail-title p {
    margin: 10px 0 0;
    color: var(--muted);
}

.more-link {
    color: var(--brand);
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    background: var(--paper);
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.34);
    box-shadow: var(--shadow);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #78350f, #f59e0b);
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.movie-card:hover .movie-cover img {
    transform: scale(1.06);
    opacity: 0.92;
}

.movie-badge,
.movie-year {
    position: absolute;
    top: 12px;
    padding: 5px 9px;
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    background: rgba(17, 24, 39, 0.68);
    backdrop-filter: blur(10px);
}

.movie-badge {
    left: 12px;
}

.movie-year {
    right: 12px;
}

.movie-info {
    padding: 16px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
}

.movie-info h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 18px;
    line-height: 1.25;
}

.movie-info h3 a:hover {
    color: var(--brand);
}

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

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

.movie-tags span {
    padding: 4px 8px;
    color: #92400e;
    background: #fff7ed;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.ribbon-section {
    padding: 54px 0;
    background: linear-gradient(135deg, #fff7ed, #fef3c7 58%, #fffbeb);
}

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

.category-card {
    display: flex;
    min-height: 154px;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    background: #fff;
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-icon {
    font-size: 38px;
}

.category-card h3 {
    margin: 14px 0 6px;
    font-size: 21px;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.rank-wrap {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(120, 53, 15, 0.06);
}

.rank-item:hover {
    border-color: rgba(245, 158, 11, 0.35);
    transform: translateX(2px);
}

.rank-num {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    border-radius: 50%;
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-year {
    color: var(--muted);
    font-size: 13px;
}

.page-hero {
    padding: 58px 0;
    color: #fff;
    background:
        radial-gradient(circle at 78% 20%, rgba(251, 191, 36, 0.28), transparent 28%),
        linear-gradient(135deg, #78350f 0%, #b45309 46%, #f97316 100%);
}

.page-hero h1,
.page-hero p {
    color: #fff;
}

.page-hero p {
    max-width: 760px;
    color: #ffedd5;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(120px, 0.6fr)) auto;
    gap: 12px;
    margin: -30px auto 38px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid #f0d8b1;
    outline: 0;
    padding: 12px 14px;
    color: var(--ink);
    background: #fff;
    border-radius: 16px;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.search-button {
    border: 0;
    cursor: pointer;
}

.detail-hero {
    padding: 42px 0;
    background: linear-gradient(135deg, #111827, #7c2d12 58%, #b45309);
}

.detail-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 34px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

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

.detail-title {
    color: #fff;
}

.detail-title h1,
.detail-title p {
    color: #fff;
}

.detail-title p {
    color: #ffedd5;
}

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

.breadcrumb a:hover {
    color: #fff;
}

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.detail-badges span {
    padding: 8px 12px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-weight: 800;
}

.player-card {
    position: relative;
    overflow: hidden;
    background: #050505;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.8));
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    cursor: pointer;
    z-index: 4;
}

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

.play-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 0;
    padding: 16px 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    border-radius: 999px;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 20px 45px rgba(245, 158, 11, 0.35);
}

.play-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--brand);
    background: #fff;
    border-radius: 50%;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.content-card {
    padding: 28px;
    background: #fff;
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.content-card h2,
.content-card h3 {
    margin: 0 0 14px;
    color: #111827;
}

.content-card p {
    margin: 0 0 18px;
    color: #4b5563;
}

.side-list {
    display: grid;
    gap: 12px;
}

.side-link {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    padding: 10px;
    background: #fff;
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(120, 53, 15, 0.06);
}

.side-link img {
    width: 70px;
    height: 92px;
    object-fit: cover;
    border-radius: 12px;
}

.side-link strong {
    display: block;
    margin-bottom: 4px;
    color: #111827;
    line-height: 1.25;
}

.side-link span {
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    margin-top: 48px;
    color: #fff;
    background: linear-gradient(180deg, #1f2937, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    padding: 44px 0;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 14px;
    color: #fbbf24;
}

.site-footer p {
    margin: 0;
    color: #d1d5db;
}

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

.footer-links a {
    color: #d1d5db;
}

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

.footer-bottom {
    padding: 18px;
    color: #d1d5db;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hidden-card {
    display: none !important;
}

@media (max-width: 980px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .mobile-toggle {
        display: block;
        margin-left: auto;
    }

    .hero,
    .hero-content {
        min-height: 560px;
    }

    .hero-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }

    .movie-grid,
    .movie-grid.small,
    .category-grid,
    .rank-wrap,
    .detail-layout,
    .content-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .detail-layout,
    .content-grid,
    .rank-wrap {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(320px, 100%);
    }

    .filter-panel {
        grid-template-columns: 1fr 1fr;
    }
}

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

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

    .hero,
    .hero-content {
        min-height: 620px;
    }

    .hero-content {
        padding-top: 64px;
        padding-bottom: 190px;
    }

    .hero-thumbs {
        grid-template-columns: 1fr;
    }

    .hero-dot:nth-child(n + 4) {
        display: none;
    }

    .section-head {
        display: block;
    }

    .section-actions {
        margin-top: 16px;
    }

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

    .filter-panel {
        grid-template-columns: 1fr;
        margin-top: -18px;
    }

    .content-card {
        padding: 20px;
    }
}
