html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 32rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 28rem),
        #020617;
    color: #f8fafc;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.86);
    backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner,
.content-section,
.page-main,
.detail-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

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

.brand-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 14px 34px rgba(245, 158, 11, 0.26);
}

.brand-text {
    font-size: 1.1rem;
    white-space: nowrap;
}

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

.nav-link,
.mobile-nav-link {
    color: #cbd5e1;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
    padding: 9px 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: #ffffff;
    background: rgba(245, 158, 11, 0.14);
}

.header-search,
.mobile-search,
.filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-bar input {
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.88);
    color: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 250px;
    padding: 11px 14px;
}

.mobile-search input,
.filter-bar input {
    flex: 1;
    padding: 13px 15px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus {
    border-color: rgba(245, 158, 11, 0.7);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.header-search button,
.mobile-search button,
.filter-bar button,
.primary-button,
.ghost-button,
.text-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.header-search button,
.mobile-search button,
.filter-bar button,
.primary-button {
    border: 1px solid rgba(245, 158, 11, 0.82);
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #111827;
}

.header-search button,
.mobile-search button,
.filter-bar button {
    padding: 10px 16px;
}

.primary-button,
.ghost-button {
    padding: 13px 22px;
}

.ghost-button,
.section-more,
.text-button {
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.72);
    color: #f8fafc;
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.section-more:hover,
.header-search button:hover,
.mobile-search button:hover,
.filter-bar button:hover {
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.88);
    color: #ffffff;
    font-size: 1.25rem;
}

.mobile-panel {
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    padding: 16px;
    background: rgba(2, 6, 23, 0.98);
}

.mobile-nav {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.mobile-nav-link {
    padding: 12px 14px;
}

.hero-section {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 680px;
    margin: 32px auto 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 36px;
    background: #020617;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.58fr);
    align-items: center;
    gap: 34px;
    padding: 76px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-backdrop::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.68) 46%, rgba(2, 6, 23, 0.32)),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.2) 46%, rgba(2, 6, 23, 0.22) 100%);
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.06);
}

.hero-copy,
.hero-poster {
    position: relative;
    z-index: 1;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: clamp(2.8rem, 8vw, 6.8rem);
    line-height: 0.96;
    font-weight: 900;
    letter-spacing: -0.08em;
}

.hero-kicker,
.section-kicker,
.card-meta,
.rank-meta {
    color: #f59e0b;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-line {
    max-width: 720px;
    margin: 0 0 14px;
    color: #f8fafc;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 700;
}

.hero-summary {
    max-width: 690px;
    color: #cbd5e1;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-poster {
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
}

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

.hero-dots {
    position: absolute;
    left: 76px;
    bottom: 42px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 38px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
}

.hero-dot.is-active {
    background: #f59e0b;
}

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

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

.section-heading h2,
.page-hero h1,
.rank-panel h2,
.story-card h2 {
    margin: 0;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-heading h2,
.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.section-heading p,
.page-hero p,
.category-overview-card p,
.story-card p,
.footer-inner p {
    color: #cbd5e1;
    line-height: 1.8;
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.76);
    padding: 22px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-overview-card:hover,
.rank-item:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.48);
}

.category-tile img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
}

.category-tile::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.24));
}

.category-tile span,
.category-tile small,
.category-tile em {
    position: relative;
    z-index: 2;
    display: block;
}

.category-tile span {
    margin-top: 94px;
    font-size: 1.28rem;
    font-weight: 900;
}

.category-tile small {
    margin-top: 9px;
    color: #dbeafe;
    line-height: 1.6;
}

.category-tile em {
    margin-top: 12px;
    color: #fbbf24;
    font-style: normal;
    font-weight: 800;
}

.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,
.category-overview-card,
.rank-item,
.story-card,
.rank-panel,
.detail-panel,
.player-shell {
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.18);
}

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(15, 23, 42, 0.9));
}

.poster-link img,
.rank-poster img,
.category-cover img,
.detail-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img,
.category-overview-card:hover .category-cover img,
.rank-item:hover .rank-poster img {
    transform: scale(1.06);
}

.card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.92);
    color: #111827;
    font-size: 0.75rem;
    font-weight: 900;
}

.card-body {
    padding: 18px;
}

.card-body h3,
.rank-content h3,
.category-overview-card h2 {
    margin: 6px 0 8px;
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 850;
    line-height: 1.35;
}

.card-desc,
.rank-content p {
    color: #cbd5e1;
    line-height: 1.7;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid rgba(251, 191, 36, 0.18);
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.09);
    color: #fef3c7;
    font-size: 0.75rem;
    font-weight: 700;
}

.spotlight-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    align-items: start;
}

.rank-panel {
    position: sticky;
    top: 94px;
    overflow: hidden;
    border-radius: 28px;
    padding: 24px;
}

.rank-panel .rank-item {
    grid-template-columns: 38px 54px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background: transparent;
    box-shadow: none;
}

.rank-panel .rank-item:last-child {
    border-bottom: 0;
}

.rank-panel .text-button,
.rank-panel .rank-content p,
.rank-panel .tag-row {
    display: none;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 62px 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    border-radius: 22px;
    padding: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-number {
    color: #f59e0b;
    font-size: 1.5rem;
    font-weight: 950;
}

.rank-poster {
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.8);
}

.page-main {
    padding: 42px 0 20px;
}

.page-hero {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.16), transparent 44%),
        rgba(15, 23, 42, 0.78);
    padding: clamp(32px, 6vw, 68px);
}

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

.filter-bar {
    max-width: 760px;
    margin-top: 28px;
}

.category-overview-grid {
    display: grid;
    gap: 20px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    border-radius: 26px;
    padding: 18px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-cover {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.8);
}

.mini-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.mini-list a {
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.84);
    color: #dbeafe;
    padding: 7px 11px;
    font-size: 0.85rem;
}

.detail-main {
    padding: 28px 0 20px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 22px;
    color: #94a3b8;
    font-size: 0.92rem;
}

.breadcrumb a:hover {
    color: #f59e0b;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(320px, 0.62fr);
    gap: 24px;
    align-items: stretch;
}

.player-shell {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    aspect-ratio: 16 / 9;
    border-radius: 30px;
    background: #000000;
}

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

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.18), rgba(2, 6, 23, 0.74));
    color: #ffffff;
    cursor: pointer;
}

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

.play-icon {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #111827;
    font-size: 2rem;
    box-shadow: 0 18px 42px rgba(245, 158, 11, 0.32);
}

.detail-panel {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 18px;
    border-radius: 30px;
    padding: 18px;
}

.detail-poster {
    aspect-ratio: 2 / 3;
    border-radius: 22px;
    background: rgba(30, 41, 59, 0.8);
}

.detail-copy h1 {
    margin: 4px 0 12px;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 950;
    letter-spacing: -0.05em;
}

.detail-line {
    color: #e2e8f0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.75;
}

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

.meta-list div {
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.55);
    padding: 12px;
}

.meta-list dt {
    color: #94a3b8;
    font-size: 0.76rem;
}

.meta-list dd {
    margin: 4px 0 0;
    color: #ffffff;
    font-weight: 800;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
    gap: 24px;
    margin-top: 26px;
}

.story-card {
    border-radius: 26px;
    padding: 28px;
}

.story-card h2 {
    margin-bottom: 14px;
    font-size: 1.5rem;
}

.accent-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(15, 23, 42, 0.72));
}

.empty-state {
    margin-top: 28px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    padding: 28px;
    color: #cbd5e1;
    text-align: center;
}

.site-footer {
    margin-top: 48px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.82);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding: 36px 0;
}

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

.footer-links a {
    color: #cbd5e1;
}

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

[hidden] {
    display: none !important;
}

@media (max-width: 1060px) {
    .header-search {
        display: none;
    }

    .hero-slide,
    .detail-hero,
    .detail-content,
    .spotlight-layout {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: 760px;
    }

    .hero-slide {
        padding: 46px;
    }

    .hero-poster {
        max-width: 260px;
        transform: none;
    }

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

    .rank-panel {
        position: static;
    }
}

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .hero-section {
        min-height: 820px;
        border-radius: 26px;
    }

    .hero-slide {
        padding: 34px;
    }

    .hero-copy h1 {
        letter-spacing: -0.05em;
    }

    .hero-dots {
        left: 34px;
        bottom: 26px;
    }

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

    .category-overview-card,
    .detail-panel,
    .rank-item {
        grid-template-columns: 1fr;
    }

    .category-cover {
        aspect-ratio: 16 / 8;
    }

    .rank-item .text-button {
        width: max-content;
    }

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

@media (max-width: 560px) {
    .header-inner,
    .footer-inner,
    .content-section,
    .page-main,
    .detail-main,
    .hero-section {
        width: min(100% - 22px, 1180px);
    }

    .hero-section {
        min-height: 760px;
        margin-top: 16px;
    }

    .hero-slide {
        padding: 24px;
    }

    .hero-summary {
        display: none;
    }

    .hero-actions,
    .filter-bar,
    .mobile-search {
        align-items: stretch;
        flex-direction: column;
    }

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

    .detail-panel {
        padding: 14px;
    }

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

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

    .player-shell {
        min-height: 220px;
        border-radius: 20px;
    }
}
