:root {
    --pink: #ec4899;
    --pink-dark: #db2777;
    --purple: #8b5cf6;
    --blue: #60a5fa;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #fff7fb;
    --shadow: 0 18px 45px rgba(31, 41, 55, 0.12);
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #fff1f7 0%, #f5efff 48%, #eef7ff 100%);
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #f472b6 0%, #c084fc 50%, #93c5fd 100%);
    box-shadow: 0 12px 30px rgba(147, 51, 234, 0.22);
}

.site-header-inner {
    max-width: 1200px;
    height: 76px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-icon,
.footer-logo span {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.nav-link {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fff;
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 18px);
    right: 0;
    width: 220px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #374151;
    font-weight: 650;
}

.dropdown-link:hover {
    background: #fdf2f8;
    color: var(--pink-dark);
}

.top-search,
.mobile-search,
.hero-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search input,
.mobile-search input,
.hero-search-form input,
.filter-field input,
.filter-field select {
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 10px 14px;
    outline: none;
    color: #374151;
}

.top-search input {
    width: 220px;
}

.top-search button,
.mobile-search button,
.hero-search-form button {
    border: 0;
    border-radius: 999px;
    padding: 10px 15px;
    background: #fff;
    color: var(--pink-dark);
    font-weight: 800;
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 18px;
}

.mobile-nav-link,
.mobile-sub-link {
    display: block;
    color: #fff;
    padding: 9px 0;
    font-weight: 700;
}

.mobile-sub-title {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

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

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

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

.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(15, 23, 42, 0.82), rgba(31, 41, 55, 0.62), rgba(15, 23, 42, 0.18));
}

.hero-content {
    position: absolute;
    inset: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #fff;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: clamp(42px, 8vw, 76px);
    font-weight: 950;
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2.3vw, 22px);
    line-height: 1.75;
}

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

.hero-tags span,
.detail-tags a {
    border-radius: 999px;
    padding: 7px 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.hero-actions,
.section-heading,
.detail-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    background: linear-gradient(90deg, var(--pink), var(--purple));
    color: #fff;
    box-shadow: 0 14px 28px rgba(236, 72, 153, 0.28);
}

.ghost-button {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.movie-card:hover,
.category-tile:hover,
.category-overview-card:hover,
.ranking-row:hover {
    transform: translateY(-3px);
}

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

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 54px;
    background: #fff;
}

.section-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 20px;
}

.quick-search-section {
    padding-top: 38px;
    padding-bottom: 28px;
}

.quick-search-card {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 420px);
    gap: 24px;
    align-items: center;
    padding: 30px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.quick-search-card h2,
.section-heading h2,
.page-hero h1,
.detail-title-block h1 {
    margin: 0;
    font-weight: 950;
    color: var(--ink);
    letter-spacing: -0.04em;
}

.quick-search-card h2,
.section-heading h2 {
    font-size: clamp(28px, 4vw, 38px);
}

.quick-search-card p,
.page-hero p {
    color: var(--muted);
    line-height: 1.8;
}

.hero-search-form input {
    flex: 1;
    border-color: var(--line);
}

.hero-search-form button {
    color: #fff;
    background: linear-gradient(90deg, var(--pink), var(--purple));
}

.section-heading {
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-heading a {
    color: var(--pink-dark);
    font-weight: 900;
}

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

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

.movie-card,
.category-tile,
.category-overview-card,
.ranking-row,
.detail-card,
.sidebar-card,
.player-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(31, 41, 55, 0.09);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover,
.category-tile:hover,
.category-overview-card:hover,
.ranking-row:hover {
    box-shadow: var(--shadow);
}

.movie-cover {
    position: relative;
    height: 270px;
    overflow: hidden;
    background: #111827;
}

.movie-cover img,
.category-covers img,
.category-overview-images img,
.compact-cover img,
.ranking-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.duration-badge,
.rank-badge {
    position: absolute;
    border-radius: 999px;
    color: #fff;
    background: rgba(17, 24, 39, 0.76);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 800;
}

.duration-badge {
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
}

.rank-badge {
    left: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, var(--pink));
}

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

.movie-card-topline,
.movie-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.movie-card-topline span:first-child {
    color: var(--pink-dark);
    font-weight: 900;
}

.movie-card h3,
.compact-card h3,
.ranking-row h2 {
    margin: 8px 0;
    color: #111827;
    font-weight: 900;
    line-height: 1.35;
}

.movie-card p,
.compact-card p,
.ranking-row p {
    color: var(--muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.soft-band {
    background: linear-gradient(90deg, rgba(252, 231, 243, 0.85), rgba(237, 233, 254, 0.85), rgba(219, 234, 254, 0.85));
}

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

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

.horizontal-cover {
    height: 100%;
    min-height: 160px;
}

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

.category-tile,
.category-overview-card {
    padding: 16px;
}

.category-covers,
.category-overview-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 14px;
}

.category-covers img,
.category-overview-images img {
    aspect-ratio: 3 / 4;
    border-radius: 14px;
}

.category-tile h3,
.category-overview-card h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 950;
}

.category-tile p,
.category-overview-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 20px;
    align-items: center;
}

.category-overview-images {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 0;
}

.category-overview-card span {
    display: inline-flex;
    margin-top: 14px;
    color: var(--pink-dark);
    font-weight: 900;
}

.page-shell {
    min-height: 70vh;
}

.page-hero {
    max-width: 1200px;
    margin: 38px auto 0;
    padding: 58px 20px;
}

.page-hero-gradient,
.page-hero-soft {
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.page-hero-gradient {
    color: #fff;
    background: linear-gradient(115deg, #ec4899, #8b5cf6 55%, #60a5fa);
}

.page-hero-gradient h1,
.page-hero-gradient p {
    color: #fff;
}

.page-hero-soft {
    background: rgba(255, 255, 255, 0.9);
}

.page-hero h1 {
    font-size: clamp(38px, 6vw, 64px);
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 220px 180px;
    gap: 14px;
    margin-bottom: 30px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 28px rgba(31, 41, 55, 0.08);
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
}

.filter-field input,
.filter-field select {
    width: 100%;
    border-color: var(--line);
    border-radius: 16px;
}

.empty-state {
    padding: 44px;
    text-align: center;
    color: var(--muted);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
}

.ranking-top {
    margin-bottom: 30px;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 54px 88px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
}

.ranking-row img {
    width: 88px;
    height: 118px;
    border-radius: 14px;
}

.ranking-number {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 950;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.detail-page {
    background: #f9fafb;
}

.detail-hero {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    color: #fff;
}

.detail-bg,
.detail-hero-mask {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.detail-bg {
    object-fit: cover;
    filter: blur(8px) scale(1.05);
}

.detail-hero-mask {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(31, 41, 55, 0.68), rgba(15, 23, 42, 0.35));
}

.detail-hero-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 34px 20px 60px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    margin-bottom: 24px;
}

.detail-breadcrumb,
.detail-breadcrumb a {
    color: rgba(255, 255, 255, 0.78);
}

.detail-title-block {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: end;
}

.detail-poster {
    width: 220px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.detail-title-block h1 {
    color: #fff;
    font-size: clamp(38px, 7vw, 66px);
}

.detail-title-block p {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.8;
    font-size: 18px;
}

.detail-meta-line {
    margin: 18px 0 26px;
}

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

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

.player-card,
.detail-card,
.sidebar-card {
    margin-bottom: 22px;
}

.player-shell {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
}

.player-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.player-start {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 92px;
    height: 92px;
    border: 0;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: #fff;
    font-size: 34px;
    box-shadow: 0 18px 42px rgba(236, 72, 153, 0.36);
    cursor: pointer;
    z-index: 4;
}

.player-start.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-start span {
    transform: translateX(3px);
}

.player-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 16px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 5;
}

.player-shell:hover .player-controls,
.player-shell.is-playing .player-controls {
    opacity: 1;
}

.player-controls button {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.player-message {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.82);
    text-align: center;
    padding: 24px;
    z-index: 6;
}

.detail-card,
.sidebar-card {
    padding: 26px;
}

.detail-card h2,
.sidebar-card h2 {
    margin: 0 0 18px;
    font-size: 24px;
    font-weight: 950;
}

.detail-card p {
    color: #374151;
    line-height: 1.9;
    font-size: 16px;
}

.lead-text {
    color: #111827;
    font-weight: 750;
}

.detail-tags a {
    color: var(--pink-dark);
    background: #fdf2f8;
}

.detail-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px 14px;
    margin: 0;
}

.sidebar-card dt {
    color: var(--muted);
}

.sidebar-card dd {
    margin: 0;
    font-weight: 800;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 94px 1fr;
    gap: 12px;
    align-items: center;
}

.compact-cover {
    position: relative;
    width: 94px;
    height: 128px;
    overflow: hidden;
    border-radius: 14px;
    background: #111827;
}

.compact-card h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.compact-card p {
    margin: 0 0 6px;
    font-size: 13px;
}

.compact-card span {
    color: var(--muted);
    font-size: 12px;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937 55%, #111827);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 44px 20px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 950;
    font-size: 20px;
    margin-bottom: 12px;
}

.footer-brand p {
    max-width: 460px;
    line-height: 1.8;
    color: #9ca3af;
}

.footer-links h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.footer-links div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
}

.footer-links a {
    color: #d1d5db;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 20px;
    text-align: center;
    color: #9ca3af;
}

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

    .mobile-toggle {
        display: block;
        margin-left: auto;
    }

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

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

    .horizontal-grid,
    .category-grid,
    .category-overview-grid,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .site-header-inner {
        height: 66px;
    }

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

    .hero-slider {
        height: 620px;
    }

    .hero-content {
        justify-content: flex-end;
        padding-bottom: 80px;
    }

    .quick-search-card,
    .filter-panel,
    .detail-title-block,
    .footer-inner,
    .category-overview-card,
    .movie-card-horizontal,
    .ranking-row {
        grid-template-columns: 1fr;
    }

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

    .movie-cover {
        height: 230px;
    }

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

    .section-wrap {
        padding: 42px 16px;
    }

    .page-hero {
        margin: 22px 16px 0;
        padding: 42px 18px;
    }

    .detail-poster {
        width: 170px;
    }

    .ranking-row img {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .movie-grid,
    .movie-grid-large,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .movie-cover {
        height: 320px;
    }

    .hero-content h1,
    .detail-title-block h1 {
        font-size: 38px;
    }
}
