:root {
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --pink-500: #ec4899;
    --orange-500: #f97316;
    --yellow-400: #facc15;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 32px rgba(15, 23, 42, 0.10);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --page-width: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--slate-900);
    background: linear-gradient(180deg, #fff7f9 0%, #ffffff 42%, #fff7f9 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500), var(--orange-500));
    box-shadow: 0 12px 25px rgba(244, 63, 94, 0.35);
}

.brand-copy {
    display: grid;
    line-height: 1.1;
}

.brand-name {
    font-size: 22px;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500), var(--orange-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    margin-top: 4px;
    color: var(--slate-500);
    font-size: 12px;
    font-weight: 600;
}

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

.nav-link {
    border: 0;
    background: transparent;
    color: var(--slate-700);
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--rose-600);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 16px);
    left: -18px;
    width: 180px;
    padding: 10px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-card);
    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-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--slate-700);
    font-weight: 700;
}

.dropdown-panel a:hover {
    color: var(--rose-600);
    background: var(--rose-50);
}

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

.header-search input,
.mobile-search input,
.page-search input,
.filter-bar input {
    width: 230px;
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    padding: 12px 16px;
    outline: none;
    background: #ffffff;
    color: var(--slate-800);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.page-search input:focus,
.filter-bar input:focus {
    border-color: var(--rose-500);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.header-search button,
.mobile-search button,
.page-search button {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    color: var(--white);
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
    font-weight: 800;
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--rose-50);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--rose-600);
}

.mobile-panel {
    display: none;
    padding: 0 20px 20px;
    border-top: 1px solid var(--slate-200);
    background: var(--white);
}

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

.mobile-panel nav,
.mobile-category-list {
    display: grid;
    gap: 8px;
}

.mobile-link,
.mobile-category-list a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--slate-700);
    background: var(--slate-100);
    font-weight: 700;
}

.mobile-link.active,
.mobile-link:hover,
.mobile-category-list a:hover {
    color: var(--rose-600);
    background: var(--rose-50);
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: linear-gradient(120deg, var(--rose-600), var(--pink-500), var(--orange-500));
}

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

.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide img,
.detail-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.22;
    filter: saturate(1.15) contrast(1.05);
}

.image-fallback {
    opacity: 0 !important;
}

.hero-overlay,
.detail-hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.22), transparent 28%),
        linear-gradient(90deg, rgba(136, 19, 55, 0.92), rgba(225, 29, 72, 0.78) 45%, rgba(249, 115, 22, 0.68));
}

.hero-content,
.page-hero-inner,
.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(var(--page-width), calc(100% - 32px));
    margin: 0 auto;
}

.hero-content {
    min-height: 640px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 760px;
    margin-left: max(16px, calc((100vw - var(--page-width)) / 2));
    color: var(--white);
}

.hero-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    color: #fff6f8;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 800;
}

.hero h1,
.hero h2,
.page-hero h1,
.detail-copy h1 {
    margin: 18px 0 0;
    letter-spacing: -0.06em;
    line-height: 1.05;
}

.hero h1 {
    font-size: clamp(48px, 8vw, 88px);
}

.hero h2 {
    font-size: clamp(30px, 5vw, 54px);
    color: #ffe4e6;
}

.hero p,
.page-hero p,
.detail-copy p {
    max-width: 760px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(17px, 2.2vw, 23px);
}

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

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 700;
}

.hero-tags span {
    padding: 7px 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
}

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

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

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

.btn-primary {
    color: var(--rose-600);
    background: var(--white);
    box-shadow: 0 14px 30px rgba(255, 255, 255, 0.25);
}

.btn-glass,
.btn-outline {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
}

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

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

.hero-dot.active {
    width: 34px;
    background: var(--white);
}

.content-section,
.split-section {
    width: min(var(--page-width), calc(100% - 32px));
    margin: 0 auto;
}

.content-section {
    padding: 74px 0;
}

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

.section-heading.compact {
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.04em;
}

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

.section-more {
    flex: none;
    color: var(--rose-600);
    font-weight: 900;
}

.category-grid,
.category-detail-grid {
    display: grid;
    gap: 18px;
}

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

.category-card,
.category-detail-card a {
    position: relative;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 24px;
    color: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card::before,
.category-detail-card a::before {
    content: "";
    position: absolute;
    inset: -30% -20% auto auto;
    width: 130px;
    height: 130px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.category-card:hover,
.category-detail-card a:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-soft);
}

.category-icon {
    position: relative;
    font-size: 38px;
}

.category-card strong,
.category-detail-card h2 {
    position: relative;
    margin-top: 14px;
    font-size: 22px;
}

.category-card em,
.category-detail-card p {
    position: relative;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.88);
    font-style: normal;
    font-size: 14px;
}

.category-card b {
    position: relative;
    margin-top: 14px;
    font-size: 13px;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    padding: 28px 0 74px;
}

.spotlight-panel,
.rank-panel,
.rank-table,
.detail-side,
.detail-article {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-card);
}

.spotlight-panel,
.rank-panel {
    padding: 28px;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, #ffffff, #fff1f5);
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #fb7185, #f97316);
}

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

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

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.72));
}

.movie-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--white);
    background: var(--rose-500);
    font-size: 13px;
    font-weight: 800;
}

.play-float {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    color: var(--rose-600);
    background: rgba(255, 255, 255, 0.94);
    transform: translate(-50%, -50%) scale(0.82);
    opacity: 0;
    transition: all 0.24s ease;
}

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

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

.movie-card-body h3 {
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--slate-900);
    font-size: 19px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-card-body h3 a:hover {
    color: var(--rose-600);
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 45px;
    margin: 0;
    overflow: hidden;
    color: var(--slate-600);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 700;
}

.movie-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--slate-100);
}

.tag-row {
    margin-top: 12px;
}

.tag-row span {
    padding: 4px 8px;
    color: var(--rose-600);
    background: var(--rose-50);
    font-size: 12px;
}

.rank-list {
    display: grid;
    gap: 10px;
}

.rank-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    background: #fff7f9;
    transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    background: var(--rose-50);
}

.rank-num,
.rank-row-number {
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    font-weight: 900;
}

.rank-num {
    width: 42px;
    height: 42px;
}

.rank-item strong,
.rank-item em {
    display: block;
}

.rank-item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-item em {
    color: var(--slate-500);
    font-size: 13px;
    font-style: normal;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.page-hero.slim {
    min-height: 360px;
}

.page-hero.rank-hero {
    min-height: 430px;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.22), transparent 26%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.16), transparent);
}

.page-hero-inner {
    min-height: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px 0;
}

.page-hero h1 {
    max-width: 900px;
    font-size: clamp(42px, 7vw, 72px);
}

.category-pills a,
.year-chips button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
}

.category-pills a {
    padding: 10px 14px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
}

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

.category-detail-card {
    margin: 0;
}

.category-samples {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.category-samples span {
    max-width: 100%;
    overflow: hidden;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
}

.filter-bar label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--slate-700);
    font-weight: 800;
}

.filter-bar input {
    width: min(420px, 56vw);
}

.year-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.year-chips button {
    border: 0;
    padding: 9px 12px;
    color: var(--slate-700);
    background: var(--slate-100);
    cursor: pointer;
}

.year-chips button.active,
.year-chips button:hover {
    color: var(--white);
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
}

.rank-table {
    overflow: hidden;
}

.rank-row-link {
    display: grid;
    grid-template-columns: 60px 88px minmax(0, 1fr) 80px;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--slate-200);
    background: rgba(255, 255, 255, 0.75);
    transition: background 0.2s ease;
}

.rank-row:last-child .rank-row-link {
    border-bottom: 0;
}

.rank-row-link:hover {
    background: var(--rose-50);
}

.rank-row-number {
    width: 50px;
    height: 50px;
}

.rank-row-cover {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #fb7185, #f97316);
}

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

.rank-row-main strong,
.rank-row-main em,
.rank-row-main b {
    display: block;
}

.rank-row-main strong {
    font-size: 18px;
}

.rank-row-main em {
    display: -webkit-box;
    overflow: hidden;
    color: var(--slate-600);
    font-style: normal;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.rank-row-main b {
    margin-top: 4px;
    color: var(--slate-500);
    font-size: 13px;
}

.rank-row-score {
    color: var(--rose-600);
    font-size: 22px;
    font-weight: 900;
    text-align: right;
}

.detail-hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: linear-gradient(120deg, var(--slate-900), var(--rose-600), var(--orange-500));
}

.detail-bg {
    position: absolute;
    inset: 0;
}

.detail-hero-inner {
    padding: 36px 0 58px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 700;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
    margin-top: 42px;
}

.detail-poster {
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #fb7185, #f97316);
    box-shadow: var(--shadow-soft);
}

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

.detail-copy {
    color: var(--white);
}

.detail-copy h1 {
    font-size: clamp(42px, 7vw, 72px);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    font-size: 14px;
    font-weight: 800;
}

.player-section {
    width: min(var(--page-width), calc(100% - 32px));
    margin: -40px auto 0;
    position: relative;
    z-index: 3;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #030712;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #030712;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle at center, rgba(244, 63, 94, 0.28), rgba(15, 23, 42, 0.72));
    cursor: pointer;
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    margin: 0 auto;
    border-radius: 999px;
    color: var(--rose-600);
    background: rgba(255, 255, 255, 0.94);
    font-size: 34px;
    box-shadow: 0 20px 45px rgba(255, 255, 255, 0.18);
}

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

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

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

.detail-article,
.detail-side {
    padding: 30px;
}

.detail-article h2,
.detail-side h2 {
    margin: 0 0 16px;
    font-size: 28px;
    letter-spacing: -0.03em;
}

.detail-article p {
    margin: 0 0 26px;
    color: var(--slate-700);
    font-size: 17px;
}

.detail-side dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.detail-side dt {
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 800;
}

.detail-side dd {
    margin: -10px 0 8px;
    color: var(--slate-900);
    font-weight: 800;
}

.detail-side a {
    color: var(--rose-600);
}

.compact-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: var(--rose-50);
}

.compact-cover {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    background: linear-gradient(135deg, #fb7185, #f97316);
}

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

.compact-info strong,
.compact-info em {
    display: block;
}

.compact-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-info em {
    color: var(--slate-500);
    font-size: 13px;
    font-style: normal;
}

.search-results-section .movie-grid:empty::before {
    content: "";
    display: block;
}

.site-footer {
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.88);
    background: linear-gradient(120deg, var(--slate-900), #3f1232 55%, #7c2d12);
}

.footer-inner {
    width: min(var(--page-width), calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 30px;
    padding: 48px 0;
}

.footer-brand {
    color: var(--white);
    font-size: 24px;
}

.footer-inner p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.75);
}

.footer-links,
.footer-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: start;
}

.footer-links a,
.footer-category-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    font-weight: 700;
}

.footer-links a:hover,
.footer-category-links a:hover {
    background: rgba(255, 255, 255, 0.18);
}

.gradient-rose {
    background: linear-gradient(135deg, #e11d48, #ec4899, #f97316);
}

.gradient-orange {
    background: linear-gradient(135deg, #f97316, #fb7185, #e11d48);
}

.gradient-pink {
    background: linear-gradient(135deg, #db2777, #ec4899, #fb7185);
}

.gradient-slate {
    background: linear-gradient(135deg, #0f172a, #334155, #64748b);
}

.gradient-indigo {
    background: linear-gradient(135deg, #4f46e5, #7c3aed, #ec4899);
}

.gradient-emerald {
    background: linear-gradient(135deg, #059669, #10b981, #14b8a6);
}

.gradient-cyan {
    background: linear-gradient(135deg, #0891b2, #06b6d4, #22d3ee);
}

.gradient-red {
    background: linear-gradient(135deg, #dc2626, #f97316, #f43f5e);
}

.gradient-yellow {
    background: linear-gradient(135deg, #ca8a04, #f59e0b, #f97316);
}

.gradient-teal {
    background: linear-gradient(135deg, #0d9488, #14b8a6, #22c55e);
}

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

@media (max-width: 1180px) {
    .category-grid,
    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .split-section,
    .detail-main {
        grid-template-columns: 1fr;
    }
}

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

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

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

    .hero-content {
        margin: 0 auto;
        padding: 0 16px;
    }

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

    .detail-layout {
        grid-template-columns: 170px minmax(0, 1fr);
        align-items: center;
    }

    .filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-bar label {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-bar input {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .header-inner {
        height: 64px;
    }

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

    .brand-subtitle {
        display: none;
    }

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

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

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

    .hero-actions,
    .section-heading,
    .detail-layout {
        align-items: stretch;
        flex-direction: column;
    }

    .btn,
    .page-search button,
    .header-search button,
    .mobile-search button {
        width: 100%;
    }

    .category-grid,
    .category-detail-grid,
    .movie-grid,
    .movie-grid.three,
    .footer-inner,
    .detail-layout,
    .rank-row-link {
        grid-template-columns: 1fr;
    }

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

    .rank-row-score {
        text-align: left;
    }

    .player-section {
        margin-top: -22px;
    }

    .content-section {
        padding: 52px 0;
    }
}
