* {
    box-sizing: border-box;
}

:root {
    --ash-50: #f8f9fa;
    --ash-100: #eef0f2;
    --ash-200: #d9dde1;
    --ash-300: #b8c0c8;
    --ash-500: #68717b;
    --ash-600: #4f5964;
    --ash-700: #343b44;
    --ash-800: #1d232b;
    --ash-900: #0d0f12;
    --volcanic-50: #fff3ed;
    --volcanic-100: #ffe0d0;
    --volcanic-600: #f07f4a;
    --volcanic-700: #ee692c;
    --volcanic-800: #e84118;
    --volcanic-900: #c03711;
    --lava-50: #fff7d9;
    --lava-400: #ffb81a;
    --lava-600: #e68a00;
    --shadow-soft: 0 18px 60px rgba(13, 15, 18, 0.12);
    --shadow-volcanic: 0 18px 55px -22px rgba(232, 65, 24, 0.55);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ash-900);
    background: linear-gradient(180deg, var(--ash-50), #ffffff 45%, #ffffff);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

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(--volcanic-800), var(--volcanic-900));
    box-shadow: 0 12px 35px rgba(192, 55, 17, 0.24);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--ash-900);
    background: var(--lava-400);
    box-shadow: 0 0 28px rgba(255, 184, 26, 0.48);
    font-size: 15px;
    font-weight: 800;
}

.brand-copy strong,
.footer-brand strong {
    display: block;
    color: #ffffff;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: 0.02em;
}

.brand-copy small {
    display: block;
    color: #ffd7c7;
    font-size: 12px;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

.nav-primary {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-link {
    position: relative;
    color: #ffffff;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--lava-400);
}

.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    border-radius: 999px;
    background: var(--lava-400);
}

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

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

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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

.mobile-link {
    color: #ffffff;
    font-weight: 600;
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: var(--ash-900);
}

.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;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 30%, rgba(255, 184, 26, 0.26), transparent 28%),
        linear-gradient(90deg, rgba(13, 15, 18, 0.92), rgba(13, 15, 18, 0.52) 45%, rgba(13, 15, 18, 0.16)),
        linear-gradient(0deg, rgba(13, 15, 18, 0.94), transparent 50%);
}

.hero-content {
    position: absolute;
    z-index: 2;
    left: max(16px, calc((100% - 1180px) / 2));
    right: 16px;
    bottom: 72px;
    max-width: 760px;
    color: #ffffff;
}

.hero-kicker {
    margin: 0 0 12px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 13px;
    color: var(--lava-400);
    background: rgba(255, 184, 26, 0.12);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(34px, 5.2vw, 68px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.04em;
}

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

.hero-tags,
.detail-meta,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.hero-tags span,
.detail-meta span,
.tag-cloud span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    font-size: 13px;
    font-weight: 700;
}

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--volcanic-600), var(--volcanic-800));
    box-shadow: var(--shadow-volcanic);
}

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

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
}

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

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

.hero-dot.is-active {
    width: 36px;
    background: var(--lava-400);
}

.search-lift {
    position: relative;
    z-index: 4;
    margin-top: -42px;
}

.filter-panel {
    padding: 18px;
    border: 1px solid rgba(232, 65, 24, 0.08);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.search-field {
    display: grid;
    gap: 8px;
}

.search-field span {
    color: var(--ash-700);
    font-size: 13px;
    font-weight: 800;
}

.search-field input,
.filter-select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--ash-200);
    border-radius: 14px;
    outline: 0;
    color: var(--ash-900);
    background: #ffffff;
    padding: 0 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-field input:focus,
.filter-select:focus {
    border-color: var(--volcanic-600);
    box-shadow: 0 0 0 4px rgba(240, 127, 74, 0.16);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.empty-state {
    margin: 16px 0 0;
    color: var(--ash-600);
    font-weight: 700;
}

.main-section {
    padding: 64px 0;
}

.category-strip {
    padding: 64px 0;
    background: linear-gradient(135deg, var(--volcanic-50), var(--lava-50));
}

.category-strip:nth-of-type(even) {
    background: #ffffff;
}

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

.section-head h2 {
    margin: 0;
    color: var(--ash-900);
    font-size: clamp(25px, 3.4vw, 38px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-line {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--volcanic-600), transparent);
}

.section-more {
    color: var(--volcanic-800);
    font-weight: 800;
}

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

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

.movie-card {
    display: block;
    min-width: 0;
    color: inherit;
}

.poster-box {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    background: var(--ash-100);
    box-shadow: 0 14px 32px rgba(13, 15, 18, 0.12);
}

.movie-card.wide .poster-box {
    aspect-ratio: 16 / 10;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.15) 48%, transparent);
    opacity: 0.82;
}

.play-bubble {
    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(--volcanic-700);
    box-shadow: var(--shadow-volcanic);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.76);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.year-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    border-radius: 999px;
    padding: 4px 9px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 800;
}

.rank-badge {
    left: 10px;
    right: auto;
    min-width: 32px;
    text-align: center;
    background: linear-gradient(135deg, var(--lava-400), var(--volcanic-700));
}

.movie-title,
.movie-meta,
.movie-line {
    display: block;
}

.movie-title {
    margin-top: 12px;
    color: var(--ash-900);
    font-weight: 850;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-card:hover .movie-title {
    color: var(--volcanic-800);
}

.movie-meta {
    margin-top: 4px;
    color: var(--ash-500);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-line {
    margin-top: 4px;
    color: var(--ash-600);
    font-size: 13px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-hero {
    color: #ffffff;
    padding: 64px 0;
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 184, 26, 0.28), transparent 32%),
        linear-gradient(110deg, var(--ash-900), var(--volcanic-900));
}

.compact-hero {
    padding: 58px 0;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

.crumbs a:hover {
    color: var(--lava-400);
}

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

.category-card {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    align-items: center;
    gap: 22px;
    padding: 18px;
    border: 1px solid var(--ash-100);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 70px rgba(13, 15, 18, 0.16);
}

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

.category-thumb-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
}

.category-copy strong {
    display: block;
    font-size: 24px;
    font-weight: 900;
}

.category-copy small {
    display: block;
    margin-top: 6px;
    color: var(--ash-600);
}

.category-arrow {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--volcanic-700);
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 32px;
    align-items: start;
}

.ranking-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
}

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

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

.line-card {
    display: grid;
    grid-template-columns: auto 58px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(13, 15, 18, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.line-card:hover {
    transform: translateX(4px);
    box-shadow: 0 18px 40px rgba(13, 15, 18, 0.12);
}

.line-card img {
    width: 58px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
}

.line-card strong {
    display: block;
    line-height: 1.35;
}

.line-card small {
    display: block;
    margin-top: 3px;
    color: var(--ash-500);
    font-size: 12px;
}

.line-rank {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--volcanic-700), var(--lava-400));
    font-size: 13px;
    font-weight: 900;
}

.side-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #ffffff, var(--volcanic-50));
    box-shadow: var(--shadow-soft);
}

.side-panel h2 {
    margin: 0 0 18px;
    font-size: 24px;
    font-weight: 900;
}

.detail-shell {
    padding: 32px 0 72px;
    background: linear-gradient(180deg, var(--ash-900) 0, var(--ash-900) 520px, #ffffff 520px, #ffffff 100%);
}

.player-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000000;
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.34);
}

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

.movie-player {
    width: 100%;
    height: 100%;
    background: #000000;
    cursor: pointer;
}

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

.player-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding-left: 5px;
    background: linear-gradient(135deg, var(--volcanic-700), var(--lava-400));
    box-shadow: 0 20px 65px rgba(232, 65, 24, 0.44);
    font-size: 34px;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 32px;
    margin-top: 34px;
    color: #ffffff;
}

.detail-poster img {
    width: 100%;
    border-radius: 20px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.detail-copy h1 {
    color: #ffffff;
}

.detail-one-line {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
}

.content-card {
    margin-top: 28px;
    padding: 28px;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.content-card h2 {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 900;
}

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

.related-section {
    padding-bottom: 0;
}

.site-footer {
    color: var(--ash-300);
    background: var(--ash-900);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-brand p {
    max-width: 520px;
    margin: 8px 0 0;
    color: var(--ash-500);
}

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

.footer-links a {
    color: var(--ash-300);
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--lava-400);
}

[hidden] {
    display: none !important;
}

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

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

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

    .nav-toggle {
        display: block;
    }

    .hero {
        height: 560px;
    }

    .hero-content {
        bottom: 70px;
    }

    .filter-row,
    .category-grid,
    .two-column-section,
    .ranking-layout,
    .detail-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        display: grid;
    }

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

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

    .category-card {
        grid-template-columns: 110px 1fr;
    }

    .category-arrow {
        display: none;
    }

    .side-panel {
        position: static;
    }

    .detail-shell {
        background: linear-gradient(180deg, var(--ash-900) 0, var(--ash-900) 440px, #ffffff 440px, #ffffff 100%);
    }

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

@media (max-width: 560px) {
    .nav-wrap {
        height: 68px;
    }

    .brand-copy strong {
        font-size: 18px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .hero {
        height: 520px;
    }

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

    .hero p,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .hero-tags,
    .detail-meta,
    .tag-cloud {
        gap: 8px;
    }

    .main-section,
    .category-strip {
        padding: 42px 0;
    }

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

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

    .category-card {
        grid-template-columns: 1fr;
    }

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

    .player-overlay span {
        width: 68px;
        height: 68px;
        font-size: 27px;
    }

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