* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: #f8fafc;
    color: #0f172a;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.96);
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #22d3ee, #2563eb);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(34, 211, 238, 0.35);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 15px;
    white-space: nowrap;
}

.desktop-nav a,
.mobile-nav a,
.footer-grid a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-grid a:hover {
    color: #22d3ee;
}

.menu-toggle {
    display: none;
    border: 0;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 20px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.mobile-nav a {
    display: block;
    padding: 11px 0;
    color: #e2e8f0;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #020617;
    color: #ffffff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 25%, rgba(34, 211, 238, 0.35), transparent 34%), radial-gradient(circle at 86% 18%, rgba(37, 99, 235, 0.33), transparent 32%), linear-gradient(135deg, rgba(2, 6, 23, 0.68), rgba(15, 23, 42, 0.96));
    z-index: 2;
}

.hero-track {
    position: relative;
    min-height: 680px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) brightness(0.56);
    transform: scale(1.04);
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1240px;
    min-height: 680px;
    margin: 0 auto;
    padding: 92px 20px 86px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: center;
    gap: 54px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 14px;
    border: 1px solid rgba(34, 211, 238, 0.45);
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.16);
    color: #a5f3fc;
    font-weight: 700;
    font-size: 14px;
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero p {
    margin: 0;
    max-width: 700px;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.85;
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
    color: #0891b2;
    padding: 6px 11px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

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

.button-primary {
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.28);
}

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

.button-ghost {
    color: #0891b2;
    background: #ecfeff;
}

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

.hero-panel {
    padding: 16px;
    border-radius: 32px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 32px 80px rgba(2, 6, 23, 0.45);
    backdrop-filter: blur(22px);
}

.hero-panel img {
    height: 440px;
    object-fit: cover;
    border-radius: 24px;
}

.hero-panel-content {
    padding: 18px 4px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.hero-panel-content strong {
    display: block;
    font-size: 20px;
}

.hero-panel-content span {
    display: block;
    margin-top: 5px;
    color: #cbd5e1;
}

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

.hero-dots button {
    width: 44px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.hero-dots button.active {
    background: #22d3ee;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 68px 0;
}

.section.alt {
    background: linear-gradient(135deg, #f1f5f9, #ecfeff);
}

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

.section-title {
    margin: 14px 0 0;
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -0.04em;
}

.section-desc {
    max-width: 680px;
    color: #475569;
    line-height: 1.8;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(8, 47, 73, 0.14);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #0f172a;
}

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

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 38%, rgba(2, 6, 23, 0.82));
    opacity: 0.85;
}

.movie-play {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.9);
    color: #ffffff;
    font-weight: 800;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 18px 42px rgba(34, 211, 238, 0.38);
}

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

.movie-info {
    padding: 18px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.movie-info h3 {
    margin: 12px 0 8px;
    font-size: 20px;
    line-height: 1.35;
}

.movie-info h3 a:hover,
.rank-list a:hover,
.breadcrumb a:hover {
    color: #0891b2;
}

.movie-info p {
    margin: 0 0 14px;
    min-height: 48px;
    color: #475569;
    line-height: 1.65;
    font-size: 14px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 26px;
    border-radius: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #0891b2);
    box-shadow: 0 24px 60px rgba(8, 47, 73, 0.16);
}

.category-card::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    right: -40px;
    bottom: -40px;
    background: rgba(255, 255, 255, 0.13);
}

.category-card h2,
.category-card h3 {
    position: relative;
    z-index: 2;
    margin: 0 0 12px;
    font-size: 25px;
}

.category-card p {
    position: relative;
    z-index: 2;
    margin: 0;
    color: #dbeafe;
    line-height: 1.7;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 66px 80px minmax(0, 1fr) 120px;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 15px;
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    font-weight: 900;
}

.rank-cover {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: #0f172a;
}

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

.rank-main strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

.rank-main p {
    margin: 0;
    color: #64748b;
    line-height: 1.55;
}

.rank-badge {
    justify-self: end;
    color: #0891b2;
    font-weight: 800;
}

.search-panel,
.filter-panel {
    border-radius: 28px;
    padding: 24px;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.search-form,
.filters {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(150px, 1fr));
    gap: 14px;
}

.search-form input,
.search-form select,
.filters input,
.filters select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 13px 14px;
    color: #0f172a;
    background: #ffffff;
    outline: none;
    font-size: 15px;
}

.search-form input:focus,
.search-form select:focus,
.filters input:focus,
.filters select:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.page-hero {
    background: linear-gradient(135deg, #0f172a, #164e63);
    color: #ffffff;
    padding: 74px 0;
}

.page-hero h1 {
    margin: 12px 0;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 780px;
    color: #dbeafe;
    line-height: 1.8;
    font-size: 18px;
}

.breadcrumb {
    color: #64748b;
    margin-bottom: 24px;
    font-weight: 700;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.45fr);
    gap: 30px;
    align-items: start;
}

.player-wrap {
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.22);
}

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

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
    display: block;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 4;
    border: 0;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.72));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.player-start span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 114px;
    height: 114px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.92);
    box-shadow: 0 22px 60px rgba(34, 211, 238, 0.35);
}

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

.detail-card,
.detail-aside {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.detail-card {
    padding: 28px;
}

.detail-card h1 {
    margin: 0 0 14px;
    font-size: clamp(32px, 4vw, 52px);
    letter-spacing: -0.04em;
}

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

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-weight: 800;
    font-size: 14px;
}

.detail-body h2 {
    margin: 28px 0 12px;
    font-size: 24px;
}

.detail-body p {
    color: #334155;
    line-height: 1.9;
    font-size: 17px;
}

.detail-aside {
    padding: 18px;
}

.aside-cover {
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 3 / 4;
    background: #0f172a;
    margin-bottom: 16px;
}

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

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

.empty-state {
    display: none;
    padding: 34px;
    text-align: center;
    border-radius: 24px;
    background: #ffffff;
    color: #64748b;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.empty-state.show {
    display: block;
}

@media (max-width: 1120px) {
    .desktop-nav {
        gap: 14px;
        font-size: 14px;
    }

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

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

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

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

    .hero,
    .hero-track,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 60px;
    }

    .hero-panel img {
        height: 320px;
    }

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

    .search-form,
    .filters {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .brand-text {
        font-size: 17px;
    }

    .hero,
    .hero-track,
    .hero-content {
        min-height: 680px;
    }

    .hero-content {
        padding: 44px 18px 82px;
    }

    .hero-panel {
        display: none;
    }

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

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

    .rank-badge {
        display: none;
    }

    .search-form,
    .filters {
        grid-template-columns: 1fr;
    }

    .section-head {
        display: block;
    }

    .section {
        padding: 48px 0;
    }
}
