html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
    color: #e5e7eb;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(2, 6, 23, 0.86);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    backdrop-filter: blur(16px);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.brand-text {
    font-size: 20px;
    background: linear-gradient(90deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

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

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

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

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.search-panel input,
.filter-bar input,
.filter-bar select {
    color: #ffffff;
    background: rgba(30, 41, 59, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    outline: none;
}

.header-search input {
    width: 210px;
    padding: 10px 14px;
}

.header-search button,
.search-panel button {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    color: #ffffff;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    padding: 8px 12px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    padding: 16px 24px 20px;
}

.mobile-panel.open {
    display: block;
}

.mobile-links,
.mobile-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mobile-categories {
    margin-top: 14px;
}

.mobile-panel a {
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    padding: 8px 12px;
}

.hero-wrap,
.page-shell,
.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.hero-wrap {
    padding-top: 32px;
}

.hero-carousel {
    position: relative;
    height: 540px;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, #2563eb, #06b6d4, #14b8a6);
    box-shadow: 0 24px 80px rgba(8, 47, 73, 0.38);
}

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

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(96, 165, 250, 0.55), transparent 28%), linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.74) 42%, rgba(8, 47, 73, 0.38) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 70px 64px;
}

.eyebrow {
    color: #67e8f9;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    color: #ffffff;
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.hero-content h1 {
    max-width: 800px;
    font-size: clamp(34px, 5vw, 64px);
    margin: 0 0 18px;
}

.hero-content h2 {
    color: #dbeafe;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 800;
    margin: 0 0 16px;
}

.hero-content p,
.page-hero p,
.lead-text {
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags,
.chip-line,
.detail-meta,
.meta-line,
.score-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-tags {
    margin: 20px 0 28px;
}

.hero-tags span,
.chip-line span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.26);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
}

.hero-dots {
    position: absolute;
    z-index: 3;
    left: 64px;
    bottom: 34px;
    display: flex;
    gap: 10px;
}

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

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

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

.no-top-gap {
    padding-top: 28px;
}

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

.section-heading h2 {
    color: #ffffff;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 900;
    margin: 0;
}

.section-heading p {
    max-width: 680px;
    margin: 0;
    color: #94a3b8;
    line-height: 1.8;
}

.featured-grid,
.movie-grid,
.row-grid,
.category-grid {
    display: grid;
    gap: 22px;
}

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

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

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

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

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

.movie-card,
.movie-row,
.category-card,
.category-overview-card,
.detail-hero,
.detail-copy article,
.player-shell,
.search-panel,
.filter-bar,
.page-hero {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 54px rgba(2, 6, 23, 0.28);
}

.movie-card,
.category-card {
    overflow: hidden;
    border-radius: 20px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover,
.category-card:hover,
.movie-row:hover {
    transform: translateY(-5px);
    border-color: rgba(96, 165, 250, 0.46);
    box-shadow: 0 22px 64px rgba(37, 99, 235, 0.22);
}

.poster-link,
.row-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: #020617;
}

.poster-link {
    aspect-ratio: 16 / 10;
}

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

.movie-card:hover img,
.movie-row:hover img {
    transform: scale(1.06);
}

.play-mark {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 42px;
    background: rgba(2, 6, 23, 0.36);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
}

.duration,
.rank-badge {
    position: absolute;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.82);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
}

.duration {
    right: 10px;
    bottom: 10px;
}

.rank-badge {
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

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

.movie-title,
.row-title {
    color: #ffffff;
    font-weight: 850;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-title:hover,
.row-title:hover {
    color: #60a5fa;
}

.movie-card-body p,
.row-body p {
    color: #94a3b8;
    line-height: 1.7;
    min-height: 3.2em;
    margin: 10px 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.score-line,
.meta-line {
    color: #94a3b8;
    font-size: 13px;
}

.score-line {
    justify-content: space-between;
    margin-top: 12px;
}

.movie-row {
    display: grid;
    grid-template-columns: 190px 1fr;
    overflow: hidden;
    border-radius: 20px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.row-poster {
    min-height: 160px;
}

.category-card {
    min-height: 220px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-icon {
    font-size: 38px;
}

.category-card strong,
.category-overview-head h2 {
    color: #ffffff;
    font-size: 22px;
}

.category-card em {
    color: #67e8f9;
    font-style: normal;
    font-weight: 800;
}

.category-card small {
    color: #94a3b8;
    line-height: 1.7;
}

.category-samples {
    display: grid;
    gap: 4px;
    margin-top: auto;
}

.category-samples a {
    color: #cbd5e1;
    font-size: 13px;
}

.page-shell {
    padding-top: 32px;
    padding-bottom: 56px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 48px;
}

.small-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.4), transparent 30%), radial-gradient(circle at 88% 0%, rgba(6, 182, 212, 0.28), transparent 30%);
}

.page-hero > div {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
    margin: 0 0 14px;
}

.category-overview-card {
    border-radius: 24px;
    padding: 24px;
    margin-top: 28px;
}

.category-overview-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.category-overview-head > span {
    font-size: 42px;
}

.category-overview-head h2,
.category-overview-head p {
    margin: 0;
}

.category-overview-head p {
    color: #94a3b8;
    margin-top: 6px;
}

.filter-bar,
.search-panel {
    border-radius: 22px;
    padding: 22px;
    margin-top: 28px;
}

.filter-bar {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 16px;
}

.filter-bar label {
    display: grid;
    gap: 8px;
    color: #cbd5e1;
    font-size: 14px;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    border-radius: 14px;
    padding: 12px 14px;
}

.search-panel form {
    display: flex;
    gap: 12px;
}

.search-panel input {
    flex: 1;
    border-radius: 16px;
    padding: 15px 18px;
}

.detail-shell {
    max-width: 1180px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    margin-bottom: 22px;
    font-size: 14px;
}

.breadcrumb a {
    color: #93c5fd;
}

.detail-hero {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 34px;
    border-radius: 28px;
    padding: 30px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.45);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 460px;
}

.detail-info h1 {
    font-size: clamp(32px, 4vw, 54px);
    margin: 0 0 18px;
}

.detail-meta {
    margin: 18px 0;
}

.player-section {
    margin-top: 34px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
}

.player-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    cursor: pointer;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.64));
    border: 0;
    cursor: pointer;
}

.player-start span {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    border-radius: 999px;
    font-size: 38px;
    box-shadow: 0 18px 48px rgba(37, 99, 235, 0.38);
}

.player-start.is-hidden {
    display: none;
}

.player-error {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    color: #fecaca;
    text-align: center;
    pointer-events: none;
}

.detail-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 34px;
}

.detail-copy article {
    border-radius: 24px;
    padding: 26px;
}

.detail-copy h2 {
    color: #ffffff;
    font-size: 24px;
    margin: 0 0 14px;
}

.detail-copy p {
    color: #cbd5e1;
    line-height: 1.9;
    margin: 0;
}

.center-action {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.site-footer {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.3), #020617);
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    padding: 44px 24px;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
}

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

.site-footer p,
.site-footer a {
    color: #94a3b8;
    line-height: 1.8;
}

.site-footer a:hover {
    color: #60a5fa;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

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

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

    .row-grid,
    .detail-copy {
        grid-template-columns: 1fr;
    }

    .detail-hero {
        grid-template-columns: 260px 1fr;
    }
}

@media (max-width: 760px) {
    .header-inner,
    .hero-wrap,
    .page-shell,
    .content-section {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .hero-carousel {
        height: 620px;
        border-radius: 22px;
    }

    .hero-content {
        padding: 46px 24px;
    }

    .hero-dots {
        left: 24px;
        bottom: 24px;
    }

    .section-heading {
        display: block;
    }

    .section-heading p {
        margin-top: 10px;
    }

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

    .movie-row {
        grid-template-columns: 130px 1fr;
    }

    .row-poster {
        min-height: 150px;
    }

    .movie-card-body,
    .row-body {
        padding: 14px;
    }

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

    .search-panel form {
        flex-direction: column;
    }

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

    .detail-hero {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .detail-poster img {
        min-height: auto;
    }

    .page-hero {
        padding: 34px 24px;
    }

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

@media (max-width: 520px) {
    .featured-grid,
    .movie-grid,
    .compact-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .row-poster {
        aspect-ratio: 16 / 10;
    }
}
