:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --brand: #d97706;
    --brand-dark: #b45309;
    --brand-soft: #fff7ed;
    --dark: #111827;
    --shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 48%, #fff7ed 100%);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.72);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 800;
    color: #111827;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.28);
    font-size: 14px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 12px;
    color: #4b5563;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
    color: var(--brand);
    background: var(--brand-soft);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff7ed;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--brand);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow);
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    background: #f9fafb;
    color: #374151;
    font-weight: 650;
}

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

main,
.page-main,
.detail-main {
    padding-top: 68px;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.72s ease, transform 1.1s ease;
}

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

.hero-content {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 90px 0 70px;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.eyebrow.dark {
    background: #fff7ed;
    color: #b45309;
}

.hero h1 {
    width: min(760px, 100%);
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero p {
    width: min(640px, 100%);
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

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

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 18px 32px rgba(217, 119, 6, 0.32);
}

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

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

.ghost-button.dark {
    color: #374151;
    border-color: #e5e7eb;
    background: #ffffff;
}

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

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-row span {
    border-radius: 999px;
    background: #fff7ed;
    color: #b45309;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dots button {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dots button.is-active {
    width: 34px;
    background: #f59e0b;
}

.search-panel,
.content-section,
.page-hero,
.detail-hero,
.detail-layout,
.breadcrumb {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.search-panel {
    margin-top: -74px;
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: center;
    padding: 30px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.search-panel h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.detail-article h2,
.detail-side h2 {
    margin: 0;
    color: #111827;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.search-panel h2 {
    margin-top: 12px;
    font-size: clamp(28px, 4vw, 42px);
}

.search-panel p,
.section-heading p,
.page-hero p,
.category-tile p,
.category-overview-card p,
.movie-card p,
.detail-article p,
.detail-side p,
.lead-text {
    color: var(--muted);
    line-height: 1.75;
}

.search-box {
    display: grid;
    gap: 8px;
    color: #6b7280;
    font-weight: 800;
}

.search-box input {
    width: 100%;
    height: 54px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 0 18px;
    color: #111827;
    background: #f9fafb;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.content-section {
    padding: 70px 0 0;
}

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

.section-heading h2 {
    font-size: clamp(27px, 3vw, 38px);
}

.section-heading p {
    margin: 8px 0 0;
}

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

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

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

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

.movie-card {
    min-width: 0;
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 3 / 4;
    background: #e5e7eb;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.movie-poster img,
.compact-cover img,
.rank-cover img,
.category-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fbbf24;
    background: rgba(17, 24, 39, 0.72);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    transform: translate(-50%, -50%) scale(0.72);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(217, 119, 6, 0.94);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-body {
    padding: 14px 2px 0;
}

.movie-body h3,
.compact-body h3,
.rank-content h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 850;
}

.movie-card h3 a:hover,
.rank-mini-list a:hover strong {
    color: var(--brand);
}

.meta-line {
    margin: 0 0 10px;
    color: #6b7280;
    font-size: 13px;
}

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

.movie-card-compact {
    display: flex;
    gap: 14px;
    align-items: stretch;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.compact-cover {
    width: 88px;
    min-width: 88px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: #e5e7eb;
}

.compact-body p {
    margin: 0;
    font-size: 13px;
}

.accent-section,
.gradient-callout {
    margin-top: 70px;
    padding: 42px;
    border-radius: 34px;
    background: linear-gradient(135deg, #fff7ed, #fdf2f8 48%, #eef2ff);
}

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

.category-tile,
.category-overview-card {
    display: block;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    height: 120px;
    margin-bottom: 16px;
}

.category-thumbs img {
    border-radius: 14px;
    background: #e5e7eb;
}

.category-tile h3,
.category-overview-card h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 900;
    color: #111827;
}

.category-tile p,
.category-overview-card p {
    margin: 0;
    font-size: 14px;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
}

.rank-panel {
    padding: 28px;
    border-radius: 30px;
    color: #ffffff;
    background: linear-gradient(180deg, #111827, #312e81);
    box-shadow: var(--shadow);
}

.compact-heading h2,
.compact-heading p {
    color: #ffffff;
}

.rank-mini-list {
    display: grid;
    gap: 8px;
    counter-reset: mini;
}

.rank-mini-list a {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
}

.rank-mini-list span {
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #111827;
    background: #fbbf24;
    font-weight: 900;
}

.rank-mini-list strong {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-mini-list em {
    color: rgba(255, 255, 255, 0.72);
    font-style: normal;
}

.page-main {
    padding-bottom: 70px;
}

.page-hero {
    margin-top: 38px;
    padding: 64px;
    border-radius: 34px;
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #78350f 58%, #f59e0b);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin-top: 14px;
    color: #ffffff;
    font-size: clamp(36px, 5vw, 60px);
}

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

.page-search {
    margin-bottom: 26px;
}

.overview-stack {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
    display: grid;
    gap: 22px;
}

.overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.rank-list {
    display: grid;
    gap: 16px;
    counter-reset: rank;
}

.rank-item {
    display: grid;
    grid-template-columns: 56px 92px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
    counter-increment: rank;
}

.rank-number::before {
    content: counter(rank);
}

.rank-number {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #fff7ed;
    color: #b45309;
    font-weight: 900;
}

.rank-cover {
    width: 92px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    background: #e5e7eb;
}

.rank-content p {
    margin: 0 0 10px;
}

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

.breadcrumb a {
    color: #b45309;
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 34px;
    align-items: center;
    margin-top: 28px;
}

.player-card {
    border-radius: 30px;
    padding: 10px;
    background: linear-gradient(135deg, #111827, #92400e);
    box-shadow: var(--shadow);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(217, 119, 6, 0.94);
    box-shadow: 0 24px 50px rgba(217, 119, 6, 0.35);
    font-size: 34px;
    transform: scale(1);
    transition: transform 0.2s ease;
}

.player-overlay:hover .player-button {
    transform: scale(1.08);
}

.detail-info h1 {
    margin: 16px 0;
    font-size: clamp(34px, 5vw, 58px);
}

.lead-text {
    margin: 0 0 22px;
    font-size: 18px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    margin-top: 54px;
}

.detail-article,
.detail-side {
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
}

.detail-article {
    padding: 34px;
}

.detail-side {
    padding: 26px;
    height: fit-content;
}

.detail-article h2,
.detail-side h2 {
    margin-bottom: 16px;
    font-size: 26px;
}

.detail-article p {
    margin: 0 0 28px;
    font-size: 16px;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 0;
}

.info-list div {
    padding: 16px;
    border-radius: 18px;
    background: #f9fafb;
}

.info-list dt {
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
}

.info-list dd {
    margin: 6px 0 0;
    color: #111827;
    font-weight: 850;
}

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

.related-section {
    padding-bottom: 70px;
}

.empty-state {
    display: none;
    margin: 24px 0 0;
    padding: 18px;
    border-radius: 16px;
    text-align: center;
    color: #92400e;
    background: #fff7ed;
    font-weight: 800;
}

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

.site-footer {
    margin-top: 70px;
    color: #d1d5db;
    background: #111827;
}

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

.footer-brand {
    color: #ffffff;
}

.footer-inner p {
    margin: 10px 0 0;
    color: #9ca3af;
}

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

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 14px;
}

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

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

    .split-section,
    .detail-layout,
    .detail-hero {
        grid-template-columns: 1fr;
    }
}

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

    .menu-toggle {
        display: inline-flex;
    }

    .hero {
        min-height: 620px;
    }

    .hero-control {
        display: none;
    }

    .search-panel {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .section-heading,
    .overview-head,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .page-hero {
        padding: 42px 24px;
    }

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

    .rank-cover {
        width: 74px;
    }

    .detail-article,
    .detail-side {
        padding: 24px;
    }
}

@media (max-width: 560px) {
    .header-inner {
        height: 62px;
    }

    main,
    .page-main,
    .detail-main {
        padding-top: 62px;
    }

    .brand {
        font-size: 18px;
    }

    .hero {
        min-height: 560px;
    }

    .hero-content {
        padding-top: 70px;
    }

    .hero h1 {
        font-size: 40px;
    }

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

    .movie-grid,
    .full-grid,
    .feature-grid,
    .wide-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-compact {
        align-items: flex-start;
    }

    .compact-cover {
        width: 78px;
        min-width: 78px;
    }

    .accent-section,
    .gradient-callout {
        padding: 24px;
        border-radius: 24px;
    }

    .category-thumbs {
        height: 150px;
    }

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

    .player-button {
        width: 66px;
        height: 66px;
        font-size: 28px;
    }
}
