:root {
    --sky: #0284c7;
    --sky-dark: #0369a1;
    --pink: #db2777;
    --pink-soft: #fce7f3;
    --amber: #f59e0b;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f8fafc;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --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: var(--ink);
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 45%, #fdf2f8 100%);
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.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.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.header-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

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

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: #374151;
    font-weight: 650;
}

.nav-link {
    position: relative;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--sky);
}

.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--sky), var(--pink));
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search:focus-within,
.mobile-search:focus-within {
    border-color: var(--sky);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.header-search input,
.mobile-search input {
    width: 240px;
    border: 0;
    outline: 0;
    padding: 11px 14px;
    background: transparent;
}

.header-search button,
.mobile-search button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), var(--pink));
    padding: 11px 18px;
    font-weight: 700;
}

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

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

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-nav.is-open {
    display: grid;
    gap: 12px;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    font-weight: 700;
    color: #334155;
}

.mobile-link.is-active {
    color: var(--sky);
    background: #e0f2fe;
}

.hero {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #38bdf8, #f9a8d4, #fde68a);
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    transition: opacity 0.65s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.34), transparent 28%), linear-gradient(90deg, rgba(15, 23, 42, 0.38), rgba(15, 23, 42, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 72px 0;
}

.hero-copy {
    max-width: 640px;
    color: #ffffff;
    text-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--sky-dark);
    padding: 8px 15px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.02em;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.hero h1 {
    margin: 20px 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero p {
    margin: 0;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.92);
}

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

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

.primary-button {
    color: var(--sky-dark);
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
}

.primary-button.light {
    color: var(--sky-dark);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.22);
}

.hero-poster {
    width: min(34vw, 370px);
    min-width: 270px;
    aspect-ratio: 4 / 3;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.36);
    transform: rotate(1.5deg);
    border: 5px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.3);
}

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

.hero-control {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    color: #0f172a;
    font-size: 38px;
    line-height: 1;
    box-shadow: var(--shadow);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-glow {
    position: absolute;
    z-index: 1;
    width: 210px;
    height: 210px;
    border-radius: 999px;
    filter: blur(34px);
    opacity: 0.55;
    animation: pulse 3s ease-in-out infinite;
}

.hero-glow-one {
    left: 6%;
    top: 8%;
    background: #ffffff;
}

.hero-glow-two {
    right: 12%;
    bottom: 12%;
    background: #fbcfe8;
    animation-delay: 0.7s;
}

@keyframes pulse {
    50% {
        opacity: 0.24;
        transform: scale(1.08);
    }
}

.section {
    padding: 72px 0;
}

.section-white {
    background: #ffffff;
}

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

.section-soft-pink {
    background: linear-gradient(135deg, #fdf2f8, #ffffff, #f0f9ff);
}

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

.section-head h2,
.tag-cloud-block h2 {
    margin: 12px 0 0;
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -0.04em;
}

.section-link {
    color: var(--sky-dark);
    font-weight: 850;
}

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

.all-grid {
    margin-top: 28px;
}

.movie-card {
    min-width: 0;
}

.card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
}

.poster-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe, #fce7f3);
}

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

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

.type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 11px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(2, 132, 199, 0.88);
    backdrop-filter: blur(12px);
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 17px;
}

.card-body h3 {
    margin: 0 0 9px;
    font-size: 18px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.card-link:hover h3 {
    color: var(--sky-dark);
}

.card-body p {
    min-height: 46px;
    margin: 0 0 14px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #6b7280;
    font-size: 13px;
}

.tag-row {
    margin-top: 12px;
    color: var(--sky-dark);
    font-size: 13px;
    font-weight: 750;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 176px;
    border-radius: var(--radius);
    padding: 24px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(219, 39, 119, 0.18));
    transition: opacity 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
}

.category-tile:hover::before {
    opacity: 1;
}

.category-tile span,
.category-tile strong,
.category-tile em {
    position: relative;
    z-index: 1;
    display: block;
}

.category-tile span {
    color: var(--sky-dark);
    font-weight: 900;
    font-size: 20px;
}

.category-tile strong {
    margin-top: 18px;
    font-size: 16px;
}

.category-tile em {
    margin-top: 10px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
    font-style: normal;
}

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

.rank-grid-full {
    margin-top: 28px;
}

.rank-card a {
    display: flex;
    gap: 16px;
    min-height: 124px;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(90deg, #ffffff, #f8fafc);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-card a:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
}

.rank-thumb {
    position: relative;
    flex: 0 0 132px;
    height: 92px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #e0f2fe, #fce7f3);
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-badge {
    position: absolute;
    z-index: 2;
    left: 8px;
    top: 8px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-weight: 900;
    font-size: 13px;
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.24);
}

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

.rank-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-info p {
    margin: 0 0 10px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-cloud-block {
    text-align: center;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.tag-cloud a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #dbeafe;
    color: var(--sky-dark);
    background: #ffffff;
    font-weight: 750;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tag-cloud a:hover {
    transform: translateY(-2px);
    border-color: var(--pink);
    color: var(--pink);
}

.cta-band {
    padding: 76px 0;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(135deg, var(--sky), var(--pink));
}

.cta-band h2 {
    margin: 0 0 18px;
    font-size: clamp(32px, 5vw, 52px);
    letter-spacing: -0.05em;
}

.cta-band p {
    max-width: 850px;
    margin: 0 auto 28px;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.page-banner {
    color: #ffffff;
    background: linear-gradient(120deg, var(--sky), var(--pink));
    padding: 56px 0 62px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    margin-bottom: 16px;
}

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

.breadcrumb b {
    font-weight: 400;
    opacity: 0.65;
}

.page-banner h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 5vw, 58px);
    letter-spacing: -0.05em;
}

.page-banner p {
    max-width: 820px;
    margin: 0;
    font-size: 18px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
    align-items: end;
    gap: 14px;
    padding: 20px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    border: 1px solid #edf2f7;
}

.filter-field {
    display: grid;
    gap: 7px;
}

.filter-field label {
    color: #475569;
    font-size: 13px;
    font-weight: 850;
}

.filter-field input,
.filter-field select {
    width: 100%;
    height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 0 14px;
    outline: 0;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-field input:focus,
.filter-field select:focus {
    border-color: var(--sky);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.filter-reset {
    height: 46px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), var(--pink));
    padding: 0 22px;
    font-weight: 850;
}

.filter-status {
    grid-column: 1 / -1;
    color: #64748b;
    font-size: 14px;
}

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

.category-overview-card a {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-covers {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: 116px;
    background: linear-gradient(135deg, #e0f2fe, #fce7f3);
}

.category-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overview-body {
    padding: 22px;
}

.category-overview-body h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-overview-body p {
    margin: 0 0 18px;
    color: #64748b;
    line-height: 1.72;
}

.category-overview-body span {
    color: var(--sky-dark);
    font-weight: 850;
}

.spotlight-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.related-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.13);
}

.related-card img {
    flex: 0 0 110px;
    width: 110px;
    height: 76px;
    object-fit: cover;
    border-radius: 13px;
    background: linear-gradient(135deg, #e0f2fe, #fce7f3);
}

.related-card span {
    min-width: 0;
}

.related-card strong {
    display: block;
    font-size: 16px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card em {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
    font-style: normal;
}

.detail-page {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(280px, 0.9fr);
    gap: 30px;
    padding: 38px 0 24px;
}

.detail-main,
.detail-sidebar {
    min-width: 0;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    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: radial-gradient(circle at center, rgba(15, 23, 42, 0.24), rgba(15, 23, 42, 0.78));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sky), var(--pink));
    font-size: 28px;
    box-shadow: 0 18px 42px rgba(219, 39, 119, 0.34);
}

.play-overlay strong {
    font-size: 20px;
}

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

.detail-panel,
.sidebar-card {
    margin-top: 22px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.09);
    padding: 26px;
}

.detail-title-row {
    display: flex;
    justify-content: space-between;
    gap: 22px;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 13px;
    color: var(--sky-dark);
    background: #e0f2fe;
    font-weight: 850;
    font-size: 13px;
}

.detail-title-row h1 {
    margin: 14px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
    line-height: 1.18;
}

.poster-mini {
    flex: 0 0 156px;
    height: 118px;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, #e0f2fe, #fce7f3);
}

.poster-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #475569;
    background: #f8fafc;
    font-weight: 750;
    font-size: 14px;
}

.detail-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 22px;
    margin-top: 22px;
}

.detail-section h2,
.sidebar-card h2 {
    margin: 0 0 14px;
    font-size: 22px;
    letter-spacing: -0.02em;
}

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

.review-box {
    padding: 24px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #f0f9ff, #fdf2f8);
}

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

.detail-info-grid div {
    padding: 16px;
    border-radius: 16px;
    background: #f8fafc;
}

.detail-info-grid strong {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 7px;
}

.detail-info-grid span {
    font-weight: 800;
}

.tag-groups .tag-cloud {
    justify-content: flex-start;
}

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

.sidebar-card {
    margin-top: 0;
}

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

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(135deg, #111827, #1f2937, #111827);
    padding: 58px 0 24px;
}

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

.site-footer p {
    margin: 18px 0 0;
    max-width: 520px;
    color: #94a3b8;
    line-height: 1.8;
}

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

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

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    color: #94a3b8;
    font-size: 14px;
}

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

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

    .header-search input {
        width: 180px;
    }

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

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

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

    .detail-sidebar {
        position: static;
    }
}

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

    .menu-toggle {
        display: flex;
    }

    .site-logo {
        font-size: 21px;
    }

    .hero,
    .hero-content {
        min-height: 640px;
    }

    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 26px;
        padding: 62px 0 86px;
    }

    .hero-poster {
        width: 100%;
        min-width: 0;
        max-height: 240px;
        transform: none;
    }

    .hero-control {
        display: none;
    }

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

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

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

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

    .detail-title-row {
        flex-direction: column;
    }

    .poster-mini {
        flex: none;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

    .header-inner {
        height: 68px;
    }

    .logo-mark {
        width: 30px;
        height: 30px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-actions {
        width: 100%;
    }

    .primary-button,
    .ghost-button {
        width: 100%;
    }

    .section {
        padding: 48px 0;
    }

    .movie-grid,
    .rank-grid,
    .spotlight-row {
        grid-template-columns: 1fr;
    }

    .rank-card a {
        min-height: auto;
    }

    .rank-thumb {
        flex-basis: 118px;
        height: 86px;
    }

    .detail-panel,
    .sidebar-card {
        padding: 20px;
        border-radius: 20px;
    }

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