:root {
    --primary-50: #fff7ed;
    --primary-100: #ffedd5;
    --primary-300: #f7ca7a;
    --primary-500: #f08d1f;
    --primary-600: #e17015;
    --primary-700: #b85a12;
    --primary-800: #8a3f13;
    --secondary-50: #f8f3ec;
    --secondary-600: #a58a66;
    --accent-600: #df5015;
    --text-900: #111827;
    --text-700: #374151;
    --text-500: #6b7280;
    --line: #e5e7eb;
    --page: #f9fafb;
    --white: #ffffff;
    --shadow: 0 20px 60px rgba(17, 24, 39, 0.12);
    --soft-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text-900);
    background: var(--page);
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 48%, #f8f3ec 100%);
}

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: linear-gradient(90deg, var(--primary-800), var(--primary-700), var(--primary-600));
    box-shadow: 0 8px 28px rgba(138, 63, 19, 0.25);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.32);
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

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

.brand-text small {
    color: rgba(255, 255, 255, 0.76);
    margin-top: 4px;
}

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

.nav-link {
    color: rgba(255, 255, 255, 0.88);
    padding: 10px 14px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.menu-toggle {
    display: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 0;
    border-radius: 10px;
    padding: 8px 12px;
}

.hero {
    position: relative;
    height: 72vh;
    min-height: 560px;
    overflow: hidden;
    background: #000000;
}

.hero-stage,
.hero-slide {
    position: absolute;
    inset: 0;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.48) 42%, rgba(0, 0, 0, 0.12) 100%),
        radial-gradient(circle at 20% 72%, rgba(225, 112, 21, 0.35), transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 90px;
}

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

.hero-meta,
.card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.score {
    color: #facc15;
}

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

.hero p {
    margin: 0 0 24px;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag {
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 14px;
}

.tag {
    background: var(--primary-100);
    color: var(--primary-700);
    backdrop-filter: none;
}

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

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

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

.btn-primary {
    color: #ffffff;
    background: var(--primary-600);
    box-shadow: 0 16px 28px rgba(225, 112, 21, 0.28);
}

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

.btn-ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.46);
    font-size: 38px;
    line-height: 1;
    transform: translateY(-50%);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: #ffffff;
}

.intro-strip,
.hot-entry {
    background: linear-gradient(90deg, var(--primary-50), var(--secondary-50));
}

.intro-grid,
.hot-entry-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
    align-items: center;
    padding: 44px 0;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary-700);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.intro-grid h2,
.hot-copy h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
}

.intro-grid p,
.hot-copy p {
    margin: 0;
    color: var(--text-700);
}

.quick-search,
.filter-panel {
    display: flex;
    gap: 10px;
}

.quick-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    padding: 13px 14px;
    outline: none;
}

.quick-search button {
    white-space: nowrap;
    border: 0;
    border-radius: 12px;
    padding: 0 18px;
    color: #ffffff;
    background: var(--primary-600);
    font-weight: 700;
}

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

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
}

.section-title-row h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(26px, 4vw, 36px);
}

.section-title-row h2 span {
    color: var(--primary-600);
}

.section-more {
    color: var(--primary-700);
    font-weight: 700;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #e5e7eb;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 58%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.play-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--primary-600);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.75);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-600), #facc15);
    font-weight: 900;
}

.movie-card-body {
    padding: 14px;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card p {
    min-height: 42px;
    margin: 0 0 12px;
    color: var(--text-500);
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    color: var(--text-500);
    font-size: 12px;
}

.hot-entry {
    margin: 20px 0;
    padding: 26px 0;
}

.hot-list {
    list-style: none;
    margin: 0;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--soft-shadow);
}

.hot-list li + li {
    border-top: 1px solid rgba(165, 138, 102, 0.2);
}

.hot-list a {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 13px 0;
}

.rank-num {
    color: var(--primary-700);
    font-weight: 900;
}

.hot-list em {
    color: var(--text-500);
    font-style: normal;
}

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

.category-tile {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(225, 112, 21, 0.08);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(225, 112, 21, 0.45);
}

.category-tile strong {
    font-size: 19px;
}

.category-tile span {
    color: var(--primary-700);
    font-weight: 800;
}

.category-tile p {
    margin: 0;
    color: var(--text-500);
    font-size: 14px;
}

.page-main {
    min-height: 70vh;
}

.page-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 20%, rgba(247, 202, 122, 0.3), transparent 32%),
        linear-gradient(120deg, var(--primary-800), var(--primary-700) 52%, var(--accent-600));
}

.page-hero.compact .container {
    padding: 74px 0;
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(36px, 6vw, 60px);
    letter-spacing: -0.04em;
}

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

.filter-panel {
    margin-bottom: 24px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.filter-panel select {
    max-width: 220px;
}

.result-count {
    white-space: nowrap;
    color: var(--text-500);
}

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

.category-preview {
    padding: 20px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.category-preview-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.category-preview h3 {
    margin: 0 0 4px;
    font-size: 24px;
}

.category-preview p {
    margin: 0;
    color: var(--text-500);
}

.category-preview-head a {
    color: var(--primary-700);
    font-weight: 800;
}

.mini-card-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.mini-card {
    display: block;
}

.mini-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
    background: #e5e7eb;
}

.mini-card span {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 64px 92px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.rank-number {
    font-size: 24px;
    color: var(--primary-700);
    font-weight: 900;
    text-align: center;
}

.rank-poster img {
    width: 92px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    background: #e5e7eb;
}

.rank-info h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-info p {
    margin: 0 0 10px;
    color: var(--text-500);
}

.player-shell {
    padding: 30px 0;
    background: #000000;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #000000;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
    aspect-ratio: 16 / 9;
}

.hls-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.big-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 84px;
    height: 84px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(225, 112, 21, 0.92);
    font-size: 34px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-wrap.is-playing .big-play {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    pointer-events: none;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
    color: var(--text-500);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-700);
    font-weight: 700;
}

.detail-card,
.side-card {
    margin-bottom: 20px;
    padding: 24px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.detail-card h1,
.detail-card h2,
.side-card h2 {
    margin: 0 0 16px;
}

.detail-card h1 {
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.1;
}

.detail-meta {
    margin-bottom: 14px;
    color: var(--text-500);
}

.one-line {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-700);
}

.detail-card p {
    color: var(--text-700);
    line-height: 1.86;
}

.detail-side {
    align-self: start;
    position: sticky;
    top: 96px;
}

.side-related {
    display: grid;
    gap: 14px;
}

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

.side-item img {
    width: 74px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
    background: #e5e7eb;
}

.side-item strong,
.side-item em {
    display: block;
}

.side-item strong {
    line-height: 1.35;
}

.side-item em {
    margin-top: 6px;
    color: var(--text-500);
    font-size: 13px;
    font-style: normal;
}

.related-block {
    padding-top: 10px;
}

.site-footer {
    margin-top: 40px;
    padding: 44px 0 28px;
    color: #ffffff;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.68);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.82);
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 26px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
}

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

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

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

    .intro-grid,
    .hot-entry-grid,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
    }

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

@media (max-width: 760px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 16px;
        background: var(--primary-800);
        box-shadow: var(--shadow);
    }

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

    .hero {
        min-height: 560px;
        height: 78vh;
    }

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

    .hero-arrow {
        display: none;
    }

    .quick-search,
    .filter-panel {
        flex-direction: column;
    }

    .filter-panel select {
        max-width: none;
    }

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

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

    .hot-list a {
        grid-template-columns: 42px 1fr;
    }

    .hot-list em {
        grid-column: 2;
    }

    .rank-row {
        grid-template-columns: 44px 76px 1fr;
        gap: 12px;
    }

    .rank-poster img {
        width: 76px;
    }

    .section-title-row,
    .category-preview-head,
    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-title-row,
    .category-preview-head {
        display: flex;
    }
}

@media (max-width: 460px) {
    .container,
    .section-block,
    .copyright {
        width: min(100% - 22px, 1180px);
    }

    .brand-text small {
        display: none;
    }

    .movie-card-body {
        padding: 11px;
    }

    .movie-card p {
        display: none;
    }
}
