:root {
    --blue: #2563eb;
    --cyan: #06b6d4;
    --green: #10b981;
    --orange: #f97316;
    --red: #ef4444;
    --purple: #7c3aed;
    --dark: #0f172a;
    --muted: #64748b;
    --line: #e5e7eb;
    --soft: #f8fafc;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body.player-open {
    background: #0f172a;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
}

.logo-text {
    font-size: 21px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-link {
    padding: 9px 12px;
    color: #334155;
    font-size: 15px;
    font-weight: 650;
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue);
    background: #eff6ff;
}

.header-search {
    width: 300px;
    display: flex;
    border: 1px solid #dbeafe;
    background: #ffffff;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.header-search input {
    width: 100%;
    min-width: 0;
    padding: 10px 14px 10px 18px;
    border: 0;
    outline: none;
    color: #0f172a;
}

.header-search button {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    padding: 0 16px;
    font-weight: 700;
}

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

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    background: #0f172a;
    border-radius: 999px;
}

.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 15% 10%, rgba(14, 165, 233, 0.45), transparent 28%), radial-gradient(circle at 90% 0%, rgba(37, 99, 235, 0.5), transparent 32%), linear-gradient(135deg, #0f172a, #1d4ed8 58%, #06b6d4);
    color: #ffffff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.24));
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 620px;
    padding: 72px 24px 52px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 470px;
    gap: 44px;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #cffafe;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 700;
}

.hero h1 {
    margin: 20px 0 18px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.06;
    letter-spacing: -0.055em;
}

.hero p {
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
    max-width: 720px;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    min-height: 46px;
    padding: 12px 22px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.28);
}

.btn-light {
    color: #0f172a;
    background: #ffffff;
}

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

.hero-search {
    margin-top: 34px;
    max-width: 620px;
    display: flex;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.28);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    padding: 0 16px;
    color: #0f172a;
    background: transparent;
}

.hero-search button {
    border-radius: 15px;
}

.hero-slider {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
    background: rgba(255, 255, 255, 0.1);
}

.hero-slide {
    display: none;
    position: relative;
    min-height: 560px;
}

.hero-slide.active {
    display: block;
}

.hero-slide img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.18), transparent);
}

.hero-slide-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 32px;
}

.hero-slide-content h2 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.2;
}

.hero-slide-content p {
    color: #dbeafe;
    font-size: 15px;
    margin-bottom: 18px;
}

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

.hero-tags span,
.card-tags span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: #cffafe;
    background: rgba(255, 255, 255, 0.18);
}

.hero-dots {
    position: absolute;
    z-index: 3;
    right: 24px;
    top: 24px;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 46px 24px;
}

.full-section {
    padding: 54px 0;
    background: linear-gradient(90deg, #eff6ff, #ecfeff);
}

.full-section .main {
    padding-top: 0;
    padding-bottom: 0;
}

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

.section-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-link {
    color: var(--blue);
    font-weight: 800;
    white-space: nowrap;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

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

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    color: #ffffff;
    background: var(--red);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    color: var(--blue);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.card-content {
    padding: 14px;
}

.card-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 0.2s ease;
}

.card-title:hover {
    color: var(--blue);
}

.card-content p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 40px;
    margin: 8px 0 10px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: #64748b;
    font-size: 12px;
}

.card-tags span {
    color: var(--blue);
    background: #eff6ff;
}

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

.category-card {
    min-height: 180px;
    padding: 26px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 20px 48px rgba(37, 99, 235, 0.22);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, var(--purple), #ec4899);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.category-card:nth-child(4n) {
    background: linear-gradient(135deg, var(--green), #14b8a6);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 58px rgba(15, 23, 42, 0.18);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 12px;
    font-size: 25px;
}

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

.category-card span {
    display: inline-flex;
    padding: 8px 14px;
    color: #0f172a;
    background: #ffffff;
    border-radius: 999px;
    font-weight: 800;
}

.rank-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 46px 90px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.compact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.compact-card img {
    width: 90px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
}

.compact-card strong {
    display: -webkit-box;
    overflow: hidden;
    color: #0f172a;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.compact-card small {
    display: block;
    margin-top: 5px;
    color: #64748b;
}

.rank-number {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    border-radius: 12px;
    font-weight: 900;
}

.page-hero {
    color: #ffffff;
    background: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.22), transparent 24%), linear-gradient(135deg, var(--blue), var(--cyan));
}

.page-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px;
}

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

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

.breadcrumb {
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #bfdbfe;
    font-size: 14px;
}

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

.search-panel {
    margin-bottom: 28px;
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 12px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

.search-panel input,
.search-panel select {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 13px 16px;
    outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px #dbeafe;
}

.no-results {
    display: none;
    padding: 36px;
    text-align: center;
    color: #64748b;
    background: #ffffff;
    border-radius: 20px;
}

.detail-hero {
    padding: 48px 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #1d4ed8 62%, #06b6d4);
}

.detail-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

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

.detail-info h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.detail-info p {
    margin: 0 0 18px;
    color: #dbeafe;
    font-size: 18px;
}

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

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.14);
}

.detail-tags span {
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.14);
}

.detail-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 38px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
}

.content-panel {
    padding: 26px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
}

.content-panel h2,
.content-panel h3 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: 24px;
}

.content-panel p {
    color: #334155;
    margin: 0;
}

.player-panel {
    overflow: hidden;
    border-radius: 26px;
    background: #020617;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.26);
    margin-bottom: 24px;
}

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

.player-box video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background-position: center;
    background-size: cover;
}

.player-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.26));
}

.player-cover span {
    position: relative;
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--blue);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
    font-size: 34px;
    transition: transform 0.2s ease;
}

.player-cover:hover span {
    transform: scale(1.08);
}

.player-box.is-playing .player-cover {
    display: none;
}

.player-caption {
    padding: 18px 22px;
    color: #dbeafe;
    background: linear-gradient(90deg, #0f172a, #111827);
}

.player-caption strong {
    display: block;
    color: #ffffff;
    font-size: 18px;
}

.sidebar {
    align-self: start;
    position: sticky;
    top: 92px;
}

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

.site-footer {
    color: #e5e7eb;
    background: linear-gradient(135deg, #111827, #0f172a);
    margin-top: 60px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 34px;
}

.footer-logo .logo-text {
    color: #ffffff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.footer-brand p {
    max-width: 460px;
    margin: 16px 0 0;
    color: #94a3b8;
}

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

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: #94a3b8;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 24px 26px;
    color: #94a3b8;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

@media (max-width: 1100px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .site-nav {
        order: 3;
        flex-basis: 100%;
        overflow-x: auto;
        padding-top: 4px;
    }

    .header-search {
        margin-left: auto;
    }

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

    .hero-slider {
        max-width: 560px;
    }

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

    .category-panel,
    .rank-layout,
    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .header-inner {
        padding: 12px 16px;
    }

    .mobile-menu-button {
        display: inline-flex;
        margin-left: auto;
    }

    .site-nav {
        display: none;
        order: 4;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0;
    }

    .site-nav.open {
        display: flex;
    }

    .nav-link {
        padding: 12px;
    }

    .header-search {
        order: 3;
        flex-basis: 100%;
        width: 100%;
    }

    .hero-inner {
        min-height: auto;
        padding: 44px 16px 32px;
        gap: 28px;
    }

    .hero-search {
        flex-direction: column;
        border-radius: 20px;
    }

    .hero-search input {
        min-height: 46px;
    }

    .hero-slide,
    .hero-slide img {
        min-height: 420px;
        height: 420px;
    }

    .hero-slide-content {
        padding: 22px;
    }

    .main,
    .detail-layout {
        padding-left: 16px;
        padding-right: 16px;
    }

    .page-hero-inner,
    .detail-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

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

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

    .category-panel,
    .rank-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .compact-card {
        grid-template-columns: 40px 76px minmax(0, 1fr);
    }

    .compact-card img {
        width: 76px;
        height: 56px;
    }

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

    .detail-hero-inner {
        gap: 22px;
    }

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