
:root {
    --bg: #1c1917;
    --bg-deep: #0c0a09;
    --panel: #ffffff;
    --text: #292524;
    --muted: #78716c;
    --line: #e7e5e4;
    --amber: #d97706;
    --amber-bright: #f59e0b;
    --amber-soft: rgba(245, 158, 11, 0.14);
    --shadow: 0 20px 45px rgba(28, 25, 23, 0.16);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #fafaf9 0%, #f5f5f4 45%, #fff7ed 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

button,
a,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    color: #fff;
    background: rgba(41, 37, 36, 0.96);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 800;
}

.brand-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #1c1917;
    background: linear-gradient(135deg, var(--amber-bright), #facc15);
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.35);
}

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

.nav-link,
.mobile-nav-link {
    color: #f5f5f4;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--amber-bright);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    color: #fff;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
}

.mobile-menu {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #1c1917;
}

.mobile-menu.open {
    display: grid;
    gap: 6px;
    padding: 14px 24px 20px;
}

.mobile-nav-link {
    display: block;
    padding: 10px 0;
}

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

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 24% 34%, rgba(245, 158, 11, 0.38), transparent 34%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.56) 46%, rgba(0, 0, 0, 0.18) 100%),
        linear-gradient(0deg, #0c0a09 0%, transparent 38%);
}

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

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

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--amber-bright);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}

.hero-copy p {
    margin: 0 0 24px;
    color: #e7e5e4;
    font-size: clamp(18px, 2.3vw, 24px);
    line-height: 1.65;
}

.hero-tags,
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.chip-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    color: #fde68a;
    background: rgba(217, 119, 6, 0.24);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

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

.btn-primary,
.btn-ghost,
.section-more,
.quick-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary,
.quick-search button {
    color: #1c1917;
    background: linear-gradient(135deg, var(--amber-bright), #facc15);
    box-shadow: 0 12px 26px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover,
.quick-search button:hover,
.section-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(245, 158, 11, 0.38);
}

.btn-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(28, 25, 23, 0.66);
    cursor: pointer;
    font-size: 42px;
    line-height: 1;
    backdrop-filter: blur(12px);
}

.hero-prev {
    left: 28px;
}

.hero-next {
    right: 28px;
}

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

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

.hero-dot.active {
    background: var(--amber-bright);
}

.search-band {
    margin-top: -42px;
    position: relative;
    z-index: 8;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    gap: 28px;
    align-items: center;
    padding: 28px;
    color: #fff;
    background: rgba(41, 37, 36, 0.94);
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-panel h2,
.search-panel p {
    margin: 0;
}

.search-panel p {
    margin-top: 8px;
    color: #d6d3d1;
}

.quick-search {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: #fff;
    border-radius: 999px;
}

.quick-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 0 14px;
    color: var(--text);
}

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

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

.section-heading h2 {
    margin: 0;
    color: #1c1917;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.section-more {
    color: #1c1917;
    background: var(--amber-soft);
    border: 1px solid rgba(217, 119, 6, 0.18);
}

.movie-grid,
.category-grid,
.category-overview-grid,
.ranking-grid {
    display: grid;
    gap: 22px;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(231, 229, 228, 0.9);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(41, 37, 36, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: var(--shadow);
}

.movie-poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    color: #fff;
    background: #292524;
}

.movie-poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.36s ease;
}

.movie-card:hover img,
.category-tile:hover img,
.category-overview-card:hover img {
    transform: scale(1.07);
}

.poster-shade,
.category-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.78) 100%);
}

.poster-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 12px;
    color: #1c1917;
    background: var(--amber-bright);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translateY(0);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: grid;
    min-width: 34px;
    height: 34px;
    place-items: center;
    color: #1c1917;
    background: linear-gradient(135deg, #facc15, var(--amber-bright));
    border-radius: 12px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 9px;
    color: var(--amber);
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card h3 a {
    color: inherit;
    text-decoration: none;
}

.movie-card h3 a:hover {
    color: var(--amber);
}

.movie-card p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.chip-row span {
    color: var(--amber);
    background: var(--amber-soft);
}

.category-tile {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    color: #fff;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-tile strong,
.category-tile em {
    position: absolute;
    left: 18px;
    z-index: 2;
}

.category-tile strong {
    bottom: 46px;
    font-size: 22px;
    font-style: normal;
    font-weight: 900;
}

.category-tile em {
    bottom: 18px;
    color: #fde68a;
    font-style: normal;
    font-weight: 700;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #1c1917;
}

.compact-hero {
    padding: 88px 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.3), transparent 35%),
        linear-gradient(135deg, #292524, #0c0a09);
}

.category-hero {
    padding: 110px 0;
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.44)),
        var(--hero-cover);
    background-size: cover;
    background-position: center;
}

.page-hero h1,
.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #e7e5e4;
    font-size: 18px;
    line-height: 1.8;
}

.filter-toolbar {
    display: grid;
    grid-template-columns: 1fr 220px 220px;
    gap: 12px;
    margin-bottom: 28px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(231, 229, 228, 0.86);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(41, 37, 36, 0.08);
    backdrop-filter: blur(14px);
}

.filter-toolbar input,
.filter-toolbar select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    outline: 0;
    padding: 0 14px;
    color: #292524;
    background: #fff;
}

.filter-toolbar input:focus,
.filter-toolbar select:focus {
    border-color: var(--amber-bright);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.sticky-filter {
    position: sticky;
    top: 80px;
    z-index: 10;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 18px;
    align-items: center;
    min-height: 180px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(41, 37, 36, 0.08);
}

.category-overview-card img {
    width: 190px;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-overview-card div {
    padding: 20px 24px 20px 0;
}

.category-overview-card span {
    color: var(--amber);
    font-weight: 900;
}

.category-overview-card h2 {
    margin: 8px 0;
    font-size: 28px;
    font-weight: 900;
}

.category-overview-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.detail-hero {
    padding: 74px 0;
    background-image: var(--detail-cover);
    background-size: cover;
    background-position: center;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 24% 26%, rgba(245, 158, 11, 0.24), transparent 30%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.55)),
        rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, 0.16);
    border-radius: 26px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

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

.detail-one-line {
    max-width: 820px;
    margin: 0 0 24px;
    color: #e7e5e4;
    font-size: 20px;
    line-height: 1.75;
}

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

.detail-meta span {
    padding: 8px 12px;
    color: #e7e5e4;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.player-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    border: 0;
    color: #fff;
    background:
        radial-gradient(circle, rgba(245, 158, 11, 0.32), transparent 30%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.76));
    cursor: pointer;
}

.player-card.is-playing .player-overlay {
    opacity: 0;
    pointer-events: none;
}

.player-play-icon {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    padding-left: 6px;
    color: #1c1917;
    background: linear-gradient(135deg, var(--amber-bright), #fde68a);
    border-radius: 50%;
    font-size: 36px;
    box-shadow: 0 16px 42px rgba(245, 158, 11, 0.36);
}

.player-overlay strong {
    font-size: 24px;
}

.player-overlay em {
    color: #d6d3d1;
    font-style: normal;
}

.detail-text-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 24px;
}

.detail-panel,
.info-card {
    padding: 28px;
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(41, 37, 36, 0.08);
}

.detail-panel h2,
.info-card h2 {
    margin: 0 0 14px;
    font-size: 28px;
    font-weight: 900;
}

.detail-panel p,
.info-card p {
    margin: 0;
    color: #57534e;
    font-size: 16px;
    line-height: 1.9;
}

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

.empty-state {
    padding: 30px;
    text-align: center;
    color: var(--muted);
    background: #fff;
    border: 1px dashed #d6d3d1;
    border-radius: 18px;
}

.site-footer {
    margin-top: 82px;
    color: #d6d3d1;
    background: #0c0a09;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 30px;
    padding: 46px 0;
}

.footer-brand {
    margin-bottom: 12px;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.site-footer p {
    max-width: 560px;
    margin: 0;
    line-height: 1.75;
}

.site-footer h3 {
    margin: 0 0 12px;
    color: #fff;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: #d6d3d1;
    text-decoration: none;
}

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

.footer-bottom {
    padding: 18px;
    text-align: center;
    color: #a8a29e;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

    .menu-toggle {
        display: block;
    }

    .hero-slider {
        height: 620px;
    }

    .hero-content {
        align-items: end;
        padding-bottom: 86px;
    }

    .hero-arrow {
        display: none;
    }

    .search-panel,
    .section-heading,
    .detail-hero-inner,
    .detail-text-grid,
    .footer-grid,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .quick-search {
        border-radius: 18px;
        flex-direction: column;
    }

    .quick-search input,
    .quick-search button {
        min-height: 46px;
    }

    .filter-toolbar {
        grid-template-columns: 1fr;
    }

    .category-overview-card img {
        width: 100%;
        height: 220px;
    }

    .category-overview-card div {
        padding: 0 20px 22px;
    }

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

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

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

    .brand-text {
        font-size: 18px;
    }

    .movie-grid,
    .all-movie-grid,
    .ranking-grid,
    .ranking-list,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

    .movie-card h3 {
        font-size: 16px;
    }

    .movie-card p {
        min-height: 44px;
        font-size: 13px;
    }

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

    .detail-hero,
    .compact-hero,
    .category-hero {
        padding: 54px 0;
    }

    .player-card {
        border-radius: 18px;
    }
}
