:root {
    --page-bg: #fff7ed;
    --surface: #ffffff;
    --surface-soft: #fffbeb;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: rgba(251, 191, 36, 0.28);
    --amber: #f59e0b;
    --orange: #f97316;
    --deep: #111827;
    --shadow: 0 24px 70px rgba(120, 53, 15, 0.18);
    --radius-xl: 28px;
    --radius-lg: 20px;
}

body {
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(251, 191, 36, 0.24), transparent 32rem),
        radial-gradient(circle at 88% 14%, rgba(249, 115, 22, 0.18), transparent 30rem),
        linear-gradient(135deg, #ffffff 0%, #fffbeb 48%, #fff7ed 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
    width: 100%;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(251, 191, 36, 0.22);
    background: rgba(255, 251, 235, 0.86);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--deep);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.34);
    font-size: 15px;
}

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

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

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #92400e;
    background: rgba(251, 191, 36, 0.18);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(120, 53, 15, 0.12);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: var(--deep);
}

.hero {
    position: relative;
    min-height: 90vh;
    overflow: hidden;
    background: var(--deep);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    height: 100%;
    object-fit: cover;
    filter: blur(4px) saturate(1.05);
    transform: scale(1.04);
    opacity: 0.72;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.88) 0%, rgba(17, 24, 39, 0.62) 45%, rgba(17, 24, 39, 0.28) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.86) 0%, rgba(17, 24, 39, 0.08) 58%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: calc(90vh - 72px);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 380px);
    align-items: center;
    gap: 56px;
    padding: 74px 0 86px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    color: #d97706;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-copy .eyebrow,
.detail-main .eyebrow,
.page-hero .eyebrow {
    color: #fbbf24;
}

.hero-copy h1 {
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.96;
    font-weight: 950;
    letter-spacing: -0.06em;
    margin-bottom: 24px;
    text-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.hero-summary {
    max-width: 660px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.65;
    margin-bottom: 24px;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    color: #92400e;
    background: rgba(254, 243, 199, 0.9);
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span {
    color: #fff7ed;
    background: rgba(251, 191, 36, 0.22);
    border: 1px solid rgba(251, 191, 36, 0.26);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
}

.primary-btn,
.ghost-btn,
.search-form button,
.rank-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn,
.search-form button,
.rank-action {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 16px 32px rgba(249, 115, 22, 0.30);
}

.ghost-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.primary-btn:hover,
.ghost-btn:hover,
.search-form button:hover,
.rank-action:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 20px 42px rgba(249, 115, 22, 0.38);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
    transition: transform 0.35s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) translateY(-8px);
}

.hero-poster img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 12px 16px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(16px);
    text-align: center;
    font-weight: 900;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    backdrop-filter: blur(12px);
}

.hero-arrow {
    width: 44px;
    height: 44px;
    font-size: 28px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.section {
    padding: 74px 0;
}

.soft-section,
.search-band {
    background: rgba(255, 251, 235, 0.68);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.search-band {
    padding: 38px 0;
}

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

.search-band-inner {
    align-items: center;
    margin-bottom: 0;
}

.section-head h2,
.search-band h2 {
    color: var(--deep);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.search-form {
    display: flex;
    width: min(540px, 100%);
    padding: 6px;
    border: 1px solid rgba(251, 191, 36, 0.32);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 16px 44px rgba(120, 53, 15, 0.10);
}

.search-form.narrow {
    margin-top: 24px;
}

.search-form input {
    min-width: 0;
    flex: 1;
    padding: 0 18px;
    color: var(--deep);
    outline: none;
}

.search-form button {
    min-height: 44px;
}

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

.category-tile {
    min-height: 142px;
    padding: 24px;
    border: 1px solid rgba(251, 191, 36, 0.32);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #ffffff, #fffbeb);
    box-shadow: 0 18px 42px rgba(120, 53, 15, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-card:hover,
.movie-card:hover,
.rank-row:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-tile span,
.category-card strong {
    display: block;
    color: var(--deep);
    font-size: 22px;
    font-weight: 950;
    margin-bottom: 10px;
}

.category-tile small,
.category-card small {
    color: var(--muted);
    line-height: 1.7;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 40px rgba(120, 53, 15, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.movie-poster img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-score,
.rank-badge {
    position: absolute;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.32);
}

.poster-score {
    right: 12px;
}

.rank-badge {
    left: 12px;
}

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

.movie-card-title {
    color: var(--deep);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 950;
    margin-bottom: 7px;
}

.movie-card-title a:hover,
.rank-info a:hover,
.breadcrumb a:hover,
.text-link:hover {
    color: #d97706;
}

.movie-meta,
.movie-desc {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.movie-desc {
    display: -webkit-box;
    min-height: 46px;
    margin: 10px 0 14px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.text-link {
    display: inline-flex;
    color: #d97706;
    font-weight: 950;
    margin-top: 14px;
}

.compact-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
}

.compact-card .movie-poster img {
    height: 100%;
    min-height: 190px;
}

.compact-card .movie-card-title {
    font-size: 17px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.small-hero {
    padding: 96px 0 70px;
    background:
        radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.38), transparent 28rem),
        linear-gradient(135deg, #111827 0%, #78350f 54%, #f97316 140%);
}

.page-hero-inner {
    max-width: 860px;
}

.page-hero h1 {
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.06em;
    margin-bottom: 18px;
}

.page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.8;
}

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

.category-card {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    color: #ffffff;
    box-shadow: 0 18px 42px rgba(120, 53, 15, 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
}

.category-card-cover {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.18));
}

.category-card strong,
.category-card small {
    position: relative;
    z-index: 2;
    margin-left: 22px;
    margin-right: 22px;
}

.category-card strong {
    padding-top: 158px;
    color: #ffffff;
}

.category-card small {
    display: block;
    color: rgba(255, 255, 255, 0.82);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 72px 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(120, 53, 15, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-number {
    color: #d97706;
    font-size: 28px;
    font-weight: 950;
    text-align: center;
}

.rank-thumb {
    overflow: hidden;
    border-radius: 16px;
}

.rank-thumb img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.rank-info h2 {
    color: var(--deep);
    font-size: 20px;
    font-weight: 950;
    margin-bottom: 6px;
}

.rank-info p {
    color: var(--muted);
    margin-bottom: 10px;
}

.detail-hero {
    min-height: 620px;
}

.detail-bg {
    position: absolute;
    inset: 0;
}

.detail-bg img {
    height: 100%;
    object-fit: cover;
    opacity: 0.52;
    filter: blur(5px) saturate(1.1);
    transform: scale(1.05);
}

.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.58)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.1));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 48px 0 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    margin-bottom: 26px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 26px;
    align-items: stretch;
}

.player-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 30px;
    background: rgba(17, 24, 39, 0.62);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
    overflow: hidden;
}

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

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

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.66));
    font-weight: 950;
    font-size: 20px;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-layer.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    display: inline-flex;
    width: 76px;
    height: 76px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 44px rgba(249, 115, 22, 0.38);
}

.detail-aside {
    position: relative;
    align-self: start;
}

.detail-cover {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.detail-score {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-weight: 950;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
}

.detail-main h1 {
    color: var(--deep);
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.05em;
    margin-bottom: 18px;
}

.lead-text {
    color: #4b5563;
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 22px;
}

.detail-meta-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta-box span {
    display: inline-flex;
    padding: 9px 13px;
    border-radius: 999px;
    color: #92400e;
    background: rgba(254, 243, 199, 0.9);
    font-weight: 800;
}

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

.content-card,
.side-panel {
    padding: 26px;
    border: 1px solid rgba(251, 191, 36, 0.26);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(120, 53, 15, 0.08);
}

.content-card + .content-card {
    margin-top: 18px;
}

.content-card h2,
.side-panel h2 {
    color: var(--deep);
    font-size: 24px;
    font-weight: 950;
    margin-bottom: 14px;
}

.content-card p {
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
}

.side-panel {
    position: sticky;
    top: 96px;
    align-self: start;
    display: grid;
    gap: 12px;
}

.side-panel a {
    padding: 12px 14px;
    border-radius: 16px;
    color: #92400e;
    background: #fffbeb;
    font-weight: 900;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(17, 24, 39, 0.96);
    color: #ffffff;
    padding: 52px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
}

.footer-brand {
    color: #ffffff;
    margin-bottom: 18px;
}

.footer-text {
    max-width: 460px;
    color: rgba(255, 255, 255, 0.66);
    line-height: 1.8;
}

.footer-title {
    font-size: 18px;
    font-weight: 950;
    margin-bottom: 16px;
}

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

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

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

.footer-bottom {
    padding-top: 30px;
    margin-top: 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.54);
    font-size: 14px;
}

@media (max-width: 980px) {
    .hero-content,
    .detail-layout,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .detail-aside {
        max-width: 320px;
    }

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

    .search-band-inner,
    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

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

    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 12px;
        right: 12px;
        top: 78px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

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

    .hero-content {
        padding: 46px 0 92px;
    }

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

    .hero-poster,
    .detail-aside {
        display: none;
    }

    .search-form {
        border-radius: 24px;
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }

    .search-form input {
        min-height: 44px;
    }

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

    .compact-card {
        grid-template-columns: 116px minmax(0, 1fr);
    }

    .rank-row {
        grid-template-columns: 48px 74px minmax(0, 1fr);
    }

    .rank-action {
        grid-column: 2 / -1;
        width: 100%;
    }

    .section {
        padding: 52px 0;
    }

    .small-hero {
        padding: 70px 0 54px;
    }
}
