
:root {
    --site-bg: #06101d;
    --site-bg-soft: #0a1929;
    --site-panel: #102a43;
    --site-panel-2: #243b53;
    --site-border: #334e68;
    --site-text: #f0f4f8;
    --site-muted: #bcccdc;
    --site-dim: #829ab1;
    --site-accent: #f59e0b;
    --site-accent-2: #d97706;
    --site-red: #ef4444;
    --container: 1280px;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.14), transparent 32rem),
        linear-gradient(180deg, #06101d 0%, #081827 46%, #06101d 100%);
    color: var(--site-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
}

body.no-scroll {
    overflow: hidden;
}

img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.container-custom {
    width: min(100% - 2rem, var(--container));
    margin: 0 auto;
}

.page-main {
    min-height: 100vh;
    padding-top: 4rem;
}

.compact-main {
    padding-top: 5rem;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(51, 78, 104, 0.65);
    background: rgba(6, 16, 29, 0.82);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.5rem;
    gap: 1rem;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--site-text);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--site-accent), #fb923c);
    color: #081827;
    font-size: 1.4rem;
    font-weight: 900;
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong,
.footer-brand {
    background: linear-gradient(90deg, #fbbf24, #d97706);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.35rem;
    font-weight: 800;
}

.brand-text small {
    color: var(--site-dim);
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    position: relative;
    color: var(--site-muted);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.55rem;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--site-accent);
    transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--site-accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.header-search-link {
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 0.8rem;
    padding: 0.65rem 1rem;
    color: var(--site-accent);
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.header-search-link:hover {
    border-color: var(--site-accent);
    background: rgba(245, 158, 11, 0.1);
}

.mobile-menu-button {
    display: none;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    background: rgba(16, 42, 67, 0.72);
}

.mobile-menu-button span {
    display: block;
    width: 1.1rem;
    height: 2px;
    margin: 0.28rem auto;
    background: var(--site-text);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 1rem 1rem;
    background: rgba(6, 16, 29, 0.96);
}

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

.mobile-nav a {
    border-radius: 0.75rem;
    padding: 0.9rem 1rem;
    color: var(--site-muted);
    text-decoration: none;
    background: rgba(16, 42, 67, 0.65);
}

.section-spacing {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-deep {
    background: rgba(5, 14, 25, 0.52);
    border-top: 1px solid rgba(51, 78, 104, 0.38);
    border-bottom: 1px solid rgba(51, 78, 104, 0.38);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.section-heading h2,
.detail-content h2 {
    color: var(--site-text);
    font-size: clamp(1.5rem, 2.4vw, 2.25rem);
    font-weight: 850;
    letter-spacing: -0.03em;
}

.section-heading p {
    max-width: 44rem;
    color: var(--site-dim);
    margin-top: 0.45rem;
}

.section-more,
.hero-rank-link {
    color: var(--site-accent);
    font-weight: 700;
    text-decoration: none;
}

.hero-slider {
    position: relative;
    height: min(82vh, 820px);
    min-height: 560px;
    overflow: hidden;
    background: #06101d;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

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

.hero-slide img,
.detail-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 16, 29, 0.94) 0%, rgba(6, 16, 29, 0.62) 42%, rgba(6, 16, 29, 0.12) 100%),
        linear-gradient(0deg, #06101d 0%, transparent 36%);
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: clamp(6rem, 12vh, 9rem);
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    border: 1px solid rgba(245, 158, 11, 0.42);
    border-radius: 999px;
    padding: 0.42rem 0.8rem;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.1);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    max-width: 780px;
    color: var(--site-text);
    font-size: clamp(2.4rem, 7vw, 5.4rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.065em;
    margin: 1rem 0;
}

.hero-content p,
.page-hero p,
.detail-one-line {
    max-width: 650px;
    color: var(--site-muted);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    border-radius: 0.85rem;
    padding: 0.75rem 1.25rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
    color: #081827;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    box-shadow: 0 10px 34px rgba(245, 158, 11, 0.28);
}

.btn-ghost {
    color: var(--site-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(16, 42, 67, 0.7);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 6;
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(6, 16, 29, 0.58);
    color: white;
    font-size: 2rem;
    transform: translateY(-50%);
    transition: background 0.25s ease, border-color 0.25s ease;
}

.hero-arrow:hover {
    border-color: var(--site-accent);
    background: rgba(245, 158, 11, 0.22);
}

.hero-prev {
    left: 1.5rem;
}

.hero-next {
    right: 1.5rem;
}

.hero-dots {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    z-index: 7;
    display: flex;
    gap: 0.5rem;
}

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

.hero-dot.active {
    width: 2rem;
    background: var(--site-accent);
}

.hero-category-strip {
    position: absolute;
    left: 50%;
    bottom: 1.6rem;
    z-index: 5;
    display: flex;
    gap: 0.7rem;
    overflow-x: auto;
    transform: translateX(-50%);
    scrollbar-width: none;
}

.hero-category-strip::-webkit-scrollbar {
    display: none;
}

.hero-category-strip a {
    flex: 0 0 auto;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    color: var(--site-muted);
    text-decoration: none;
    background: rgba(16, 42, 67, 0.68);
}

.hero-category-strip a:hover {
    color: var(--site-accent);
}

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

.movie-card,
.category-card,
.rank-row,
.filter-panel,
.player-shell,
.detail-content > div {
    border: 1px solid rgba(51, 78, 104, 0.72);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(16, 42, 67, 0.88), rgba(10, 25, 41, 0.94));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.movie-card {
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
    transform: translateY(-5px);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0a1929;
}

.poster-link img {
    width: 100%;
    height: 100%;
    transition: transform 0.45s ease, filter 0.45s ease;
}

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

.poster-badge,
.poster-play {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.poster-badge {
    top: 0.7rem;
    left: 0.7rem;
    padding: 0.25rem 0.55rem;
    color: #081827;
    background: var(--site-accent);
}

.poster-play {
    left: 50%;
    top: 50%;
    padding: 0.48rem 0.86rem;
    color: white;
    background: rgba(6, 16, 29, 0.74);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card-body {
    padding: 0.95rem;
}

.movie-title {
    display: block;
    overflow: hidden;
    color: var(--site-text);
    font-weight: 850;
    line-height: 1.35;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-title:hover {
    color: var(--site-accent);
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    color: var(--site-dim);
    font-size: 0.82rem;
    margin: 0.45rem 0;
}

.movie-card-body p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.2rem;
    color: var(--site-muted);
    font-size: 0.88rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row,
.detail-tags,
.filter-tips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tag-row {
    margin-top: 0.8rem;
}

.tag-row span,
.detail-tags span,
.filter-tips span {
    border-radius: 999px;
    padding: 0.24rem 0.55rem;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.1);
    font-size: 0.74rem;
}

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

.category-card {
    overflow: hidden;
    padding-bottom: 1rem;
}

.category-card a {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    color: white;
    text-decoration: none;
}

.category-card img {
    width: 100%;
    height: 100%;
    filter: brightness(0.72);
    transition: transform 0.35s ease;
}

.category-card:hover img {
    transform: scale(1.06);
}

.category-card span {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 900;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}

.category-card p {
    color: var(--site-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    padding: 1rem 1rem 0;
}

.rank-list {
    display: grid;
    gap: 0.9rem;
}

.rank-row {
    display: grid;
    grid-template-columns: 3rem 5.2rem 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
}

.rank-index {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: 999px;
    color: #081827;
    font-weight: 900;
    text-decoration: none;
    background: linear-gradient(135deg, #fbbf24, #d97706);
}

.rank-thumb {
    display: block;
    overflow: hidden;
    border-radius: 0.75rem;
    aspect-ratio: 2 / 3;
    background: #0a1929;
}

.rank-thumb img {
    width: 100%;
    height: 100%;
}

.rank-info a {
    color: var(--site-text);
    font-size: 1.05rem;
    font-weight: 850;
    text-decoration: none;
}

.rank-info a:hover {
    color: var(--site-accent);
}

.rank-info p {
    color: var(--site-muted);
    line-height: 1.65;
    margin-top: 0.3rem;
}

.rank-score {
    color: var(--site-accent);
    font-size: 1.25rem;
    font-weight: 900;
}

.filter-panel {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
}

.filter-panel input {
    width: 100%;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 0.9rem;
    outline: none;
    padding: 0.95rem 1rem;
    color: var(--site-text);
    background: rgba(6, 16, 29, 0.84);
}

.filter-panel input:focus {
    border-color: var(--site-accent);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.page-hero {
    position: relative;
    padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 0%, rgba(245, 158, 11, 0.25), transparent 26rem),
        linear-gradient(180deg, rgba(16, 42, 67, 0.55), rgba(6, 16, 29, 0.95));
}

.page-hero .container-custom {
    position: relative;
    z-index: 2;
}

.small-hero h1 {
    font-size: clamp(2.1rem, 5vw, 4.2rem);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
}

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    filter: blur(1px);
}

.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 16, 29, 0.6), #06101d 96%);
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: end;
}

.breadcrumb,
.breadcrumb-sep {
    grid-column: 1 / -1;
    color: var(--site-dim);
    text-decoration: none;
}

.breadcrumb:hover {
    color: var(--site-accent);
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 1.25rem;
    aspect-ratio: 2 / 3;
    background: #0a1929;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
    width: 100%;
    height: 100%;
}

.detail-info h1 {
    margin-top: 1rem;
}

.detail-tags {
    margin: 1.2rem 0;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 1.4rem 0;
}

.detail-meta-grid div {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.9rem;
    padding: 0.8rem;
    background: rgba(16, 42, 67, 0.72);
}

.detail-meta-grid dt {
    color: var(--site-dim);
    font-size: 0.78rem;
}

.detail-meta-grid dd {
    color: var(--site-text);
    font-weight: 850;
    margin: 0.2rem 0 0;
}

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

.movie-player {
    width: 100%;
    height: 100%;
    background: #000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    gap: 0.65rem;
    color: white;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.18), rgba(0, 0, 0, 0.45));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-shell.is-playing .play-overlay {
    visibility: hidden;
    opacity: 0;
}

.play-icon {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    box-shadow: 0 0 42px rgba(245, 158, 11, 0.34);
}

.play-icon::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    margin: 1.32rem 0 0 1.72rem;
    border-top: 0.9rem solid transparent;
    border-bottom: 0.9rem solid transparent;
    border-left: 1.25rem solid #081827;
}

.play-overlay strong {
    font-size: 1.1rem;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.detail-content > div {
    padding: 1.4rem;
}

.detail-content p {
    color: var(--site-muted);
    line-height: 1.95;
    margin-top: 0.9rem;
}

.site-footer {
    border-top: 1px solid rgba(51, 78, 104, 0.6);
    background: rgba(5, 14, 25, 0.9);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding: 3rem 0 2rem;
}

.site-footer p,
.site-footer a {
    color: var(--site-dim);
    line-height: 1.8;
}

.site-footer a {
    display: block;
    margin-top: 0.4rem;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--site-accent);
}

.site-footer h2 {
    color: var(--site-text);
    font-size: 1rem;
    font-weight: 850;
    margin-bottom: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid rgba(51, 78, 104, 0.45);
    color: var(--site-dim);
    padding: 1rem;
    text-align: center;
}

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

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

@media (max-width: 960px) {
    .desktop-nav,
    .header-search-link {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

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

    .hero-shade {
        background: linear-gradient(0deg, #06101d 0%, rgba(6, 16, 29, 0.45) 55%, rgba(6, 16, 29, 0.2) 100%);
    }

    .hero-arrow {
        display: none;
    }

    .hero-category-strip {
        left: 1rem;
        right: 1rem;
        width: auto;
        transform: none;
    }

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

    .detail-layout {
        grid-template-columns: 220px 1fr;
    }

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

@media (max-width: 740px) {
    .container-custom {
        width: min(100% - 1.25rem, var(--container));
    }

    .brand-text small {
        display: none;
    }

    .hero-content {
        padding-bottom: 7.5rem;
    }

    .hero-dots {
        right: 1rem;
        bottom: 5.2rem;
    }

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

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

    .category-grid,
    .detail-content,
    .footer-grid,
    .detail-meta-grid {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 2.4rem 4.4rem 1fr;
    }

    .rank-score {
        grid-column: 3;
        justify-self: start;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        align-items: start;
    }

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

@media (max-width: 420px) {
    .movie-grid {
        grid-template-columns: 1fr 1fr;
    }

    .movie-card-body {
        padding: 0.75rem;
    }

    .movie-card-body p {
        display: none;
    }
}
