:root {
    --color-orange: #ea580c;
    --color-orange-dark: #c2410c;
    --color-red: #dc2626;
    --color-amber: #d97706;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-soft: #f8fafc;
    --color-card: #ffffff;
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
    --shadow-hover: 0 24px 48px rgba(15, 23, 42, 0.18);
    --radius-large: 24px;
    --radius-card: 16px;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-text);
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
    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,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-amber), var(--color-orange), var(--color-red));
    box-shadow: 0 12px 24px rgba(154, 52, 18, 0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

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

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.brand-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.brand-text {
    font-size: clamp(20px, 2vw, 28px);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 600;
}

.nav-link,
.mobile-nav-link {
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fde68a;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    padding: 9px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: #ffffff;
}

.mobile-nav {
    display: none;
    background: rgba(194, 65, 12, 0.98);
}

.mobile-nav.is-open {
    display: block;
}

.mobile-nav-inner {
    display: grid;
    gap: 8px;
    padding: 12px 0 16px;
}

.mobile-nav-link {
    display: block;
    padding: 10px 14px;
    border-radius: 12px;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    background: rgba(255, 255, 255, 0.14);
}

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

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0.72) 38%, rgba(0, 0, 0, 0.10) 100%);
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 52px 0;
}

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

.hero-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 6vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero-copy p {
    margin: 0 0 22px;
    color: #e5e7eb;
    font-size: clamp(16px, 2vw, 20px);
}

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

.hero-meta {
    margin-bottom: 24px;
}

.hero-meta span,
.movie-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-chip,
.badge,
.tag {
    border-radius: 999px;
    white-space: nowrap;
}

.hero-chip {
    padding: 6px 14px;
    color: #ffffff;
    background: var(--color-orange);
}

.hero-chip.ghost {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.primary-button,
.secondary-button,
.filter-link,
.category-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    padding: 12px 28px;
    color: #ffffff;
    background: var(--color-orange);
    box-shadow: 0 14px 28px rgba(234, 88, 12, 0.30);
}

.primary-button:hover,
.category-button:hover {
    transform: translateY(-2px) scale(1.02);
    background: var(--color-orange-dark);
    box-shadow: 0 18px 38px rgba(234, 88, 12, 0.35);
}

.secondary-button {
    padding: 11px 22px;
    color: var(--color-orange);
    background: #fff7ed;
}

.hero-arrow,
.hero-dot {
    position: absolute;
    z-index: 3;
    border: 0;
}

.hero-arrow {
    top: 50%;
    width: 46px;
    height: 46px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.50);
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.74);
}

.hero-arrow.prev {
    left: 24px;
}

.hero-arrow.next {
    right: 24px;
}

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

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

.hero-dot.is-active {
    width: 32px;
    background: var(--color-orange);
}

.main-space {
    padding: 48px 0;
}

.section-stack {
    display: grid;
    gap: 64px;
}

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

.section-head h2,
.page-title h1,
.content-card h1,
.content-card h2 {
    margin: 0;
    color: var(--color-text);
    line-height: 1.2;
}

.section-head h2 {
    font-size: clamp(26px, 3vw, 34px);
}

.section-head p {
    margin: 8px 0 0;
    color: var(--color-muted);
}

.section-link {
    color: var(--color-orange);
    font-weight: 700;
}

.grid {
    display: grid;
    gap: 24px;
}

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

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

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

.movie-card,
.category-card,
.content-card,
.rank-card,
.ranking-row,
.filter-panel,
.player-info-panel {
    border-radius: var(--radius-card);
    background: var(--color-card);
    box-shadow: var(--shadow-card);
}

.movie-card {
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link,
.movie-card-body {
    display: block;
}

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

.poster-wrap img,
.wide-cover img,
.rank-thumb img,
.ranking-image img,
.related-thumb img,
.detail-poster img,
.category-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover img,
.rank-card:hover img,
.ranking-row:hover img,
.related-item:hover img,
.category-card:hover img {
    transform: scale(1.08);
}

.poster-shade,
.play-mark {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.poster-shade {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 65%);
}

.play-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 44px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.movie-card:hover .poster-shade,
.movie-card:hover .play-mark,
.wide-cover:hover .play-mark {
    opacity: 1;
}

.badge-top {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    color: #ffffff;
    background: var(--color-orange);
    font-size: 12px;
    font-weight: 700;
}

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

.movie-title {
    display: block;
    color: var(--color-text);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-card:hover .movie-title,
.rank-card:hover a,
.ranking-row:hover .ranking-title,
.related-item:hover h3 {
    color: var(--color-orange);
}

.movie-desc {
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    color: var(--color-muted);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    margin-top: 12px;
    color: var(--color-muted);
    font-size: 14px;
}

.movie-meta span {
    padding: 2px 0;
}

.highlight-band {
    margin-left: calc((100vw - min(100vw - 32px, var(--container))) / -2);
    margin-right: calc((100vw - min(100vw - 32px, var(--container))) / -2);
    padding: 48px calc((100vw - min(100vw - 32px, var(--container))) / 2);
    background: linear-gradient(90deg, #fff7ed, #fef2f2);
}

.horizontal-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 4px 2px 20px;
    scroll-snap-type: x proximity;
}

.horizontal-scroll .movie-card-wide {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

.movie-card-wide {
    display: grid;
    overflow: hidden;
}

.wide-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111827;
}

.rank-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.rank-thumb {
    flex: 0 0 120px;
    height: 78px;
    overflow: hidden;
    border-radius: 12px;
    background: #111827;
}

.rank-info {
    min-width: 0;
    flex: 1;
}

.rank-info a {
    display: block;
    overflow: hidden;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-info p,
.ranking-content p,
.category-card p,
.content-card p,
.related-item p {
    margin: 6px 0 0;
    color: var(--color-muted);
}

.rank-score,
.ranking-score {
    color: var(--color-orange);
    font-size: 22px;
}

.list-section {
    padding: 32px;
    border-radius: var(--radius-large);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.latest-list,
.ranking-list,
.related-list {
    display: grid;
    gap: 16px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 52px 116px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-row:hover {
    background: #fff7ed;
    transform: translateX(4px);
}

.ranking-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-orange), var(--color-red));
    font-weight: 800;
}

.ranking-image {
    height: 74px;
    overflow: hidden;
    border-radius: 12px;
    background: #111827;
}

.ranking-title {
    display: block;
    font-size: 18px;
    font-weight: 800;
}

.masonry-grid {
    column-count: 3;
    column-gap: 24px;
}

.masonry-grid .movie-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 24px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 160px auto;
    align-items: end;
    gap: 16px;
    padding: 18px;
    margin-bottom: 28px;
}

.filter-panel label {
    display: grid;
    gap: 6px;
    color: var(--color-muted);
    font-weight: 700;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    color: var(--color-text);
    padding: 0 14px;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

.filter-link,
.category-button {
    min-height: 46px;
    padding: 0 18px;
    color: #ffffff;
    background: var(--color-orange);
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-orange), var(--color-red));
    padding: 56px 0;
}

.page-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(32px, 5vw, 48px);
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: #ffedd5;
    font-size: 18px;
}

.category-card {
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-cover {
    height: 190px;
    overflow: hidden;
    background: #111827;
}

.category-body {
    padding: 22px;
}

.category-body h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.category-count {
    display: inline-flex;
    margin-top: 18px;
    color: var(--color-orange);
    font-weight: 800;
}

.detail-player {
    background: #000000;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000000;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.32);
    transition: background 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay:hover {
    background: rgba(0, 0, 0, 0.48);
}

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

.player-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: var(--color-orange);
    box-shadow: 0 20px 48px rgba(234, 88, 12, 0.45);
    font-size: 34px;
    transform: translateZ(0);
    transition: transform 0.2s ease, background 0.2s ease;
}

.player-overlay:hover .player-button-icon {
    transform: scale(1.08);
    background: var(--color-orange-dark);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 32px;
    padding: 36px 0 56px;
}

.content-card {
    padding: 28px;
}

.content-card h1 {
    font-size: clamp(28px, 4vw, 40px);
}

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

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

.one-line {
    margin: 22px 0;
    padding: 18px;
    border-radius: 16px;
    color: #1f2937;
    background: linear-gradient(90deg, #f9fafb, #f3f4f6);
    font-size: 18px;
    font-style: italic;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.tag {
    padding: 5px 12px;
    color: #c2410c;
    background: #ffedd5;
    font-size: 14px;
    font-weight: 700;
}

.article-block {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.article-block h2 {
    margin-bottom: 12px;
    font-size: 24px;
}

.review-box {
    padding: 22px;
    border-radius: 18px;
    background: linear-gradient(90deg, #fff7ed, #fef2f2);
}

.detail-sidebar {
    display: grid;
    gap: 22px;
    align-content: start;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-card);
    background: #111827;
    box-shadow: var(--shadow-card);
}

.player-info-panel {
    padding: 22px;
}

.player-info-panel h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

.related-item {
    display: grid;
    grid-template-columns: 106px 1fr;
    gap: 14px;
    padding: 12px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.related-item:hover {
    background: #fff7ed;
}

.related-thumb {
    height: 76px;
    overflow: hidden;
    border-radius: 10px;
    background: #111827;
}

.related-item h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
}

.prev-next {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.prev-next a {
    padding: 16px;
    border-radius: 14px;
    background: #f9fafb;
    color: var(--color-orange);
    font-weight: 800;
}

.result-status {
    display: none;
    margin: 0 0 20px;
    color: var(--color-muted);
}

.no-results {
    display: none;
    padding: 28px;
    border-radius: 16px;
    background: #ffffff;
    color: var(--color-muted);
    text-align: center;
    box-shadow: var(--shadow-card);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
    padding: 48px 0 30px;
}

.footer-brand {
    color: #ffffff;
    font-size: 22px;
}

.footer-grid p {
    max-width: 420px;
    margin: 16px 0 0;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

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

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

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

.footer-bottom p {
    margin: 0;
}

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

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

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

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

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

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

    .menu-toggle {
        display: block;
    }

    .hero {
        height: 540px;
    }

    .hero-content {
        padding: 40px 0 54px;
    }

    .hero-arrow {
        top: auto;
        bottom: 78px;
        transform: none;
    }

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

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

    .rank-card,
    .ranking-row {
        grid-template-columns: 44px 82px 1fr;
    }

    .ranking-score {
        display: none;
    }

    .ranking-image,
    .rank-thumb {
        height: 62px;
    }

    .masonry-grid {
        column-count: 2;
    }

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

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

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

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

    .hero-copy h1 {
        font-size: 34px;
    }

    .grid-poster,
    .grid-wide,
    .grid-category {
        grid-template-columns: 1fr;
    }

    .horizontal-scroll .movie-card-wide {
        flex-basis: 250px;
    }

    .masonry-grid {
        column-count: 1;
    }

    .content-card,
    .list-section,
    .player-info-panel {
        padding: 20px;
    }

    .prev-next {
        grid-template-columns: 1fr;
    }
}
