* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #0a1929;
    color: #e5e7eb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.gradient-text {
    background: linear-gradient(90deg, #fbbf24, #d97706);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(16, 42, 67, 0.95);
    border-bottom: 1px solid rgba(251, 191, 36, 0.12);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
    white-space: nowrap;
}

.logo-mark {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: #f59e0b;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.25);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
}

.nav-link {
    color: #d1d5db;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fbbf24;
}

.header-search {
    display: flex;
    align-items: center;
    width: 280px;
    border: 1px solid rgba(251, 191, 36, 0.18);
    border-radius: 999px;
    background: rgba(36, 59, 83, 0.86);
    overflow: hidden;
}

.header-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: #ffffff;
    padding: 11px 14px;
    background: transparent;
}

.header-search input::placeholder {
    color: #9ca3af;
}

.header-search button {
    border: 0;
    color: #ffffff;
    padding: 11px 16px;
    background: #f59e0b;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
    background: rgba(36, 59, 83, 0.9);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #fbbf24;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(251, 191, 36, 0.12);
    background: rgba(16, 42, 67, 0.98);
}

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

.mobile-nav-inner {
    display: grid;
    gap: 10px;
    padding: 14px 0 20px;
}

.mobile-nav-link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #d1d5db;
    background: rgba(36, 59, 83, 0.8);
}

.mobile-nav-link.active {
    color: #fbbf24;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: #f59e0b;
}

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(217, 119, 6, 0.28);
}

.btn-secondary {
    color: #ffffff;
    background: #334e68;
}

.btn-secondary:hover {
    background: #486581;
    transform: translateY(-1px);
}

.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #102a43;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 25, 41, 0.96), rgba(10, 25, 41, 0.72) 48%, rgba(10, 25, 41, 0.55)), linear-gradient(0deg, rgba(10, 25, 41, 0.96), rgba(10, 25, 41, 0.12));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 56px;
    padding: 92px 0 86px;
}

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

.hero-kicker,
.section-kicker {
    color: #fbbf24;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.hero-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.hero-copy p {
    max-width: 720px;
    margin: 22px 0 0;
    color: #d1d5db;
    font-size: clamp(18px, 2vw, 22px);
}

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

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    color: #fef3c7;
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.1);
    font-size: 13px;
}

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

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 24px;
    background: #243b53;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
}

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

.hero-poster span {
    position: absolute;
    right: 22px;
    bottom: 22px;
    display: inline-flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.95);
    box-shadow: 0 16px 40px rgba(245, 158, 11, 0.25);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #ffffff;
    font-size: 36px;
    line-height: 1;
    background: rgba(16, 42, 67, 0.7);
    transform: translateY(-50%);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

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

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

.quick-panel {
    position: relative;
    z-index: 8;
    margin-top: -42px;
}

.quick-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: 18px;
    padding: 22px;
    border: 1px solid rgba(251, 191, 36, 0.14);
    border-radius: 24px;
    background: rgba(16, 42, 67, 0.96);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.28);
}

.quick-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.quick-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid rgba(251, 191, 36, 0.14);
    outline: none;
    border-radius: 14px;
    color: #ffffff;
    background: #243b53;
    padding: 13px 14px;
}

.quick-search input::placeholder,
.filter-panel input::placeholder {
    color: #9ca3af;
}

.quick-links,
.related-cats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-links a,
.related-cats a,
.section-more {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.16);
}

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

.dark-band {
    background: #102a43;
}

.categories-band {
    background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.12), transparent 34%), #0a1929;
}

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

.inline-head {
    align-items: center;
}

.section-title {
    margin: 0;
    color: #fbbf24;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.2;
}

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

.large-list {
    margin-top: 26px;
}

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: #243b53;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.movie-card-link {
    display: block;
    height: 100%;
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    background: #102a43;
}

.video-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .video-card-image {
    transform: scale(1.05);
}

.play-chip,
.rank-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    min-height: 30px;
    padding: 0 12px;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.95);
    font-size: 13px;
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    color: #ffffff;
    background: rgba(239, 68, 68, 0.92);
}

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

.movie-card h2 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.35;
}

.movie-meta,
.movie-line {
    margin: 8px 0 0;
    color: #9ca3af;
    font-size: 14px;
}

.movie-line {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card .tag-row {
    margin-top: 14px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    gap: 34px;
}

.ranking-panel,
.detail-sidebar {
    border: 1px solid rgba(251, 191, 36, 0.12);
    border-radius: 22px;
    background: rgba(36, 59, 83, 0.72);
    padding: 22px;
}

.list-stack {
    display: grid;
    gap: 18px;
}

.horizontal-card {
    border-radius: 16px;
    background: rgba(36, 59, 83, 0.9);
    overflow: hidden;
    transition: background 0.2s ease, transform 0.2s ease;
}

.horizontal-card:hover {
    background: #334e68;
    transform: translateY(-2px);
}

.horizontal-card a {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 12px;
}

.horizontal-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
}

.horizontal-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.horizontal-card h2 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.3;
}

.horizontal-card p,
.horizontal-card span {
    display: block;
    margin: 6px 0 0;
    color: #9ca3af;
    font-size: 14px;
}

.list-rank {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #ffffff;
    background: #f59e0b;
    font-weight: 800;
}

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

.category-tile,
.category-overview-card a {
    display: block;
    min-height: 180px;
    border: 1px solid rgba(251, 191, 36, 0.12);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(36, 59, 83, 0.95), rgba(16, 42, 67, 0.96));
    padding: 22px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.category-overview-card a:hover {
    transform: translateY(-3px);
    border-color: rgba(251, 191, 36, 0.38);
}

.category-tile span,
.category-overview-card h2 {
    display: block;
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 21px;
    font-weight: 800;
}

.category-tile p,
.category-overview-card p {
    margin: 0;
    color: #9ca3af;
    font-size: 14px;
}

.page-main {
    min-height: 60vh;
}

.page-hero {
    padding: 88px 0 64px;
    background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.12), transparent 30%), linear-gradient(135deg, #102a43, #0a1929);
}

.small-hero {
    padding: 74px 0 58px;
}

.page-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
}

.page-hero p {
    max-width: 720px;
    margin: 16px 0 0;
    color: #d1d5db;
    font-size: 18px;
}

.mini-actions {
    margin-top: 24px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 220px;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(251, 191, 36, 0.12);
    border-radius: 20px;
    background: rgba(16, 42, 67, 0.86);
}

.related-cats {
    margin-top: 18px;
}

.category-mosaic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 16px;
}

.category-mosaic img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
}

.ranking-layout {
    max-width: 980px;
}

.detail-hero {
    position: relative;
    background-image: var(--detail-bg);
    background-size: cover;
    background-position: center;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 25, 41, 0.96), rgba(10, 25, 41, 0.8)), linear-gradient(0deg, rgba(10, 25, 41, 0.98), rgba(10, 25, 41, 0.4));
}

.detail-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 66px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #fbbf24;
    font-size: 14px;
    margin-bottom: 16px;
}

.detail-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.1;
}

.detail-line {
    max-width: 820px;
    margin: 18px 0 0;
    color: #d1d5db;
    font-size: 20px;
}

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

.detail-meta span {
    color: #e5e7eb;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(36, 59, 83, 0.82);
}

.detail-tags {
    margin-top: 18px;
}

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

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.main-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    display: inline-flex;
    width: 86px;
    height: 86px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.96);
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.26);
    font-size: 34px;
}

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

.article-block {
    margin-top: 28px;
    padding: 28px;
    border: 1px solid rgba(251, 191, 36, 0.12);
    border-radius: 22px;
    background: #102a43;
}

.article-block h2,
.detail-sidebar h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 24px;
}

.article-block p {
    margin: 0;
    color: #d1d5db;
    font-size: 17px;
}

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

.compact-card .movie-line,
.compact-card .tag-row {
    display: none;
}

.detail-sidebar {
    position: sticky;
    top: 96px;
}

.detail-sidebar .horizontal-card a {
    grid-template-columns: 120px minmax(0, 1fr);
}

.sidebar-more {
    width: 100%;
    margin-top: 18px;
}

.site-footer {
    background: #102a43;
    border-top: 1px solid rgba(251, 191, 36, 0.12);
    padding: 54px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.6fr 1fr;
    gap: 34px;
}

.footer-logo {
    margin-bottom: 16px;
}

.site-footer p {
    max-width: 460px;
    margin: 0;
    color: #9ca3af;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fbbf24;
    font-size: 18px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: #d1d5db;
    font-size: 14px;
}

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

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

.footer-bottom {
    margin-top: 42px;
    padding: 18px;
    color: #9ca3af;
    text-align: center;
    background: #0a1929;
    font-size: 14px;
}

.is-filter-hidden {
    display: none !important;
}

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

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

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

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

@media (max-width: 760px) {
    .container-custom {
        width: min(100% - 24px, 1280px);
    }

    .site-logo {
        font-size: 18px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .hero-carousel {
        min-height: auto;
    }

    .hero-content {
        padding: 60px 0 80px;
        gap: 28px;
    }

    .hero-arrow {
        display: none;
    }

    .quick-panel {
        margin-top: 0;
    }

    .quick-grid,
    .filter-panel {
        border-radius: 0;
        width: 100%;
        grid-template-columns: 1fr;
    }

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

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

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

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

    .horizontal-card a {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .detail-hero-grid {
        padding: 42px 0;
    }

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

    .detail-sidebar {
        position: static;
    }

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

@media (max-width: 480px) {
    .horizontal-card a,
    .detail-sidebar .horizontal-card a {
        grid-template-columns: 1fr;
    }

    .horizontal-card img {
        aspect-ratio: 16 / 9;
    }

    .article-block {
        padding: 20px;
    }
}
