body {
    min-height: 100vh;
    background: #0f172a;
    color: #e2e8f0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.94);
    border-bottom: 1px solid rgba(30, 41, 59, 0.95);
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(12px);
}

.header-row,
.brand-link,
.desktop-nav,
.mobile-nav,
.hero-actions,
.detail-meta,
.tag-row,
.section-head,
.search-fields {
    display: flex;
}

.header-row {
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand-link {
    align-items: center;
    gap: 0.75rem;
    min-width: max-content;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    color: #ffffff;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    box-shadow: 0 14px 32px rgba(14, 165, 233, 0.25);
}

.brand-text strong,
.footer-brand {
    display: block;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-text em {
    display: block;
    color: #94a3b8;
    font-size: 0.75rem;
    font-style: normal;
}

.desktop-nav {
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.nav-link,
.mobile-nav-link,
.footer-grid a,
.breadcrumb a,
.category-samples a {
    color: #cbd5e1;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.mobile-nav-link:hover,
.footer-grid a:hover,
.breadcrumb a:hover,
.category-samples a:hover {
    color: #38bdf8;
}

.menu-button {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 0.75rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.32rem;
    background: rgba(15, 23, 42, 0.6);
}

.menu-button span {
    width: 1.2rem;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(51, 65, 85, 0.8);
}

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

.mobile-nav-link {
    padding: 0.75rem 0;
}

.home-hero {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: #020617;
}

.hero-stage,
.hero-slide,
.hero-shade,
.hero-image {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 800ms ease;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade-bottom {
    background: linear-gradient(to top, #0f172a 0%, rgba(15, 23, 42, 0.72) 46%, rgba(15, 23, 42, 0) 100%);
}

.hero-shade-side {
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.82));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 44rem;
    padding-top: 4rem;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.75rem;
    margin-bottom: 1.2rem;
    color: #fde68a;
    border: 1px solid rgba(250, 204, 21, 0.25);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(10px);
    font-weight: 700;
}

.hero-copy h1 {
    color: #ffffff;
    font-size: clamp(2.7rem, 7vw, 5.6rem);
    line-height: 0.96;
    font-weight: 900;
    letter-spacing: -0.05em;
    margin-bottom: 1.35rem;
}

.hero-copy p,
.page-hero-card p,
.section-head p,
.detail-one-line,
.detail-article p,
.footer-grid p {
    color: #cbd5e1;
    line-height: 1.8;
}

.hero-copy p {
    max-width: 42rem;
    font-size: 1.1rem;
    margin-bottom: 1.35rem;
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.6rem;
}

.hero-meta span,
.detail-meta span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(30, 41, 59, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.hero-meta span,
.detail-meta span {
    padding: 0.42rem 0.75rem;
}

.hero-actions {
    gap: 1rem;
    flex-wrap: wrap;
}

.primary-button,
.glass-button,
.quick-search-box button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.primary-button,
.quick-search-box button {
    color: #ffffff;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    box-shadow: 0 18px 38px rgba(14, 165, 233, 0.22);
}

.primary-button,
.glass-button {
    min-height: 3.15rem;
    padding: 0 1.55rem;
}

.primary-button:hover,
.quick-search-box button:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.glass-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 3rem;
    height: 3rem;
    transform: translateY(-50%);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 2rem;
    line-height: 1;
}

.hero-prev {
    left: 1.5rem;
}

.hero-next {
    right: 1.5rem;
}

.hero-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 2rem;
    display: flex;
    gap: 0.5rem;
    transform: translateX(-50%);
}

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

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

.quick-search {
    margin-top: -3.5rem;
    position: relative;
    z-index: 5;
}

.quick-search-box,
.page-hero-card,
.player-card,
.detail-article,
.detail-aside,
.ranking-panel,
.search-panel,
.category-overview-card {
    border: 1px solid rgba(51, 65, 85, 0.78);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.72));
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(14px);
}

.quick-search-box {
    padding: 1.25rem;
    border-radius: 1.25rem;
}

.quick-search-box label {
    display: block;
    margin-bottom: 0.7rem;
    color: #ffffff;
    font-weight: 700;
}

.quick-search-box div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.8rem;
}

.quick-search-box input,
.search-fields input,
.search-fields select {
    width: 100%;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 0.85rem;
    outline: none;
}

.quick-search-box input {
    padding: 0.95rem 1rem;
}

.quick-search-box button {
    padding: 0 1.5rem;
}

.content-section,
.split-section,
.page-shell,
.detail-page {
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.content-section-flat {
    padding-top: 2rem;
}

.section-head {
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-head-compact {
    align-items: start;
}

.section-head h2,
.page-hero-card h1,
.detail-info h1,
.detail-article h2,
.detail-aside h2 {
    color: #ffffff;
    font-weight: 850;
    letter-spacing: -0.02em;
}

.section-head h2 {
    font-size: clamp(1.6rem, 4vw, 2.35rem);
}

.section-more {
    padding: 0.65rem 1rem;
    color: #0f172a;
    background: #e0f2fe;
}

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

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

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

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.72);
    border-radius: 1.1rem;
    background: rgba(30, 41, 59, 0.52);
    transition: transform 0.24s ease, border 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.movie-card-link:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(30, 41, 59, 0.86);
    box-shadow: 0 22px 42px rgba(2, 132, 199, 0.12);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.34), transparent 34%), linear-gradient(135deg, #1e293b, #020617);
}

.poster-frame img,
.detail-poster img,
.detail-side-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-frame img {
    transition: transform 0.35s ease, opacity 0.2s ease;
}

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

.image-missing {
    opacity: 0;
}

.poster-frame::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.85), transparent);
}

.poster-play,
.poster-year,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.poster-play {
    left: 50%;
    top: 50%;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.poster-year {
    right: 0.65rem;
    bottom: 0.65rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.78rem;
    background: rgba(2, 6, 23, 0.65);
}

.rank-badge {
    left: 0.65rem;
    top: 0.65rem;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.7rem;
    color: #082f49;
    font-weight: 900;
    background: linear-gradient(135deg, #facc15, #fb923c);
}

.movie-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.9rem;
}

.movie-card-body strong {
    color: #ffffff;
    font-size: 1.02rem;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-card-link:hover strong {
    color: #38bdf8;
}

.movie-card-body em,
.ranking-row em,
.ranking-wide-row em,
.detail-side-link em {
    color: #94a3b8;
    font-style: normal;
    font-size: 0.82rem;
}

.movie-line {
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.55;
}

.tag-row {
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.tag-row span {
    padding: 0.2rem 0.52rem;
    font-size: 0.75rem;
}

.category-grid,
.category-overview-grid,
.side-grid,
.footer-grid,
.split-section,
.detail-main-grid,
.search-fields {
    display: grid;
    gap: 1rem;
}

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

.category-card,
.category-overview-main {
    display: block;
    min-height: 9rem;
    padding: 1.2rem;
    border-radius: 1.2rem;
    color: #ffffff;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.35), transparent 32%), linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(2, 6, 23, 0.78));
    border: 1px solid rgba(56, 189, 248, 0.16);
    transition: transform 0.2s ease, border 0.2s ease;
}

.category-card:hover,
.category-overview-main:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.5);
}

.category-card strong,
.category-overview-main strong {
    display: block;
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 0.55rem;
}

.category-card span,
.category-overview-main span {
    color: #cbd5e1;
    line-height: 1.7;
}

.split-section {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.4fr);
}

.ranking-panel {
    padding: 1.25rem;
    border-radius: 1.3rem;
}

.ranking-list {
    display: grid;
    gap: 0.55rem;
}

.ranking-row,
.ranking-wide-row {
    display: grid;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.9rem;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(51, 65, 85, 0.55);
}

.ranking-row {
    grid-template-columns: 2rem 1fr;
    padding: 0.75rem;
}

.ranking-row span,
.ranking-wide-row span {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
    color: #0f172a;
    font-weight: 900;
    background: #e0f2fe;
}

.ranking-row em {
    grid-column: 2;
}

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

.page-shell {
    min-height: 70vh;
}

.page-hero-card {
    padding: clamp(1.5rem, 5vw, 3rem);
    border-radius: 1.5rem;
}

.page-hero-card span {
    display: inline-flex;
    margin-bottom: 0.75rem;
    color: #38bdf8;
    font-weight: 800;
}

.page-hero-card h1 {
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    margin-bottom: 1rem;
}

.category-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 2rem;
}

.category-overview-card {
    padding: 0.8rem;
    border-radius: 1.35rem;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.8rem 0.3rem 0.2rem;
}

.category-samples a {
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
    font-size: 0.82rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    margin-bottom: 1.25rem;
    color: #94a3b8;
}

.breadcrumb strong {
    color: #ffffff;
}

.ranking-wide {
    display: grid;
    gap: 0.65rem;
    margin-top: 2rem;
}

.ranking-wide-row {
    grid-template-columns: auto minmax(0, 1fr) minmax(12rem, auto);
    padding: 0.85rem;
}

.search-panel {
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: 1.25rem;
}

.search-fields {
    grid-template-columns: minmax(0, 1.4fr) minmax(12rem, 0.7fr) minmax(10rem, 0.6fr);
}

.search-fields label span {
    display: block;
    margin-bottom: 0.45rem;
    color: #cbd5e1;
    font-weight: 700;
}

.search-fields input,
.search-fields select {
    padding: 0.85rem 1rem;
}

.empty-state {
    padding: 2rem;
    color: #cbd5e1;
    text-align: center;
}

.detail-page {
    min-height: 80vh;
}

.detail-hero-card {
    display: grid;
    grid-template-columns: minmax(13rem, 0.42fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    padding: clamp(1.2rem, 4vw, 2.2rem);
    border: 1px solid rgba(51, 65, 85, 0.78);
    border-radius: 1.6rem;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 34%), linear-gradient(135deg, rgba(30, 41, 59, 0.88), rgba(2, 6, 23, 0.78));
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #1e293b, #020617);
    box-shadow: 0 24px 54px rgba(2, 6, 23, 0.46);
}

.detail-info h1 {
    font-size: clamp(2.15rem, 6vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}

.detail-one-line {
    max-width: 60rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.detail-tags {
    margin-bottom: 1.6rem;
}

.player-card {
    padding: clamp(1rem, 4vw, 1.5rem);
    margin-top: 2rem;
    border-radius: 1.4rem;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 1.2rem;
    background: #020617;
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #020617;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.22), rgba(2, 6, 23, 0.62));
    transition: opacity 0.2s ease;
}

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

.player-start-icon {
    display: grid;
    place-items: center;
    width: 5rem;
    height: 5rem;
    border-radius: 999px;
    color: #0f172a;
    background: #ffffff;
    font-size: 2rem;
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.3);
}

.detail-main-grid {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.32fr);
    margin-top: 2rem;
}

.detail-article,
.detail-aside {
    padding: clamp(1.2rem, 3vw, 1.6rem);
    border-radius: 1.3rem;
}

.detail-article h2,
.detail-aside h2 {
    margin-bottom: 1rem;
    font-size: 1.45rem;
}

.detail-article p + h2 {
    margin-top: 2rem;
}

.detail-side-link {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem;
    border-radius: 0.95rem;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.5);
    margin-bottom: 0.7rem;
}

.detail-side-link img {
    aspect-ratio: 16 / 10;
    border-radius: 0.7rem;
    background: #1e293b;
}

.detail-side-link strong,
.detail-side-link em {
    display: block;
}

.footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
}

.site-footer {
    margin-top: 4rem;
    background: #020617;
    border-top: 1px solid rgba(30, 41, 59, 0.9);
}

.footer-brand {
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
}

.footer-grid h2 {
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.footer-grid ul {
    display: grid;
    gap: 0.45rem;
}

.footer-copy {
    margin-top: 2rem;
    padding-top: 1.5rem;
    color: #64748b;
    border-top: 1px solid rgba(30, 41, 59, 0.75);
}

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

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

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

@media (min-width: 1280px) {
    .movie-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

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

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

    .menu-button {
        display: flex;
    }

    .split-section,
    .detail-main-grid,
    .footer-grid,
    .search-fields {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .home-hero {
        min-height: 620px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-content {
        align-items: flex-end;
        padding-bottom: 5rem;
    }

    .quick-search-box div,
    .detail-hero-card,
    .ranking-wide-row {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 16rem;
    }

    .category-grid,
    .side-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }
}
