* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #0f172a;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 14px 35px rgba(245, 158, 11, 0.3);
}

.brand-text {
    font-size: 1.2rem;
    background: linear-gradient(90deg, #fbbf24, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    color: #cbd5e1;
    font-weight: 650;
    transition: color 0.2s ease;
}

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

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px;
    background: rgba(51, 65, 85, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.header-search input,
.mobile-search input,
.movie-filter-input,
.search-panel select {
    min-width: 0;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
}

.header-search input {
    width: 190px;
    padding: 4px 8px;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.movie-filter-input::placeholder {
    color: #94a3b8;
}

.header-search button,
.mobile-search button {
    border-radius: 999px;
    padding: 7px 13px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    color: #ffffff;
    background: rgba(51, 65, 85, 0.75);
    border-radius: 12px;
    padding: 8px 12px;
}

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

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

.mobile-nav,
.mobile-channel-links,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mobile-channel-links {
    width: 100%;
    padding-top: 10px;
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: #111827;
}

.hero-track,
.hero-slide,
.hero-bg,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-shade {
    background:
        radial-gradient(circle at 72% 36%, rgba(245, 158, 11, 0.2), transparent 34%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.66), rgba(2, 6, 23, 0.18)),
        linear-gradient(0deg, rgba(15, 23, 42, 1), transparent 45%);
}

.hero-inner {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(720px, 100%);
    padding-top: 48px;
}

.hero-badges,
.hero-tags,
.tag-row,
.detail-facts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-badges span,
.hero-tags span,
.tag-row span,
.detail-facts span {
    border-radius: 999px;
    padding: 5px 10px;
    color: #f8fafc;
    background: rgba(30, 41, 59, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.hero-badges span:first-child,
.section-kicker {
    color: #fbbf24;
}

.hero h1 {
    margin: 18px 0 14px;
    font-size: clamp(2.4rem, 7vw, 5.5rem);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 680px;
    margin: 0 0 22px;
    color: #cbd5e1;
    font-size: 1.12rem;
}

.hero-actions,
.detail-copy .primary-btn {
    margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.section-more,
.inline-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 0 20px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 18px 40px rgba(234, 88, 12, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.inline-more:hover {
    transform: translateY(-2px);
}

.ghost-btn,
.section-more,
.inline-more {
    color: #e2e8f0;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

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

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

.hero-dot {
    width: 28px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
}

.hero-dot.is-active {
    width: 42px;
    background: #f59e0b;
}

.section {
    padding: 72px 0;
}

.section-soft {
    background: rgba(15, 23, 42, 0.52);
}

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

.section-kicker {
    margin: 0 0 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-head h2,
.page-hero h1,
.detail-copy h1,
.player-section h2,
.content-card h2,
.ranking-aside h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.12;
}

.section-head p,
.page-hero p,
.content-card p,
.site-footer p {
    margin: 8px 0 0;
    color: #94a3b8;
}

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

.wide-grid {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}

.side-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
    transform: translateY(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 158, 11, 0.52);
    box-shadow: 0 30px 75px rgba(0, 0, 0, 0.38);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #1e293b;
}

.movie-card.small .poster-wrap {
    aspect-ratio: 16 / 10;
}

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

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

.play-chip {
    position: absolute;
    right: 10px;
    bottom: 10px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
}

.card-meta,
.card-desc,
.rank-info span {
    color: #94a3b8;
    font-size: 0.88rem;
}

.movie-card strong {
    display: -webkit-box;
    min-height: 2.8em;
    overflow: hidden;
    color: #ffffff;
    font-size: 1.02rem;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-desc {
    display: -webkit-box;
    min-height: 3.7em;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.tag-row {
    gap: 6px;
}

.tag-row span {
    padding: 3px 8px;
    color: #fde68a;
    font-size: 0.78rem;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.2);
}

.tag-row.small span {
    font-size: 0.74rem;
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.channel-card {
    position: relative;
    min-height: 240px;
    overflow: hidden;
    display: flex;
    align-items: end;
    border-radius: 24px;
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.channel-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
    transition: transform 0.35s ease;
}

.channel-card:hover img {
    transform: scale(1.08);
}

.channel-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 70%);
}

.channel-card span {
    position: relative;
    z-index: 2;
    display: block;
    padding: 20px;
}

.channel-card strong,
.category-overview-card h2,
.rank-info strong {
    display: block;
    color: #ffffff;
    font-size: 1.25rem;
}

.channel-card em {
    display: block;
    margin-top: 6px;
    color: #cbd5e1;
    font-style: normal;
}

.home-rank-layout,
.ranking-layout,
.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 36px;
    align-items: start;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 48px 70px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.12);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    border-color: rgba(245, 158, 11, 0.45);
}

.rank-num {
    color: #fbbf24;
    font-size: 1.35rem;
    font-weight: 900;
    text-align: center;
}

.rank-item img {
    width: 70px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    background: #1e293b;
}

.rank-info {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.rank-score {
    color: #fbbf24;
    font-size: 1.1rem;
    font-weight: 900;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    background:
        radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.16), transparent 32%),
        linear-gradient(135deg, #0f172a, #1e293b 58%, #111827);
}

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

.page-hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.28;
}

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

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: #cbd5e1;
    font-size: 0.94rem;
}

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

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

.category-overview-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.category-cover {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 18px;
    background: #1e293b;
}

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

.category-overview-card p {
    color: #94a3b8;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
}

.category-samples a {
    color: #fde68a;
    font-size: 0.92rem;
}

.filter-panel,
.search-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.movie-filter-input,
.search-panel select {
    min-height: 48px;
    border-radius: 999px;
    padding: 0 16px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.movie-filter-input {
    flex: 1 1 280px;
}

.search-panel select {
    flex: 0 1 160px;
    color: #ffffff;
}

.search-panel option {
    color: #0f172a;
}

.empty-state {
    display: none;
    margin-top: 28px;
    padding: 28px;
    text-align: center;
    color: #cbd5e1;
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.72);
}

.empty-state.is-visible {
    display: block;
}

.detail-head {
    padding: 48px 0 70px;
    background:
        radial-gradient(circle at 80% 12%, rgba(245, 158, 11, 0.18), transparent 30%),
        linear-gradient(135deg, #0f172a, #111827 56%, #1e293b);
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.detail-cover {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.44);
    background: #1e293b;
}

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

.detail-copy h1 {
    margin-top: 8px;
    font-size: clamp(2.2rem, 6vw, 4.7rem);
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 780px;
    color: #cbd5e1;
    font-size: 1.14rem;
}

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

.player-section {
    padding-top: 58px;
}

.player-section h2 {
    margin-bottom: 20px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #020617;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
    aspect-ratio: 16 / 9;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #020617;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.48;
    filter: blur(2px);
    transform: scale(1.02);
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.16), rgba(2, 6, 23, 0.65));
}

.play-button {
    position: relative;
    z-index: 2;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 2.1rem;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 20px 60px rgba(234, 88, 12, 0.4);
}

.content-card {
    padding: 26px;
    border-radius: 24px;
    background: rgba(30, 41, 59, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.content-card p {
    color: #dbe4f0;
    font-size: 1.02rem;
}

.related-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.site-footer {
    padding: 54px 0 28px;
    background: #020617;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

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

.footer-brand {
    margin-bottom: 14px;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 1rem;
}

.footer-links a {
    color: #94a3b8;
}

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

.footer-bottom {
    margin-top: 34px;
    padding-top: 22px;
    color: #64748b;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

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

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

    .header-inner {
        min-height: 68px;
    }

    .hero,
    .hero-inner {
        min-height: 560px;
    }

    .home-rank-layout,
    .ranking-layout,
    .detail-content-grid,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-cover {
        width: min(300px, 100%);
    }
}

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

    .hero,
    .hero-inner {
        min-height: 520px;
    }

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

    .section {
        padding: 52px 0;
    }

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

    .movie-grid,
    .wide-grid,
    .side-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

    .rank-item {
        grid-template-columns: 36px 58px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 3;
    }

    .rank-item img {
        width: 58px;
        height: 76px;
    }

    .search-panel select {
        flex: 1 1 140px;
    }
}
