html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(250, 204, 21, 0.14), transparent 32rem),
        radial-gradient(circle at 80% 12%, rgba(245, 158, 11, 0.12), transparent 26rem),
        #020617;
    color: #e5e7eb;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.is-menu-open {
    overflow: hidden;
}

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

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

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #ffffff;
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #020617;
    box-shadow: 0 18px 45px rgba(250, 204, 21, 0.28);
}

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

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

.nav-link:hover,
.nav-link.is-active {
    color: #facc15;
    background: rgba(250, 204, 21, 0.09);
}

.header-search {
    width: min(280px, 32vw);
    display: flex;
    align-items: center;
    border: 1px solid rgba(250, 204, 21, 0.24);
    background: rgba(15, 23, 42, 0.78);
    border-radius: 999px;
    overflow: hidden;
}

.header-search input {
    width: 100%;
    padding: 11px 14px;
    color: #ffffff;
    background: transparent;
    outline: none;
}

.header-search button {
    padding: 11px 16px;
    color: #020617;
    font-weight: 800;
    background: linear-gradient(135deg, #facc15, #f59e0b);
}

.nav-toggle {
    display: none;
    padding: 9px 12px;
    border-radius: 12px;
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.3);
}

.site-main {
    min-height: calc(100vh - 72px);
}

.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.9s ease, transform 1.2s ease;
}

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

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

.hero-slide img.is-hidden {
    opacity: 0;
}

.hero-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    color: rgba(255, 255, 255, 0.14);
    font-size: clamp(42px, 10vw, 132px);
    font-weight: 900;
    line-height: 1.04;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(2, 6, 23, 0.96)),
        radial-gradient(circle at 28% 35%, rgba(250, 204, 21, 0.22), transparent 28rem);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.78) 42%, rgba(2, 6, 23, 0.16) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 700px;
    padding-top: 44px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #facc15;
    font-weight: 800;
}

.eyebrow-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #facc15;
    box-shadow: 0 0 0 8px rgba(250, 204, 21, 0.16);
}

.hero-title {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.hero-desc {
    max-width: 620px;
    margin-bottom: 24px;
    color: #d1d5db;
    font-size: 18px;
    line-height: 1.85;
}

.hero-meta,
.card-meta,
.detail-meta,
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #94a3b8;
}

.hero-meta {
    margin-bottom: 28px;
}

.meta-pill,
.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fde68a;
    background: rgba(250, 204, 21, 0.12);
    border: 1px solid rgba(250, 204, 21, 0.24);
}

.hero-actions,
.section-heading,
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    color: #020617;
    background: linear-gradient(135deg, #facc15, #f59e0b);
    box-shadow: 0 20px 50px rgba(250, 204, 21, 0.28);
}

.btn-secondary {
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.34);
    background: rgba(15, 23, 42, 0.55);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(250, 204, 21, 0.22);
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: #facc15;
}

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

.section-block.is-muted {
    background: rgba(15, 23, 42, 0.32);
}

.section-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.section-subtitle {
    margin-top: 10px;
    color: #94a3b8;
    line-height: 1.75;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(250, 204, 21, 0.12);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.58);
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.28);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(250, 204, 21, 0.42);
    box-shadow: 0 24px 65px rgba(250, 204, 21, 0.12);
}

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(30, 41, 59, 0.96), rgba(2, 6, 23, 0.98)),
        radial-gradient(circle at 50% 25%, rgba(250, 204, 21, 0.2), transparent 16rem);
}

.poster-frame.wide {
    aspect-ratio: 16 / 9;
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.2s ease;
}

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

.poster-frame img.is-hidden {
    opacity: 0;
}

.poster-title {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.18);
    font-size: 26px;
    font-weight: 950;
    line-height: 1.12;
    text-align: center;
}

.poster-shade {
    position: absolute;
    inset: auto 0 0 0;
    height: 55%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), transparent);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: #020617;
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(135deg, #facc15, #f59e0b);
}

.card-body {
    padding: 18px;
}

.card-title {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.32;
    font-weight: 900;
}

.card-title a:hover {
    color: #facc15;
}

.card-desc {
    min-height: 3.4em;
    color: #a1a1aa;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    margin-top: 14px;
    font-size: 13px;
}

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

.list-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    padding: 16px;
    border: 1px solid rgba(250, 204, 21, 0.12);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.52);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.list-card:hover {
    transform: translateY(-3px);
    border-color: rgba(250, 204, 21, 0.34);
}

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

.category-card {
    min-height: 165px;
    padding: 24px;
    border-radius: 22px;
    border: 1px solid rgba(250, 204, 21, 0.13);
    background:
        linear-gradient(145deg, rgba(30, 41, 59, 0.84), rgba(2, 6, 23, 0.92)),
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.14), transparent 12rem);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(250, 204, 21, 0.42);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 950;
}

.category-card p,
.category-card li {
    color: #94a3b8;
    line-height: 1.75;
}

.category-card ul {
    display: grid;
    gap: 4px;
    margin-top: 14px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 96px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(250, 204, 21, 0.1);
    background: rgba(15, 23, 42, 0.58);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    border-color: rgba(250, 204, 21, 0.36);
}

.rank-num {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #020617;
    font-weight: 950;
    background: linear-gradient(135deg, #facc15, #f59e0b);
}

.page-hero {
    padding: 56px 0 32px;
}

.page-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 820px;
    margin-top: 16px;
    color: #a1a1aa;
    font-size: 17px;
    line-height: 1.9;
}

.breadcrumb {
    padding-top: 26px;
    font-size: 14px;
}

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

.filter-bar {
    margin-top: 26px;
    align-items: stretch;
}

.filter-input,
.filter-select,
.search-input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    color: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(250, 204, 21, 0.24);
    background: rgba(15, 23, 42, 0.7);
    outline: none;
}

.filter-input:focus,
.filter-select:focus,
.search-input:focus {
    border-color: rgba(250, 204, 21, 0.65);
}

.filter-select {
    max-width: 190px;
}

.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    padding: 28px 0 66px;
}

.player-card,
.detail-card,
.aside-card {
    border: 1px solid rgba(250, 204, 21, 0.12);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.62);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.player-card {
    overflow: hidden;
    margin-bottom: 22px;
}

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

.player-shell video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-mask {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    color: #ffffff;
    background:
        linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.38)),
        radial-gradient(circle at center, rgba(250, 204, 21, 0.2), transparent 22rem);
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #020617;
    font-size: 30px;
    background: linear-gradient(135deg, #facc15, #f59e0b);
    box-shadow: 0 24px 60px rgba(250, 204, 21, 0.34);
}

.detail-card {
    padding: 28px;
}

.detail-card h1 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    font-weight: 950;
}

.detail-card h2,
.aside-card h2 {
    margin: 28px 0 14px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.detail-card p {
    color: #cbd5e1;
    line-height: 1.95;
    font-size: 16px;
}

.quote-box {
    margin: 22px 0;
    padding: 18px 20px;
    color: #fde68a;
    line-height: 1.85;
    border-left: 4px solid #facc15;
    border-radius: 14px;
    background: rgba(250, 204, 21, 0.1);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 20px 0 0;
}

.aside-card {
    padding: 20px;
    margin-bottom: 22px;
}

.aside-poster {
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 18px;
}

.aside-list {
    display: grid;
    gap: 12px;
}

.aside-list a {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.34);
}

.aside-list a:hover h3 {
    color: #facc15;
}

.aside-list h3 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.45;
}

.aside-list p {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 12px;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    max-width: 820px;
    margin-top: 28px;
}

.search-panel .btn-primary {
    min-height: 52px;
    border-radius: 16px;
}

.search-status {
    margin: 0 0 22px;
    color: #94a3b8;
}

.empty-state {
    padding: 46px;
    border: 1px solid rgba(250, 204, 21, 0.12);
    border-radius: 24px;
    color: #94a3b8;
    text-align: center;
    background: rgba(15, 23, 42, 0.5);
}

.site-footer {
    padding: 42px 0;
    color: #94a3b8;
    border-top: 1px solid rgba(250, 204, 21, 0.12);
    background: rgba(2, 6, 23, 0.68);
}

.footer-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 950;
}

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

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

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

    .watch-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .site-container {
        width: min(100% - 24px, 1180px);
    }

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

    .nav-menu {
        position: fixed;
        inset: 72px 12px auto 12px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border: 1px solid rgba(250, 204, 21, 0.18);
        border-radius: 22px;
        background: rgba(2, 6, 23, 0.97);
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
    }

    body.is-menu-open .nav-menu {
        display: flex;
    }

    .header-search {
        display: none;
    }

    .hero-slider {
        height: 560px;
    }

    .hero-copy {
        padding-top: 76px;
    }

    .hero-actions,
    .section-heading,
    .filter-bar,
    .footer-shell {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .rank-item {
        grid-template-columns: 46px 72px 1fr;
    }

    .rank-item .btn-secondary {
        grid-column: 2 / -1;
        justify-self: start;
    }

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

@media (max-width: 560px) {
    .brand {
        font-size: 19px;
    }

    .hero-slider {
        height: 520px;
    }

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

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

    .list-card {
        grid-template-columns: 112px 1fr;
    }

    .detail-card,
    .aside-card {
        padding: 18px;
    }
}
