:root {
    --sky: #0284c7;
    --sky-dark: #0369a1;
    --orange: #f97316;
    --dark: #0f172a;
    --muted: #64748b;
    --soft: #f8fafc;
    --line: #e2e8f0;
    --card: #ffffff;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f8fafc 100%);
    color: #0f172a;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

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

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    font-weight: 900;
    font-size: 22px;
    white-space: nowrap;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), var(--orange));
    box-shadow: 0 12px 24px rgba(2, 132, 199, 0.26);
    font-size: 13px;
}

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

.desktop-nav a,
.mobile-panel nav a,
.category-nav-row a {
    border-radius: 999px;
    padding: 9px 14px;
    color: #334155;
    font-weight: 700;
    transition: all 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel nav a:hover,
.category-nav-row a:hover,
.category-nav-row a.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), var(--orange));
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.18);
}

.header-search {
    display: flex;
    gap: 8px;
    align-items: center;
}

.header-search input,
.mobile-panel input,
.quick-search-panel input,
.filter-panel input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    padding: 12px 16px;
    outline: none;
    color: #0f172a;
    transition: all 0.2s ease;
}

.header-search input:focus,
.mobile-panel input:focus,
.quick-search-panel input:focus,
.filter-panel input:focus {
    border-color: var(--sky);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.header-search button,
.mobile-panel button,
.quick-search-panel button {
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    color: #ffffff;
    background: var(--sky);
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.header-search button:hover,
.mobile-panel button:hover,
.quick-search-panel button:hover {
    background: var(--sky-dark);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #f1f5f9;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

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

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    padding: 16px;
    background: rgba(255, 255, 255, 0.98);
}

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

.mobile-panel form {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

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

.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #020617;
}

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

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

.hero-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.58) 42%, rgba(2, 6, 23, 0.15) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.1));
}

.hero-content {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    padding-top: 40px;
}

.hero-copy {
    width: min(720px, 100%);
    color: #ffffff;
}

.hero-kicker,
.detail-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.hero-kicker span,
.detail-kicker span {
    border-radius: 999px;
    padding: 7px 14px;
    color: #ffffff;
    background: var(--orange);
    font-weight: 800;
}

.hero-kicker strong,
.detail-kicker strong {
    color: #fde68a;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.hero-copy p {
    margin: 0 0 22px;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

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

.primary-button,
.ghost-button,
.text-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: all 0.2s ease;
}

.primary-button {
    padding: 13px 24px;
    color: #ffffff;
    background: var(--sky);
    box-shadow: 0 18px 34px rgba(2, 132, 199, 0.26);
}

.primary-button:hover {
    background: var(--sky-dark);
    transform: translateY(-2px) scale(1.02);
}

.ghost-button {
    padding: 13px 24px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    border: none;
    font-size: 34px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: translateY(-50%) scale(1.06);
}

.hero-prev {
    left: 22px;
    transform: translateY(-50%);
}

.hero-next {
    right: 22px;
    transform: translateY(-50%);
}

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

.hero-dot {
    width: 18px;
    height: 5px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.quick-search-panel,
.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
    gap: 24px;
    align-items: center;
    margin-top: 42px;
    margin-bottom: 34px;
    padding: 28px;
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.quick-search-panel h2,
.filter-panel h2 {
    margin: 0 0 8px;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 950;
    letter-spacing: -0.03em;
}

.quick-search-panel p,
.filter-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.quick-search-panel form {
    display: flex;
    gap: 10px;
}

.category-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 56px;
}

.category-tile {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    border-radius: 26px;
    background: #0f172a;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    isolation: isolate;
}

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

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile span,
.category-tile p {
    position: relative;
    z-index: 1;
    display: block;
    color: #ffffff;
}

.category-tile span {
    padding: 22px 20px 6px;
    font-size: 22px;
    font-weight: 950;
}

.category-tile p {
    padding: 0 20px 20px;
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.86);
}

.main-flow {
    display: grid;
    gap: 64px;
    padding-bottom: 80px;
}

.content-section {
    padding: 34px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(226, 232, 240, 0.78);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.content-section:nth-child(even) {
    background: linear-gradient(135deg, rgba(240, 249, 255, 0.92), rgba(255, 247, 237, 0.9));
}

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

.section-head h2 {
    margin: 0 0 8px;
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 950;
    letter-spacing: -0.03em;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.section-link,
.text-button {
    color: var(--sky);
    font-weight: 900;
}

.section-link:hover,
.text-button:hover {
    color: var(--orange);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 46px rgba(15, 23, 42, 0.14);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}

.movie-card-large .card-cover {
    aspect-ratio: 16 / 9;
}

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

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

.play-dot,
.rank-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 950;
}

.play-dot {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    background: rgba(2, 132, 199, 0.92);
    box-shadow: 0 12px 22px rgba(2, 132, 199, 0.28);
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: linear-gradient(135deg, var(--orange), var(--sky));
}

.card-body {
    padding: 18px;
}

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

.card-body h3 {
    margin: 9px 0 8px;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.3;
}

.card-body h3 a:hover {
    color: var(--sky);
}

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

.card-body .tag-row span {
    background: #f1f5f9;
    color: #475569;
}

.movie-card-compact {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: stretch;
}

.movie-card-compact .card-cover {
    height: 100%;
    aspect-ratio: auto;
}

.movie-card-compact .card-body p {
    min-height: auto;
}

.page-hero {
    color: #ffffff;
    padding: 72px 0;
    background: linear-gradient(135deg, #0284c7, #f97316);
}

.gradient-hero {
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.28), transparent 32%), linear-gradient(135deg, #0369a1, #f97316);
}

.category-hero {
    background: radial-gradient(circle at 82% 15%, rgba(255, 255, 255, 0.24), transparent 30%), linear-gradient(135deg, #0f172a, #0284c7 52%, #f97316);
}

.page-hero p {
    margin: 0 0 10px;
    font-weight: 900;
    color: #fde68a;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.page-hero span {
    display: block;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

.category-nav-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    margin-bottom: 22px;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 50px 0 80px;
}

.overview-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.overview-cover {
    overflow: hidden;
    border-radius: 22px;
    background: #0f172a;
}

.overview-cover img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
}

.overview-card h2 {
    margin: 2px 0 8px;
    font-size: 26px;
    font-weight: 950;
}

.overview-card p {
    margin: 0 0 12px;
    color: #475569;
    line-height: 1.7;
}

.overview-card ul {
    display: grid;
    gap: 7px;
    padding: 0;
    margin: 0 0 14px;
    list-style: none;
}

.overview-card li a {
    color: #334155;
    font-weight: 700;
}

.overview-card li a:hover {
    color: var(--sky);
}

.search-page-panel {
    margin-top: 40px;
}

.detail-hero {
    padding: 56px 0;
    color: #ffffff;
    background: radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.35), transparent 28%), linear-gradient(135deg, #020617, #0f172a 52%, #0369a1);
}

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

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
    background: #020617;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
}

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

.breadcrumb em {
    font-style: normal;
}

.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.detail-one-line {
    max-width: 800px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.76);
}

.detail-tags {
    margin-bottom: 28px;
}

.player-section {
    padding: 54px 0 20px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #020617;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: none;
    color: #ffffff;
    background: radial-gradient(circle at 50% 42%, rgba(2, 132, 199, 0.38), rgba(2, 6, 23, 0.62) 46%, rgba(2, 6, 23, 0.82));
    cursor: pointer;
}

.player-overlay span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sky), var(--orange));
    box-shadow: 0 22px 42px rgba(2, 132, 199, 0.34);
    font-size: 30px;
}

.player-overlay strong {
    font-size: 22px;
}

.player-shell.is-playing .player-overlay {
    display: none;
}

.detail-article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    padding: 36px 0;
}

.detail-article article,
.detail-article aside {
    padding: 30px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.detail-article h2 {
    margin: 0 0 16px;
    font-size: 26px;
    font-weight: 950;
}

.detail-article p {
    margin: 0 0 24px;
    color: #334155;
    line-height: 2;
    font-size: 16px;
}

.detail-article dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0;
}

.detail-article dt {
    color: #64748b;
    font-weight: 800;
}

.detail-article dd {
    margin: 0;
    color: #0f172a;
    font-weight: 700;
}

.site-footer {
    margin-top: 70px;
    padding-top: 50px;
    color: #cbd5e1;
    background: #020617;
}

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

.footer-brand {
    color: #ffffff;
    margin-bottom: 12px;
}

.site-footer p {
    margin: 0;
    line-height: 1.8;
    color: #94a3b8;
}

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

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

.footer-links a {
    border-radius: 999px;
    padding: 8px 12px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
    color: #ffffff;
    background: var(--sky);
}

.footer-bottom {
    margin-top: 38px;
    padding: 18px 0;
    text-align: center;
    color: #94a3b8;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.is-hidden {
    display: none !important;
}

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

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

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

    .ranking-grid,
    .overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .hero-carousel,
    .hero-content {
        min-height: 560px;
    }

    .hero-arrow {
        display: none;
    }

    .quick-search-panel,
    .filter-panel,
    .detail-layout,
    .detail-article,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .quick-search-panel form {
        flex-direction: column;
    }

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

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

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

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

    .brand {
        font-size: 19px;
    }

    .hero-copy h1,
    .detail-copy h1 {
        font-size: 34px;
    }

    .hero-copy p,
    .detail-one-line {
        font-size: 15px;
    }

    .hero-content {
        align-items: flex-end;
        padding-bottom: 92px;
    }

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

    .content-section,
    .quick-search-panel,
    .filter-panel,
    .detail-article article,
    .detail-article aside {
        padding: 22px;
        border-radius: 24px;
    }

    .movie-card-compact {
        grid-template-columns: 1fr;
    }

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