* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #0f172a;
    background: #f8fafc;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.24);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

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

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #0f172a;
    background: #f59e0b;
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(245, 158, 11, 0.35);
}

.brand-text strong {
    display: block;
    font-size: 20px;
    letter-spacing: -0.02em;
}

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

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

.nav-link {
    padding: 10px 14px;
    color: #cbd5e1;
    border-radius: 999px;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
}

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

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
}

.mobile-nav.open {
    display: grid;
    gap: 8px;
}

.mobile-link {
    padding: 12px 14px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

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

.hero-slider {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.8s ease;
    pointer-events: none;
}

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

.hero-bg,
.detail-backdrop {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: saturate(1.08);
}

.hero-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 30%, rgba(245, 158, 11, 0.34), transparent 28%),
        radial-gradient(circle at 84% 20%, rgba(6, 182, 212, 0.26), transparent 30%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.82) 42%, rgba(15, 23, 42, 0.46) 100%);
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 56px;
    padding: 86px 0 96px;
}

.hero-copy {
    max-width: 720px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 16px;
    padding: 8px 14px;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 24px;
    color: #dbeafe;
    font-size: 20px;
}

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

.hero-tags span,
.detail-tags a,
.tag-row span {
    padding: 7px 12px;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-size: 13px;
}

.tag-row span {
    color: #b45309;
    background: #fffbeb;
    border-color: #fde68a;
}

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

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

.primary-btn {
    color: #0f172a;
    background: #f59e0b;
    box-shadow: 0 16px 34px rgba(245, 158, 11, 0.28);
}

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

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

.hero-poster {
    position: relative;
    display: block;
    max-width: 420px;
    justify-self: end;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 8px 14px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

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

.hero-dot {
    width: 34px;
    height: 6px;
    padding: 0;
    background: rgba(255, 255, 255, 0.34);
    border: 0;
    border-radius: 999px;
}

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

.category-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-top: -38px;
    position: relative;
    z-index: 3;
}

.category-pill {
    padding: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(18px);
    transition: 0.2s ease;
}

.category-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.16);
}

.category-pill strong,
.category-pill span {
    display: block;
}

.category-pill strong {
    margin-bottom: 6px;
    color: #0f172a;
    font-size: 18px;
}

.category-pill span {
    color: #64748b;
    font-size: 13px;
}

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

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

.section-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.section-heading a {
    color: #0891b2;
    font-weight: 800;
}

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

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

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

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    transition: 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 72px rgba(15, 23, 42, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0f172a;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: 0.35s ease;
}

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

.poster-link::after {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    content: "";
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.76), transparent);
}

.year-badge,
.rank-badge,
.play-chip {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.year-badge {
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    color: #0f172a;
    background: #f59e0b;
}

.rank-badge {
    top: 12px;
    left: 12px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #ffffff;
    background: #ef4444;
}

.play-chip {
    left: 12px;
    bottom: 12px;
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(10px);
}

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

.movie-title {
    display: block;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
}

.movie-meta {
    margin: 8px 0;
    color: #64748b;
    font-size: 13px;
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #475569;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.soft-section {
    background: linear-gradient(90deg, #eff6ff 0%, #ecfeff 100%);
}

.two-column-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 36px;
    padding: 70px 0;
}

.ranking-entry {
    padding: 36px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #1e293b 55%, #164e63);
    border-radius: 28px;
    box-shadow: 0 24px 72px rgba(15, 23, 42, 0.22);
}

.ranking-entry h2 {
    margin: 0 0 12px;
    font-size: 42px;
    letter-spacing: -0.04em;
}

.ranking-entry p {
    margin: 0 0 24px;
    color: #dbeafe;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    transition: 0.2s ease;
}

.compact-card:hover {
    transform: translateX(4px);
}

.compact-card img {
    width: 82px;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
}

.compact-card strong,
.compact-card em {
    display: block;
}

.compact-card strong {
    color: #0f172a;
    font-size: 16px;
}

.compact-card em {
    margin-top: 5px;
    color: #64748b;
    font-size: 13px;
    font-style: normal;
}

.page-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at 15% 30%, rgba(245, 158, 11, 0.28), transparent 28%),
        linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.page-hero-inner {
    padding: 78px 0;
}

.page-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(40px, 6vw, 70px);
    letter-spacing: -0.055em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #dbeafe;
    font-size: 19px;
}

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

.category-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 26px;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.09);
}

.category-card-main {
    display: block;
    padding: 28px;
}

.category-card-main h2 {
    margin: 0 0 10px;
    font-size: 30px;
    letter-spacing: -0.035em;
}

.category-card-main p {
    margin: 0;
    color: #475569;
}

.category-samples {
    display: grid;
    gap: 8px;
    padding: 0 28px 28px;
}

.category-samples a {
    color: #0891b2;
    font-weight: 700;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 16px;
    margin-bottom: 28px;
}

.search-box,
.select-box {
    display: grid;
    gap: 8px;
    color: #334155;
    font-weight: 800;
}

.search-box input,
.select-box select {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 15px;
    outline: none;
}

.search-box input:focus,
.select-box select:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.ranking-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-row a {
    display: grid;
    grid-template-columns: 54px 82px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
    transition: 0.2s ease;
}

.rank-row a:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 52px rgba(15, 23, 42, 0.13);
}

.rank-number {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #ffffff;
    background: #ef4444;
    border-radius: 14px;
    font-weight: 900;
}

.rank-row img {
    width: 82px;
    height: 104px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-info strong,
.rank-info em,
.rank-info small {
    display: block;
}

.rank-info strong {
    color: #0f172a;
    font-size: 18px;
}

.rank-info em {
    margin: 5px 0;
    color: #64748b;
    font-style: normal;
}

.rank-info small {
    color: #475569;
}

.rank-action {
    padding: 10px 16px;
    color: #0f172a;
    background: #f59e0b;
    border-radius: 999px;
    font-weight: 900;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

.detail-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 20%, rgba(6, 182, 212, 0.24), transparent 32%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.82));
}

.detail-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
    gap: 36px;
    align-items: center;
    padding: 64px 0;
}

.player-card {
    position: relative;
    overflow: hidden;
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 26px;
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    gap: 12px;
    place-content: center;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.62));
    border: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    margin: 0 auto;
    color: #0f172a;
    background: #f59e0b;
    border-radius: 999px;
    box-shadow: 0 18px 42px rgba(245, 158, 11, 0.38);
}

.play-layer strong {
    font-size: 22px;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: #cbd5e1;
    font-size: 14px;
}

.crumbs a {
    color: #fbbf24;
}

.crumbs em {
    font-style: normal;
}

.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.detail-line {
    margin: 0 0 18px;
    color: #dbeafe;
    font-size: 19px;
}

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

.detail-meta span {
    padding: 8px 12px;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

.detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    padding: 58px 0;
}

.story-panel,
.related-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.story-panel {
    padding: 34px;
}

.story-panel h2,
.related-panel h2 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: 28px;
    letter-spacing: -0.03em;
}

.story-panel p {
    margin: 0 0 28px;
    color: #334155;
    font-size: 17px;
    line-height: 1.85;
}

.related-panel {
    align-self: start;
    padding: 24px;
}

.detail-related .compact-card {
    grid-template-columns: 70px 1fr;
}

.detail-related .compact-card img {
    width: 70px;
    height: 88px;
}

.site-footer {
    padding: 42px 0 28px;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: 24px;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.footer-grid p {
    max-width: 560px;
    margin: 0;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-content: start;
}

.footer-links a {
    color: #fbbf24;
    font-weight: 800;
}

.copyright {
    padding-top: 22px;
    color: #94a3b8;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 14px;
}

[data-card].is-hidden {
    display: none;
}

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

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

    .detail-layout,
    .detail-main,
    .two-column-section {
        grid-template-columns: 1fr;
    }
}

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

    .nav-toggle {
        display: block;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 48px;
    }

    .hero-poster {
        max-width: 260px;
        justify-self: start;
    }

    .category-strip,
    .category-grid,
    .filter-bar,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-row a {
        grid-template-columns: 44px 70px 1fr;
    }

    .rank-action {
        display: none;
    }

    .detail-layout {
        padding: 36px 0;
    }
}

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

    .brand-text strong {
        font-size: 16px;
    }

    .brand-text small {
        display: none;
    }

    .movie-grid,
    .large-grid,
    .library-grid {
        grid-template-columns: 1fr;
    }

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

    .story-panel,
    .related-panel,
    .ranking-entry {
        padding: 22px;
    }
}
