:root {
    --cyan: #06b6d4;
    --blue: #2563eb;
    --teal: #0d9488;
    --slate: #0f172a;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f9fafb;
    --card: #ffffff;
    --shadow: 0 20px 45px rgb(15 23 42 / 0.12);
    --radius: 24px;
}

* {
    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;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgb(207 250 254 / 0.72), transparent 32rem),
        linear-gradient(180deg, #f9fafb 0%, #eff6ff 46%, #f9fafb 100%);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    color: #fff;
    background: linear-gradient(90deg, #0891b2, #2563eb 48%, #0d9488);
    box-shadow: 0 18px 36px rgb(8 145 178 / 0.25);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.brand-mark,
.footer-logo span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgb(255 255 255 / 0.22);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.nav-link,
.mobile-link {
    padding: 9px 13px;
    border-radius: 999px;
    font-weight: 700;
    color: rgb(255 255 255 / 0.9);
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #fff;
    background: rgb(255 255 255 / 0.18);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.18);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16);
}

.header-search input,
.mobile-search input {
    width: 220px;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    padding: 9px 12px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: rgb(255 255 255 / 0.76);
}

.header-search button,
.mobile-search button {
    border: 0;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 999px;
    color: #0e7490;
    background: #fff;
    font-weight: 800;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgb(255 255 255 / 0.18);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: #fff;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-search {
    display: flex;
    margin-bottom: 12px;
    border-radius: 18px;
    background: rgb(255 255 255 / 0.15);
}

.mobile-search input {
    flex: 1;
    width: auto;
}

.mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

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

.hero-slider {
    min-height: calc(100vh - 92px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: stretch;
    padding: 28px 0 42px;
}

.hero-stage {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-radius: 34px;
    background: var(--slate);
    box-shadow: var(--shadow);
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgb(15 23 42 / 0.92) 0%, rgb(15 23 42 / 0.70) 42%, rgb(15 23 42 / 0.12) 100%),
        radial-gradient(circle at 20% 25%, rgb(6 182 212 / 0.42), transparent 24rem);
}

.hero-content {
    position: absolute;
    left: clamp(24px, 7vw, 74px);
    bottom: clamp(32px, 8vw, 90px);
    width: min(650px, calc(100% - 48px));
    color: #fff;
}

.hero-label,
.page-hero p,
.detail-copy p,
.section-heading p,
.category-overview-card p {
    margin: 0 0 10px;
    color: #67e8f9;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
    margin: 0;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.hero-content p {
    width: min(590px, 100%);
    margin: 22px 0 0;
    color: rgb(255 255 255 / 0.84);
    font-size: 18px;
}

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

.primary-button,
.ghost-button,
.inline-more,
.side-more,
.section-heading a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.2s ease;
}

.primary-button {
    color: #fff;
    background: linear-gradient(90deg, #06b6d4, #2563eb);
    box-shadow: 0 14px 28px rgb(37 99 235 / 0.28);
}

.primary-button:hover,
.section-heading a:hover,
.inline-more:hover,
.side-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgb(37 99 235 / 0.22);
}

.ghost-button {
    color: #fff;
    background: rgb(255 255 255 / 0.16);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.24);
}

.hero-tags,
.detail-meta,
.detail-tags,
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-tags span,
.detail-tags a,
.card-tags span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #ecfeff;
    background: rgb(255 255 255 / 0.17);
}

.hero-controls {
    position: absolute;
    left: clamp(24px, 7vw, 74px);
    bottom: 26px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-controls button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgb(255 255 255 / 0.18);
    cursor: pointer;
    font-size: 26px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px !important;
    height: 10px !important;
    padding: 0;
    background: rgb(255 255 255 / 0.35) !important;
}

.hero-dot.active {
    width: 30px !important;
    border-radius: 999px;
    background: #22d3ee !important;
}

.hero-side,
.rank-panel {
    padding: 18px;
    border-radius: 28px;
    background: rgb(255 255 255 / 0.78);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    border: 1px solid rgb(255 255 255 / 0.72);
}

.side-title,
.panel-title {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 900;
    color: #0e7490;
}

.small-movie-link {
    display: grid;
    grid-template-columns: 30px 58px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    transition: 0.2s ease;
}

.small-movie-link:hover {
    background: #ecfeff;
    transform: translateX(3px);
}

.small-movie-link span {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    font-weight: 900;
}

.small-movie-link img {
    width: 58px;
    height: 78px;
    border-radius: 14px;
    object-fit: cover;
}

.small-movie-link strong,
.small-movie-link em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.small-movie-link strong {
    font-size: 15px;
    color: var(--text);
}

.small-movie-link em {
    font-style: normal;
    color: var(--muted);
    font-size: 12px;
}

.side-more {
    width: 100%;
    margin-top: 10px;
    color: #fff;
    background: #0e7490;
}

.section-block {
    margin: 44px 0;
}

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

.section-heading h2 {
    margin: 0;
    color: var(--slate);
    font-size: clamp(26px, 3.2vw, 42px);
    line-height: 1.16;
    letter-spacing: -0.04em;
}

.section-heading a,
.inline-more {
    color: #0e7490;
    background: #ecfeff;
}

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

.category-card {
    min-height: 170px;
    padding: 22px;
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgb(255 255 255 / 0.92), rgb(236 254 255 / 0.9)),
        radial-gradient(circle at top right, rgb(6 182 212 / 0.18), transparent 14rem);
    box-shadow: 0 16px 36px rgb(15 23 42 / 0.08);
    border: 1px solid rgb(255 255 255 / 0.88);
    transition: 0.2s ease;
}

.category-card:hover,
.movie-card:hover,
.category-overview-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgb(15 23 42 / 0.13);
}

.category-card span {
    display: inline-flex;
    margin-bottom: 12px;
    color: #0891b2;
    font-size: 22px;
    font-weight: 900;
}

.category-card strong {
    display: block;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
    align-items: start;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 16px 34px rgb(15 23 42 / 0.08);
    border: 1px solid rgb(255 255 255 / 0.84);
    transition: 0.2s ease;
}

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

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

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgb(0 0 0 / 0.68), transparent);
}

.rank-badge,
.year-badge {
    position: absolute;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    min-width: 36px;
    height: 28px;
    padding: 0 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.rank-badge {
    left: 12px;
    background: #db2777;
}

.year-badge {
    right: 12px;
    background: rgb(14 116 144 / 0.9);
}

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

.card-tags span {
    color: #0e7490;
    background: #ecfeff;
}

.movie-card h2 {
    margin: 12px 0 8px;
    color: var(--slate);
    font-size: 18px;
    line-height: 1.25;
}

.movie-card h2 a:hover {
    color: #0891b2;
}

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

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #64748b;
    font-size: 12px;
}

.card-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-main,
.detail-main {
    padding: 34px 0 58px;
}

.page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 260px;
    margin-bottom: 30px;
    padding: clamp(26px, 5vw, 56px);
    border-radius: 34px;
    color: #fff;
    background:
        linear-gradient(120deg, rgb(15 23 42 / 0.92), rgb(8 145 178 / 0.86)),
        radial-gradient(circle at top right, rgb(34 211 238 / 0.4), transparent 24rem);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.page-hero span {
    display: block;
    width: min(720px, 100%);
    margin-top: 16px;
    color: rgb(255 255 255 / 0.82);
    font-size: 17px;
}

.filter-panel {
    margin: 0 0 32px;
    padding: 22px;
    border-radius: 28px;
    background: rgb(255 255 255 / 0.82);
    box-shadow: 0 14px 32px rgb(15 23 42 / 0.08);
    border: 1px solid rgb(255 255 255 / 0.88);
}

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

.filter-heading h2 {
    margin: 0;
    color: var(--slate);
    font-size: 26px;
}

.filter-heading p {
    margin: 0;
    color: var(--muted);
}

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

.filter-grid label {
    display: grid;
    gap: 6px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.filter-grid input,
.filter-grid select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 13px;
    outline: 0;
    color: var(--text);
    background: #fff;
}

.filter-grid input:focus,
.filter-grid select:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 4px rgb(6 182 212 / 0.14);
}

.empty-result {
    display: none;
    margin-top: 16px;
    padding: 18px;
    border-radius: 18px;
    color: #0e7490;
    background: #ecfeff;
    font-weight: 800;
}

.empty-result.visible {
    display: block;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 22px;
    border-radius: 30px;
    background: rgb(255 255 255 / 0.84);
    box-shadow: 0 16px 34px rgb(15 23 42 / 0.08);
    transition: 0.2s ease;
}

.overview-copy h2 {
    margin: 0 0 12px;
    font-size: 30px;
    color: var(--slate);
}

.overview-copy strong {
    display: block;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 15px;
}

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

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

.compact-card h2 {
    font-size: 15px;
}

.compact-card p,
.compact-card .card-meta {
    display: none;
}

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

.breadcrumb a:hover {
    color: #0891b2;
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: clamp(22px, 4vw, 42px);
    border-radius: 34px;
    color: #fff;
    background:
        linear-gradient(120deg, rgb(15 23 42 / 0.96), rgb(8 145 178 / 0.86)),
        radial-gradient(circle at bottom right, rgb(37 99 235 / 0.45), transparent 26rem);
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 22px 48px rgb(0 0 0 / 0.28);
}

.detail-copy h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-copy strong {
    display: block;
    margin: 20px 0;
    color: rgb(255 255 255 / 0.88);
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta span {
    color: #ecfeff;
    background: rgb(255 255 255 / 0.16);
}

.detail-tags {
    margin: 16px 0 26px;
}

.detail-tags a {
    color: #0e7490;
    background: #ecfeff;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 30px;
    background: #020617;
    box-shadow: var(--shadow);
}

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

.player-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #020617;
}

.player-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.player-layer .play-icon {
    position: absolute;
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 18px 45px rgb(37 99 235 / 0.42);
    font-size: 34px;
    padding-left: 5px;
}

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

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

.detail-content article {
    padding: 26px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 16px 34px rgb(15 23 42 / 0.08);
}

.detail-content h2 {
    margin: 0 0 14px;
    color: var(--slate);
    font-size: 26px;
}

.detail-content p {
    margin: 0;
    color: #475569;
    line-height: 1.9;
}

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

.site-footer {
    margin-top: 50px;
    color: #fff;
    background: linear-gradient(180deg, #1e293b, #0f172a);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
}

.footer-brand p {
    color: rgb(255 255 255 / 0.72);
}

.footer-links h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.footer-links div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: rgb(255 255 255 / 0.82);
    background: rgb(255 255 255 / 0.08);
}

.footer-links a:hover {
    color: #fff;
    background: rgb(34 211 238 / 0.22);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: rgb(255 255 255 / 0.56);
    border-top: 1px solid rgb(255 255 255 / 0.1);
}

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

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

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

    .hero-stage {
        min-height: 560px;
    }

    .hero-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .side-title,
    .side-more {
        grid-column: 1 / -1;
    }

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

    .detail-hero,
    .category-overview-card {
        grid-template-columns: 240px minmax(0, 1fr);
    }

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

@media (max-width: 760px) {
    .header-inner {
        width: min(100% - 24px, 1180px);
    }

    main,
    .page-main,
    .detail-main,
    .mobile-panel,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 24px, 1180px);
    }

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

    .hero-slider {
        min-height: auto;
        padding-top: 18px;
    }

    .hero-stage {
        min-height: 520px;
        border-radius: 26px;
    }

    .hero-overlay {
        background: linear-gradient(0deg, rgb(15 23 42 / 0.95), rgb(15 23 42 / 0.28));
    }

    .hero-content {
        left: 22px;
        bottom: 82px;
        width: calc(100% - 44px);
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 34px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .hero-controls {
        left: 22px;
    }

    .hero-side {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .filter-heading,
    .page-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-grid,
    .movie-grid,
    .all-grid,
    .related-grid,
    .overview-movies,
    .footer-inner,
    .detail-content,
    .filter-grid {
        grid-template-columns: 1fr 1fr;
    }

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

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

@media (max-width: 520px) {
    .category-grid,
    .movie-grid,
    .all-grid,
    .related-grid,
    .overview-movies,
    .footer-inner,
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        min-height: 560px;
    }

    .mobile-nav {
        grid-template-columns: 1fr;
    }

    .player-layer .play-icon {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }
}
