:root {
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
    --amber-600: #d97706;
    --red-600: #dc2626;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.10);
    --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.20);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: linear-gradient(to bottom, var(--gray-50), var(--gray-100));
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600), var(--red-600));
    box-shadow: 0 10px 28px rgba(194, 65, 12, 0.26);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--orange-600);
    background: var(--white);
    font-size: 15px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    font-weight: 700;
}

.nav-links a,
.mobile-panel a {
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: #fde68a;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    color: var(--white);
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    padding: 8px 12px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 10px 18px 18px;
    background: var(--orange-700);
}

.mobile-panel a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
}

.mobile-panel a:hover {
    background: rgba(255, 255, 255, 0.12);
}

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

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #000000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

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

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

.hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 3;
    padding: 58px 0 72px;
}

.hero-inner {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    color: var(--white);
}

.hero-kicker,
.section-kicker {
    margin: 0 0 10px;
    color: var(--orange-500);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.hero-desc {
    max-width: 720px;
    margin: 0 0 24px;
    color: #e5e7eb;
    font-size: 19px;
}

.hero-tags,
.tag-row,
.tag-cloud {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-bottom: 26px;
}

.hero-tags span,
.tag-row span,
.tag-cloud a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
}

.tag-row span {
    color: var(--orange-700);
    background: var(--orange-50);
}

.tag-cloud a {
    color: var(--orange-700);
    background: var(--orange-100);
}

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

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

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

.btn-primary {
    color: var(--white);
    background: var(--orange-600);
    box-shadow: 0 14px 28px rgba(234, 88, 12, 0.30);
}

.btn-primary:hover {
    background: var(--orange-700);
}

.btn-ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
}

.page-hero .btn-ghost,
.intro-panel .btn-ghost,
.movie-hero .btn-ghost {
    color: var(--orange-700);
    background: var(--orange-50);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.50);
    cursor: pointer;
    transform: translateY(-50%);
    font-size: 38px;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
    transform: translateY(-50%) scale(1.06);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

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

.intro-panel {
    margin-top: 34px;
    padding: 28px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.intro-panel h2,
.section-head h2,
.category-overview h2,
.content-card h2,
.player-card h2,
.side-card h2 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
    font-weight: 900;
}

.intro-panel p {
    max-width: 780px;
    margin: 0;
    color: var(--gray-600);
}

section.container,
.orange-band {
    margin-top: 64px;
}

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

.section-head a {
    color: var(--orange-600);
    font-weight: 800;
}

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

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

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--gray-900);
}

.movie-cover img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.movie-shade {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 22px;
    opacity: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent 72%);
    transition: opacity 0.25s ease;
}

.movie-card:hover .movie-shade {
    opacity: 1;
}

.play-dot {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--orange-600);
    background: var(--white);
    font-size: 20px;
}

.corner-label,
.rank-mark {
    position: absolute;
    top: 12px;
    border-radius: 9px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    padding: 4px 9px;
}

.corner-label {
    right: 12px;
    background: var(--orange-500);
}

.rank-mark {
    left: 12px;
    background: rgba(17, 24, 39, 0.78);
}

.movie-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

.movie-info h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 850;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.movie-card:hover h3 {
    color: var(--orange-600);
}

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

.movie-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 700;
}

.tag-row {
    margin-top: 12px;
}

.orange-band {
    padding: 52px 0;
    background: linear-gradient(90deg, #fff7ed, #fef2f2);
}

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 260px;
    gap: 24px;
    overflow-x: auto;
    padding: 6px 0 18px;
    scroll-snap-type: x proximity;
}

.scroll-row .movie-card {
    scroll-snap-align: start;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 0.6fr));
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.filter-bar label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 800;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 0 12px;
    outline: none;
    background: var(--white);
    color: var(--gray-900);
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.movie-card.is-hidden {
    display: none;
}

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

.category-card,
.category-overview,
.content-card,
.player-card,
.side-card {
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.category-card a {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    padding: 26px;
    background: linear-gradient(135deg, var(--white), var(--orange-50));
}

.category-card h3 {
    margin: 0;
    max-width: 760px;
    font-size: 20px;
    line-height: 1.45;
}

.category-kicker {
    margin-bottom: 10px;
    color: var(--orange-600);
    font-weight: 900;
}

.category-links,
.side-links,
.footer-links {
    display: grid;
    gap: 8px;
    margin-top: auto;
}

.category-links a,
.side-links a {
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 700;
}

.category-links a:hover,
.side-links a:hover {
    color: var(--orange-600);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 42px 56px 1fr;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.rank-number {
    color: var(--orange-600);
    font-size: 22px;
    font-weight: 900;
    text-align: center;
}

.rank-item img {
    height: 74px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-title {
    font-weight: 900;
    display: block;
}

.rank-sub {
    grid-column: 3;
    margin-top: -22px;
    color: var(--gray-500);
    font-size: 13px;
}

.page-hero,
.movie-hero {
    color: var(--white);
    background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.40), transparent 28%), linear-gradient(135deg, #111827, #1f2937 45%, #7c2d12);
}

.page-hero {
    padding: 78px 0;
}

.page-hero h1,
.movie-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.1;
    font-weight: 900;
}

.page-hero p,
.movie-hero p {
    max-width: 780px;
    color: #e5e7eb;
    font-size: 18px;
}

.slim-hero {
    padding: 66px 0;
}

.category-page-stack {
    display: grid;
    gap: 32px;
}

.category-overview {
    padding: 26px;
}

.category-overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.movie-hero {
    padding: 52px 0;
}

.movie-hero-inner {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: center;
    gap: 34px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 22px;
    box-shadow: var(--shadow-xl);
    background: #000000;
}

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

.detail-headline p {
    margin: 0 0 18px;
}

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

.detail-main,
.detail-side {
    display: grid;
    gap: 24px;
}

.player-card,
.content-card,
.side-card {
    padding: 24px;
}

.player-card h2,
.content-card h2,
.side-card h2 {
    margin-bottom: 18px;
    font-size: 24px;
}

.player-stage {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #000000;
    aspect-ratio: 16 / 9;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.35));
    cursor: pointer;
    transition: opacity 0.25s ease;
}

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

.big-play {
    width: 76px;
    height: 76px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--orange-600);
    background: var(--white);
    font-size: 30px;
    box-shadow: var(--shadow-xl);
}

.player-title {
    max-width: 80%;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.player-action {
    color: #fed7aa;
    font-weight: 800;
}

.content-card p {
    margin: 0;
    color: var(--gray-600);
    font-size: 17px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.info-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 12px;
}

.info-list strong {
    color: var(--gray-500);
}

.info-list span {
    text-align: right;
    font-weight: 800;
}

.site-footer {
    margin-top: 72px;
    color: #d1d5db;
    background: linear-gradient(90deg, #111827, #1f2937, #111827);
}

.footer-inner {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
}

.footer-brand {
    color: var(--white);
    font-size: 22px;
}

.site-footer p {
    max-width: 420px;
    margin: 14px 0 0;
    color: #d1d5db;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: var(--white);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding: 20px;
    text-align: center;
    font-size: 14px;
}

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

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

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

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

    .nav-toggle {
        display: inline-flex;
    }

    .mobile-panel.is-open {
        display: grid;
    }

    .hero {
        height: 520px;
    }

    .hero-arrow {
        display: none;
    }

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

    .movie-grid,
    .compact-grid,
    .category-grid,
    .rank-list,
    .footer-inner,
    .movie-hero-inner {
        grid-template-columns: 1fr 1fr;
    }

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

    .rank-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .container,
    .hero-inner,
    .footer-inner {
        width: min(100% - 28px, 1280px);
    }

    .nav-inner {
        padding: 0 14px;
    }

    .brand {
        font-size: 20px;
    }

    .hero {
        height: 500px;
    }

    .hero-content {
        padding-bottom: 56px;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .footer-inner,
    .movie-hero-inner,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .scroll-row {
        grid-auto-columns: 220px;
    }

    .page-hero,
    .movie-hero {
        padding: 48px 0;
    }

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

    .player-title {
        font-size: 18px;
    }
}
