:root {
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --cyan: #06b6d4;
    --orange: #f97316;
    --yellow: #eab308;
    --green: #22c55e;
    --purple: #8b5cf6;
    --red: #ef4444;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #f9fafb;
    --card: #ffffff;
    --shadow: 0 12px 35px rgba(15, 23, 42, 0.12);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(16px);
}

.nav-shell {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.03em;
    white-space: nowrap;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
    font-size: 16px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    font-weight: 700;
    color: #374151;
}

.desktop-nav a {
    transition: color 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--blue);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 6px;
}

.nav-search input,
.mobile-panel input,
.filter-search input {
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 10px 16px;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-panel input:focus,
.filter-search input:focus,
.filter-panel select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.nav-search button,
.mobile-panel button,
.btn-primary,
.btn-secondary,
.hero-link,
.load-link {
    border: 0;
    border-radius: 999px;
    padding: 11px 20px;
    font-weight: 800;
    color: #ffffff;
    background: var(--blue);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.mobile-panel button:hover,
.btn-primary:hover,
.load-link:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
}

.btn-secondary,
.hero-link {
    color: var(--blue);
    background: #ffffff;
}

.btn-secondary:hover,
.hero-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.2);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: #111827;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid #eef2f7;
}

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

.mobile-panel nav {
    display: grid;
    gap: 12px;
    padding: 14px 0;
    font-weight: 700;
}

.mobile-panel form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

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

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.54), rgba(2, 6, 23, 0.12));
}

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

.hero-copy {
    max-width: 760px;
    color: #ffffff;
}

.hero-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--blue);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.32);
}

.hero-copy h1,
.hero-copy h2 {
    margin: 18px 0 14px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 28px;
    font-size: clamp(18px, 2.4vw, 24px);
    color: #e5e7eb;
}

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

.hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.48);
    color: #ffffff;
    font-size: 28px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: translateY(-50%) scale(1.04);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.52);
    padding: 0;
}

.hero-dots button.is-active {
    background: #ffffff;
}

.section {
    padding: 56px 0;
}

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

.section-white {
    background: #ffffff;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title span {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), #fb7185);
}

.section-title h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.15;
}

.section-head p,
.page-hero p,
.category-intro p {
    color: var(--muted);
    margin: 0;
}

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

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

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

.movie-card {
    background: var(--card);
    border: 1px solid rgba(229, 231, 235, 0.92);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: var(--shadow);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111827;
}

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

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

.card-badge,
.card-duration {
    position: absolute;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 10px;
    background: rgba(37, 99, 235, 0.94);
}

.card-badge {
    top: 12px;
    left: 12px;
}

.card-duration {
    right: 12px;
    bottom: 12px;
    background: rgba(0, 0, 0, 0.72);
}

.play-mark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 42px;
    opacity: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: opacity 0.25s ease;
}

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

.card-body {
    padding: 18px;
}

.card-category {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--blue);
    font-weight: 800;
    font-size: 13px;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.25;
}

.card-body h3 a:hover,
.rank-item h3 a:hover {
    color: var(--blue);
}

.card-body p,
.rank-item p {
    color: var(--muted);
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    font-size: 14px;
}

.meta-row span {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f3f4f6;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag-row span {
    color: #1d4ed8;
    background: #dbeafe;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: stretch;
}

.movie-card-horizontal .poster-wrap {
    aspect-ratio: auto;
    min-height: 132px;
}

.movie-card-large .poster-wrap {
    aspect-ratio: 16 / 8;
}

.scroller {
    overflow-x: auto;
    padding-bottom: 10px;
}

.scroller-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 320px;
    gap: 24px;
    width: max-content;
}

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

.category-tile {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: 24px;
    color: #ffffff;
    overflow: hidden;
    position: relative;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow);
}

.category-tile h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-tile p {
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

.tile-drama {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.tile-suspense {
    background: linear-gradient(135deg, #2563eb, #0f172a);
}

.tile-action {
    background: linear-gradient(135deg, #16a34a, #06b6d4);
}

.tile-romance {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

.tile-fantasy {
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
}

.tile-family {
    background: linear-gradient(135deg, #f59e0b, #22c55e);
}

.tile-asian {
    background: linear-gradient(135deg, #dc2626, #2563eb);
}

.tile-global {
    background: linear-gradient(135deg, #111827, #4b5563);
}

.cta-band {
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    color: #ffffff;
    text-align: center;
    padding: 72px 0;
}

.cta-band h2 {
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 46px);
}

.cta-band p {
    margin: 0 0 26px;
    color: #dbeafe;
    font-size: 20px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 52px 150px 1fr;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.rank-number {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-size: 22px;
    font-weight: 900;
}

.rank-cover {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    background: #111827;
}

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

.rank-item h3 {
    margin: 0 0 8px;
    font-size: 19px;
}

.page-hero {
    padding: 70px 0 42px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #ffffff;
}

.page-hero h1 {
    margin: 14px 0 14px;
    font-size: clamp(34px, 6vw, 52px);
    line-height: 1.1;
}

.page-hero p {
    max-width: 760px;
    color: #e0f2fe;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
    margin-bottom: 18px;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 170px 170px;
    gap: 12px;
    padding: 18px;
    margin: 0 0 28px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.filter-search input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
}

.filter-panel select {
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 0 14px;
    color: #374151;
    background: #ffffff;
    outline: none;
}

[data-card].is-hidden {
    display: none;
}

.category-intro {
    padding: 34px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    margin-bottom: 26px;
}

.category-intro h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.watch-hero {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.42), transparent 38%), linear-gradient(135deg, #020617, #111827);
    color: #ffffff;
    padding: 36px 0 56px;
}

.watch-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.video-card {
    border-radius: 26px;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.watch-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-circle {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--blue);
    background: #ffffff;
    font-size: 34px;
    box-shadow: 0 18px 45px rgba(255, 255, 255, 0.28);
}

.play-text {
    font-size: 18px;
    font-weight: 900;
}

.movie-info-panel {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.movie-info-panel h1 {
    margin: 12px 0;
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.1;
}

.movie-info-panel p {
    margin: 0 0 18px;
    color: #d1d5db;
}

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

.info-list span {
    padding: 9px 12px;
    border-radius: 14px;
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.1);
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    padding: 56px 0;
}

.article-box,
.side-box {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    padding: 28px;
}

.article-box + .article-box {
    margin-top: 24px;
}

.article-box h2,
.side-box h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.article-box p {
    color: #374151;
    margin: 0;
    font-size: 17px;
}

.side-box {
    position: sticky;
    top: 92px;
}

.side-box .movie-card-horizontal {
    grid-template-columns: 132px 1fr;
    margin-bottom: 16px;
    box-shadow: none;
    border: 1px solid #eef2f7;
}

.site-footer {
    background: #111827;
    color: #d1d5db;
}

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

.footer-logo {
    font-size: 22px;
    margin-bottom: 14px;
}

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

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

.site-footer li + li {
    margin-top: 9px;
}

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

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding: 20px 0;
    color: #9ca3af;
}

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

    .nav-shell {
        justify-content: space-between;
    }

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

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

    .watch-grid,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .side-box {
        position: static;
    }
}

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

    .logo {
        font-size: 22px;
    }

    .hero-slider {
        height: 540px;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 42px;
    }

    .hero-control {
        display: none;
    }

    .section {
        padding: 42px 0;
    }

    .section-head {
        display: block;
    }

    .section-head p {
        margin-top: 8px;
    }

    .movie-grid,
    .movie-grid.two,
    .movie-grid.three,
    .category-tiles,
    .rank-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal {
        grid-template-columns: 138px 1fr;
    }

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

    .rank-item {
        grid-template-columns: 46px 112px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .card-body {
        padding: 14px;
    }

    .card-body h3,
    .rank-item h3 {
        font-size: 17px;
    }

    .watch-hero {
        padding-top: 24px;
    }

    .movie-info-panel,
    .article-box,
    .side-box,
    .category-intro {
        padding: 20px;
    }

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

@media (max-width: 520px) {
    .movie-card-horizontal {
        display: block;
    }

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

    .rank-item {
        grid-template-columns: 40px 1fr;
    }

    .rank-cover {
        display: none;
    }

    .hero-actions,
    .cta-actions {
        display: grid;
    }
}
