:root {
    --brand: #ea580c;
    --brand-dark: #c2410c;
    --brand-soft: #ffedd5;
    --accent: #dc2626;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #f8fafc;
    --card: #ffffff;
    --dark: #111827;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #ffffff;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 12px rgba(17, 24, 39, 0.08);
}

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

.site-nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    box-shadow: 0 12px 30px rgba(234, 88, 12, 0.28);
}

.logo-mark svg {
    width: 22px;
    height: 22px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo-name {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-subtitle {
    margin-top: 4px;
    color: #4b5563;
    font-size: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: #374151;
    font-weight: 600;
    transition: color 0.2s ease;
}

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    color: #374151;
    cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle span {
    margin: 0 auto;
    position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-toggle span::before {
    top: -7px;
}

.menu-toggle span::after {
    top: 7px;
}

.menu-open .menu-toggle span {
    background: transparent;
}

.menu-open .menu-toggle span::before {
    transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle span::after {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: #0f172a;
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.hero-panel {
    width: min(680px, 100%);
    padding: 110px 0 96px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: var(--brand);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(234, 88, 12, 0.32);
}

.hero-title {
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.06em;
}

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

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 32px;
    color: #f9fafb;
}

.hero-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
    color: #ffffff;
    background: var(--brand);
    box-shadow: 0 14px 34px rgba(234, 88, 12, 0.32);
}

.primary-btn:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
}

.secondary-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.secondary-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.24);
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateX(-50%);
}

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

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

.page-hero {
    padding: 64px 0 44px;
    background:
        radial-gradient(circle at 16% 18%, rgba(234, 88, 12, 0.18), transparent 34%),
        linear-gradient(135deg, #fff7ed, #ffffff 58%, #fef2f2);
    border-bottom: 1px solid #ffedd5;
}

.page-hero.dark {
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #1f2937 54%, #7c2d12);
    border-bottom: 0;
}

.page-title {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.page-lead {
    margin: 0;
    max-width: 760px;
    color: #4b5563;
    font-size: 18px;
}

.dark .page-lead {
    color: #e5e7eb;
}

.section {
    padding: 64px 0;
}

.section.soft {
    background: var(--bg);
}

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

.section-title {
    margin: 0 0 6px;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-subtitle {
    margin: 0;
    color: var(--muted);
}

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

.text-link:hover {
    color: var(--brand-dark);
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    border-radius: 18px;
    background: var(--card);
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: #fed7aa;
    box-shadow: 0 18px 44px rgba(17, 24, 39, 0.14);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111827;
}

.movie-grid.compact .poster-wrap {
    aspect-ratio: 3 / 4;
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.play-badge {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 36px;
    background: rgba(0, 0, 0, 0.42);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
}

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

.movie-card h3 {
    margin: 0;
    color: #111827;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 900;
    transition: color 0.2s ease;
}

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

.movie-card p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
}

.clamp-2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.clamp-3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: #6b7280;
    font-size: 13px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: #9a3412;
    font-weight: 700;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
    font-size: 12px;
    font-weight: 700;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 24px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #dc2626);
    box-shadow: 0 18px 44px rgba(234, 88, 12, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #1f2937, #ea580c);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #7c2d12, #f97316);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 54px rgba(17, 24, 39, 0.22);
}

.category-card h2,
.category-card h3 {
    position: relative;
    margin: 0 0 10px;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 900;
}

.category-card p {
    position: relative;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.88);
}

.category-card span {
    position: relative;
    font-weight: 900;
}

.category-card::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -48px;
    bottom: -42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.8fr repeat(3, 1fr);
    gap: 14px;
    padding: 18px;
    margin: 28px 0 30px;
    border: 1px solid #fed7aa;
    border-radius: 22px;
    background: #fff7ed;
    box-shadow: 0 10px 30px rgba(234, 88, 12, 0.08);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #fdba74;
    border-radius: 14px;
    outline: 0;
    color: #111827;
    background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.16);
}

.empty-state {
    display: none;
    padding: 32px;
    border: 1px dashed #fdba74;
    border-radius: 20px;
    color: #9a3412;
    background: #fff7ed;
    text-align: center;
    font-weight: 800;
}

.empty-state.is-visible {
    display: block;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 76px 118px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(17, 24, 39, 0.12);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    font-size: 20px;
    font-weight: 900;
}

.rank-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: #111827;
}

.rank-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-content h2,
.rank-content h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 900;
}

.rank-content p {
    margin: 0 0 10px;
    color: #4b5563;
    font-size: 14px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px 0;
    color: #6b7280;
    font-size: 14px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) 360px;
    gap: 32px;
    align-items: start;
}

.detail-card {
    border: 1px solid #f1f5f9;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 16px 44px rgba(17, 24, 39, 0.08);
    overflow: hidden;
}

.player-shell {
    padding: 18px;
    background: #0f172a;
}

.video-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    background: #000000;
}

.video-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    cursor: pointer;
}

.player-trigger {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    padding: 14px 24px;
    color: #ffffff;
    background: rgba(234, 88, 12, 0.94);
    box-shadow: 0 16px 36px rgba(234, 88, 12, 0.38);
    transform: translate(-50%, -50%);
    cursor: pointer;
    font-weight: 900;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.player-trigger:hover {
    background: var(--brand-dark);
    transform: translate(-50%, -50%) scale(1.04);
}

.video-box.is-playing .player-trigger {
    opacity: 0;
    pointer-events: none;
}

.player-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.detail-body {
    padding: 30px;
}

.detail-title {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.detail-one {
    margin: 0 0 20px;
    color: #374151;
    font-size: 18px;
    font-weight: 700;
}

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

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 14px;
    font-weight: 800;
}

.content-block {
    margin-top: 24px;
}

.content-block h2 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 900;
}

.content-block p {
    margin: 0;
    color: #374151;
    font-size: 16px;
}

.side-panel {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 18px;
}

.side-cover {
    overflow: hidden;
    border-radius: 24px;
    background: #111827;
    box-shadow: 0 18px 44px rgba(17, 24, 39, 0.15);
}

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

.side-box {
    padding: 20px;
    border: 1px solid #f1f5f9;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

.side-box h2 {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 900;
}

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

.side-link {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: center;
}

.side-link img {
    width: 56px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    background: #111827;
}

.side-link strong {
    display: block;
    line-height: 1.25;
}

.side-link span {
    color: #6b7280;
    font-size: 13px;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937 60%, #111827);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 30px;
    padding: 46px 0;
}

.footer-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.footer-brand .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
}

.footer-brand strong {
    display: block;
    color: #ffffff;
    font-size: 20px;
}

.footer-brand span {
    color: #9ca3af;
    font-size: 13px;
}

.footer-text {
    margin: 0;
    color: #9ca3af;
    font-size: 14px;
}

.footer-col h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 17px;
}

.footer-col a {
    display: block;
    margin: 7px 0;
    color: #d1d5db;
    font-size: 14px;
}

.footer-col a:hover {
    color: #fb923c;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 0;
    color: #9ca3af;
    font-size: 14px;
}

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

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

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

    .side-panel {
        position: static;
    }

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

    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 820px) {
    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid #f3f4f6;
        border-radius: 18px;
        background: #ffffff;
        box-shadow: 0 18px 46px rgba(17, 24, 39, 0.16);
    }

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

    .nav-links a {
        padding: 12px 14px;
        border-radius: 12px;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: #fff7ed;
    }

    .hero {
        min-height: 78vh;
    }

    .hero-shade {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.72));
    }

    .hero-panel {
        padding: 96px 0 88px;
    }

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

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

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

    .rank-item {
        grid-template-columns: 54px 86px 1fr;
    }

    .detail-body {
        padding: 22px;
    }
}

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

    .logo-name {
        font-size: 21px;
    }

    .logo-subtitle {
        font-size: 11px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .btn-row {
        align-items: stretch;
        flex-direction: column;
    }

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

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

    .rank-item {
        grid-template-columns: 48px 76px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .rank-num {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 16px;
    }

    .player-trigger {
        padding: 12px 18px;
        white-space: nowrap;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}
