:root {
    --twilight-950: #3b0764;
    --twilight-900: #581c87;
    --twilight-800: #6b21a8;
    --twilight-700: #7e22ce;
    --twilight-600: #9333ea;
    --twilight-400: #c084fc;
    --twilight-300: #d8b4fe;
    --dusk-600: #c026d3;
    --dusk-400: #e879f9;
    --sunset-400: #fb923c;
    --sunset-300: #fdba74;
    --white-90: rgba(255, 255, 255, 0.9);
    --white-80: rgba(255, 255, 255, 0.8);
    --white-70: rgba(255, 255, 255, 0.7);
    --white-60: rgba(255, 255, 255, 0.6);
    --white-40: rgba(255, 255, 255, 0.4);
    --white-20: rgba(255, 255, 255, 0.2);
    --white-10: rgba(255, 255, 255, 0.1);
    --black-45: rgba(0, 0, 0, 0.45);
    --shadow-soft: 0 24px 60px rgba(12, 3, 28, 0.36);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #ffffff;
    background:
        radial-gradient(circle at 10% 0%, rgba(192, 132, 252, 0.28), transparent 32rem),
        radial-gradient(circle at 92% 10%, rgba(251, 146, 60, 0.16), transparent 30rem),
        linear-gradient(135deg, #3b0764 0%, #581c87 46%, #4a044e 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 82%);
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(59, 7, 100, 0.62);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--twilight-600), var(--dusk-600));
    box-shadow: 0 14px 32px rgba(147, 51, 234, 0.28);
}

.logo-text,
.gradient-text {
    color: transparent;
    background: linear-gradient(135deg, #f5d0fe, #c084fc 45%, #fdba74);
    -webkit-background-clip: text;
    background-clip: text;
}

.logo-text {
    font-size: 22px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

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

.nav-link {
    font-size: 14px;
    font-weight: 650;
    color: var(--white-80);
    transition: color 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--twilight-300);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.top-search {
    display: flex;
    align-items: center;
    width: 268px;
    border: 1px solid var(--white-20);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.top-search input,
.mobile-panel input,
.inline-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
}

.top-search input {
    padding: 10px 12px;
}

.top-search input::placeholder,
.mobile-panel input::placeholder,
.inline-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.top-search button,
.mobile-panel button,
.inline-search button {
    border: 0;
    color: #ffffff;
    background: rgba(147, 51, 234, 0.72);
    transition: background 180ms ease;
}

.top-search button {
    align-self: stretch;
    padding: 0 14px;
}

.top-search button:hover,
.mobile-panel button:hover,
.inline-search button:hover {
    background: rgba(192, 132, 252, 0.84);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--white-20);
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 22px;
    border-top: 1px solid var(--white-10);
}

.mobile-panel.open {
    display: grid;
    gap: 14px;
}

.mobile-panel form {
    display: flex;
    border: 1px solid var(--white-20);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-panel input {
    padding: 11px 12px;
}

.mobile-panel button {
    padding: 0 16px;
}

.mobile-panel a {
    color: var(--white-80);
    font-weight: 650;
}

.main-spaced {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 124px 0 74px;
}

.hero {
    position: relative;
    min-height: 82vh;
    margin-top: -1px;
    overflow: hidden;
    background: var(--twilight-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 700ms ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(59, 7, 100, 1) 0%, rgba(59, 7, 100, 0.78) 36%, rgba(59, 7, 100, 0.12) 100%),
        linear-gradient(to right, rgba(24, 4, 44, 0.88), rgba(24, 4, 44, 0.2) 62%, rgba(24, 4, 44, 0.82));
}

.hero-content {
    position: relative;
    z-index: 3;
    width: min(1180px, calc(100% - 32px));
    min-height: 82vh;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    padding: 134px 0 92px;
}

.hero-copy {
    width: min(680px, 100%);
}

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

.hero-kicker span,
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 7px 13px;
    color: #ffffff;
    background: rgba(147, 51, 234, 0.72);
    backdrop-filter: blur(10px);
}

.hero-title {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.06em;
    text-shadow: 0 0 40px rgba(216, 180, 254, 0.42);
}

.hero-copy p {
    width: min(660px, 100%);
    margin: 0 0 28px;
    color: var(--white-90);
    font-size: clamp(17px, 2.2vw, 22px);
    line-height: 1.68;
}

.hero-actions,
.section-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 13px;
    padding: 0 18px;
    font-weight: 750;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--twilight-600), var(--dusk-600));
    box-shadow: 0 18px 40px rgba(147, 51, 234, 0.28);
}

.btn-secondary {
    border: 1px solid var(--white-20);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.btn-ghost {
    color: var(--twilight-300);
    background: transparent;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
    transform: translateY(-2px);
}

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

.hero-dot {
    width: 32px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    transition: width 180ms ease, background 180ms ease;
}

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

.home-content {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0 80px;
}

.section-block {
    margin-bottom: 70px;
}

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

.section-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-subtitle {
    margin: 8px 0 0;
    color: var(--white-60);
    line-height: 1.7;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 18px 40px rgba(15, 2, 32, 0.22);
    backdrop-filter: blur(14px);
    transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(216, 180, 254, 0.48);
    background: rgba(255, 255, 255, 0.13);
}

.poster-link {
    display: block;
}

.poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent 56%);
    transition: opacity 220ms ease;
}

.movie-card:hover .poster-wrap::after {
    opacity: 1;
}

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

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

.poster-badge,
.poster-rating {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 750;
    backdrop-filter: blur(8px);
}

.poster-badge {
    top: 10px;
    left: 10px;
    background: rgba(147, 51, 234, 0.86);
}

.poster-rating {
    right: 10px;
    bottom: 10px;
    color: var(--sunset-300);
    background: rgba(0, 0, 0, 0.52);
}

.card-body {
    padding: 14px;
}

.card-body h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.38;
    letter-spacing: -0.02em;
}

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

.card-body p {
    min-height: 44px;
    margin: 8px 0 0;
    color: var(--white-60);
    font-size: 13px;
    line-height: 1.65;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--white-50, rgba(255, 255, 255, 0.5));
    font-size: 12px;
}

.movie-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.32);
}

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

.tag-row span {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 3px 8px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 12px;
    background: rgba(255, 255, 255, 0.06);
}

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

.category-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 22px;
    background:
        radial-gradient(circle at 20% 0%, rgba(253, 186, 116, 0.18), transparent 18rem),
        rgba(255, 255, 255, 0.09);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    transition: transform 200ms ease, border-color 200ms ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(216, 180, 254, 0.48);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 22px;
}

.category-card p {
    margin: 0;
    color: var(--white-60);
    line-height: 1.72;
}

.category-card strong {
    color: var(--twilight-300);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 58px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.09);
    transition: transform 180ms ease, background 180ms ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.14);
}

.rank-number {
    color: transparent;
    background: linear-gradient(135deg, #f5d0fe, #fdba74);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.08em;
}

.rank-item img {
    width: 58px;
    height: 78px;
    object-fit: cover;
    border-radius: 10px;
}

.rank-body {
    min-width: 0;
}

.rank-body strong,
.rank-body em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-body strong {
    color: #ffffff;
    font-size: 16px;
}

.rank-body em {
    margin-top: 5px;
    color: var(--white-60);
    font-style: normal;
    font-size: 13px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    padding: 38px;
    margin-bottom: 34px;
    background:
        radial-gradient(circle at 12% 0%, rgba(253, 186, 116, 0.16), transparent 22rem),
        linear-gradient(135deg, rgba(147, 51, 234, 0.38), rgba(255, 255, 255, 0.08));
    box-shadow: var(--shadow-soft);
}

.page-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.page-hero p {
    width: min(760px, 100%);
    margin: 14px 0 0;
    color: var(--white-70);
    line-height: 1.78;
}

.inline-search {
    display: flex;
    width: min(520px, 100%);
    margin-top: 24px;
    border: 1px solid var(--white-20);
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.inline-search input {
    padding: 13px 15px;
}

.inline-search button {
    padding: 0 18px;
    border: 0;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 0.86fr);
    gap: 28px;
    align-items: start;
}

.player-shell {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    background: #12071f;
    box-shadow: var(--shadow-soft);
}

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #08030f;
}

.player-frame video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: rgba(6, 2, 12, 0.35);
    transition: opacity 220ms ease, visibility 220ms ease;
}

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

.player-overlay img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.68;
}

.play-button {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--twilight-600), var(--dusk-600));
    box-shadow: 0 18px 50px rgba(147, 51, 234, 0.46);
    font-size: 34px;
    transform: translateX(2px);
}

.player-caption {
    padding: 22px 24px 24px;
}

.player-caption h1 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.player-caption p {
    margin: 0;
    color: var(--white-70);
    line-height: 1.78;
}

.info-card,
.prose-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 24px;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.info-card h2,
.prose-card h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 22px;
}

.info-list {
    display: grid;
    gap: 13px;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    color: var(--white-80);
}

.info-list dt {
    color: var(--white-40);
}

.info-list dd {
    margin: 0;
}

.prose-card {
    margin-top: 28px;
}

.prose-card p {
    margin: 0 0 18px;
    color: var(--white-70);
    line-height: 1.88;
}

.prose-card p:last-child {
    margin-bottom: 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--white-60);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--twilight-300);
}

.search-results-note {
    margin: 20px 0 0;
    color: var(--white-60);
}

.site-footer {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(59, 7, 100, 0.5);
    backdrop-filter: blur(12px);
}

.footer-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(59, 7, 100, 0.68));
    pointer-events: none;
}

.footer-inner {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    grid-template-columns: 1.35fr repeat(3, 1fr);
    gap: 34px;
}

.footer-brand p,
.site-footer li,
.footer-bottom {
    color: var(--white-60);
    line-height: 1.7;
}

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

.site-footer ul {
    display: grid;
    gap: 9px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer a:hover {
    color: var(--twilight-300);
}

.footer-bottom {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

.empty-state {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 28px;
    color: var(--white-70);
    background: rgba(255, 255, 255, 0.08);
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fade-in 560ms ease both;
}

@media (max-width: 1120px) {
    .desktop-nav {
        gap: 12px;
    }

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

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

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

    .header-inner {
        height: 68px;
    }

    .mobile-toggle {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
    }

    .hero,
    .hero-content {
        min-height: 76vh;
    }

    .hero-content {
        padding-top: 110px;
        padding-bottom: 82px;
    }

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

    .detail-layout {
        gap: 22px;
    }
}

@media (max-width: 720px) {
    .logo-text {
        font-size: 19px;
    }

    .home-content,
    .main-spaced,
    .header-inner,
    .mobile-panel,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 24px, 1180px);
    }

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

    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .page-hero {
        padding: 28px 22px;
        border-radius: 22px;
    }

    .rank-item {
        grid-template-columns: 46px 54px minmax(0, 1fr);
    }

    .player-caption,
    .info-card,
    .prose-card {
        padding: 20px;
    }

    .play-button {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}

@media (max-width: 420px) {
    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .logo-text {
        font-size: 17px;
    }

    .card-body h3 {
        font-size: 15px;
    }

    .card-body p {
        display: none;
    }

    .tag-row {
        display: none;
    }
}
