:root {
    --color-sakura-50: #fef6f9;
    --color-sakura-100: #fdedf3;
    --color-sakura-200: #fcd9e7;
    --color-sakura-300: #fab5d1;
    --color-sakura-400: #f78bb8;
    --color-sakura-500: #f06292;
    --color-sakura-600: #e91e63;
    --color-sakura-700: #c2185b;
    --color-cream-50: #fffcf5;
    --color-cream-200: #fff0cf;
    --color-cream-500: #f5b942;
    --color-spring-50: #f0fdf4;
    --color-spring-500: #22c55e;
    --color-spring-600: #16a34a;
    --color-ink: #1f2937;
    --color-muted: #6b7280;
    --color-line: #f1d6e0;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 22px rgba(31, 41, 55, 0.08);
    --shadow-lg: 0 18px 45px rgba(31, 41, 55, 0.13);
    --shadow-xl: 0 28px 70px rgba(31, 41, 55, 0.18);
    --radius-lg: 18px;
    --radius-xl: 26px;
    --radius-xxl: 34px;
    --container: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    color: var(--color-ink);
    background:
        radial-gradient(circle at top left, rgba(240, 98, 146, 0.18), transparent 28rem),
        radial-gradient(circle at 85% 8%, rgba(245, 185, 66, 0.22), transparent 25rem),
        linear-gradient(135deg, var(--color-sakura-50), var(--color-cream-50) 52%, var(--color-spring-50));
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(14px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-md);
}

.header-inner,
.footer-inner,
.page-shell {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

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

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 800;
    font-size: 22px;
    background: linear-gradient(135deg, var(--color-sakura-400), var(--color-sakura-600));
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-3deg);
}

.brand-copy {
    display: grid;
    gap: 1px;
}

.brand-copy strong {
    font-size: 20px;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--color-sakura-600), var(--color-sakura-400));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.brand-copy small {
    color: var(--color-muted);
    font-size: 12px;
}

.header-search {
    display: flex;
    flex: 1;
    max-width: 440px;
    margin-left: auto;
    overflow: hidden;
    border: 2px solid var(--color-sakura-200);
    border-radius: 999px;
    background: #ffffff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-search:focus-within {
    border-color: var(--color-sakura-400);
    box-shadow: 0 0 0 4px rgba(240, 98, 146, 0.12);
}

.header-search input,
.mobile-search input,
.search-page-form input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 12px 16px;
    color: var(--color-ink);
    background: transparent;
}

.header-search button,
.mobile-search button,
.search-page-form button,
.filter-panel button {
    border: 0;
    color: #ffffff;
    background: var(--color-sakura-500);
    padding: 0 18px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover,
.filter-panel button:hover {
    background: var(--color-sakura-600);
}

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

.nav-link,
.mobile-link {
    border-radius: 999px;
    color: #374151;
    font-weight: 600;
    transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-link {
    padding: 10px 16px;
}

.nav-link:hover,
.mobile-link:hover {
    color: var(--color-sakura-700);
    background: var(--color-sakura-100);
}

.nav-link.is-active,
.mobile-link.is-active {
    color: #ffffff;
    background: var(--color-sakura-500);
    box-shadow: var(--shadow-sm);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: var(--color-sakura-100);
    color: var(--color-sakura-700);
    font-size: 22px;
}

.mobile-menu {
    padding: 0 16px 16px;
    border-top: 1px solid var(--color-sakura-200);
    background: rgba(255, 255, 255, 0.92);
}

.mobile-menu nav {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.mobile-link {
    display: block;
    padding: 12px 14px;
}

.mobile-search {
    display: flex;
    overflow: hidden;
    margin-top: 14px;
    border: 2px solid var(--color-sakura-200);
    border-radius: 999px;
    background: #ffffff;
}

.page-shell {
    padding: 34px 0 64px;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    margin-bottom: 52px;
    border-radius: var(--radius-xxl);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, rgba(240, 98, 146, 0.25), rgba(245, 185, 66, 0.22));
}

.hero-track {
    position: relative;
    min-height: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
    transform: scale(1.02);
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.42) 46%, rgba(0, 0, 0, 0.1)),
                linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 52%);
}

.hero-content {
    position: absolute;
    left: clamp(24px, 6vw, 76px);
    bottom: clamp(32px, 7vw, 84px);
    width: min(680px, calc(100% - 48px));
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin-bottom: 14px;
    padding: 7px 14px;
    border-radius: 999px;
    color: var(--color-sakura-100);
    background: rgba(240, 98, 146, 0.86);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero-content h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5.6vw, 64px);
    line-height: 1.05;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hero-content p {
    margin: 0 0 22px;
    max-width: 60ch;
    color: #f3f4f6;
    font-size: 18px;
    line-height: 1.75;
}

.hero-meta,
.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta {
    margin-bottom: 26px;
}

.hero-meta span,
.movie-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 11px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.hero-actions,
.detail-copy .primary-button {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.primary-button,
.ghost-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.primary-button {
    padding: 13px 26px;
    color: #ffffff;
    background: var(--color-sakura-500);
    box-shadow: var(--shadow-md);
}

.primary-button:hover {
    transform: translateY(-2px) scale(1.02);
    background: var(--color-sakura-600);
    box-shadow: var(--shadow-lg);
}

.ghost-button {
    padding: 12px 24px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.14);
}

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

.hero-controls {
    position: absolute;
    right: 26px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 5;
}

.hero-controls button {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 28px;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    opacity: 0.6;
    transition: width 0.25s ease, opacity 0.25s ease;
}

.hero-dot.is-active {
    width: 28px;
    opacity: 1;
    background: var(--color-sakura-500);
}

.content-section {
    margin-bottom: 52px;
}

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

.section-heading div {
    min-width: 0;
}

.section-icon {
    display: inline-flex;
    margin-bottom: 8px;
    font-size: 28px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
}

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

.section-more {
    flex: 0 0 auto;
    padding: 9px 16px;
    color: var(--color-sakura-700);
    background: var(--color-sakura-100);
}

.section-more:hover {
    color: #ffffff;
    background: var(--color-sakura-500);
}

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

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

.movie-list {
    display: grid;
    gap: 18px;
}

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-md);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--color-sakura-100), var(--color-cream-200));
}

.movie-card.is-horizontal {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
}

.movie-card.is-horizontal .poster-link {
    height: 100%;
    min-height: 160px;
    aspect-ratio: auto;
}

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 55%);
    opacity: 0.75;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-link::after {
    opacity: 0.95;
}

.duration-badge,
.rank-badge,
.play-badge {
    position: absolute;
    z-index: 2;
}

.duration-badge {
    right: 10px;
    bottom: 10px;
    border-radius: 9px;
    padding: 4px 8px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.68);
    font-size: 12px;
}

.rank-badge {
    left: 10px;
    top: 10px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-cream-500), var(--color-sakura-500));
    font-weight: 800;
    box-shadow: var(--shadow-md);
}

.play-badge {
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--color-sakura-500);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

.movie-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.9em;
    margin-bottom: 10px;
    color: var(--color-ink);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title:hover {
    color: var(--color-sakura-600);
}

.movie-card-body p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.2em;
    margin: 0 0 14px;
    color: var(--color-muted);
    line-height: 1.62;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    gap: 8px;
    margin-bottom: 12px;
}

.movie-meta span {
    color: var(--color-muted);
    background: var(--color-sakura-50);
}

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

.tag-row span {
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--color-sakura-700);
    background: var(--color-sakura-100);
    font-size: 12px;
    font-weight: 700;
}

.feature-panel {
    padding: 28px;
    border-radius: var(--radius-xxl);
    background: linear-gradient(135deg, var(--color-sakura-100), var(--color-cream-200));
    box-shadow: var(--shadow-md);
}

.category-grid,
.category-overview-grid {
    display: grid;
    gap: 20px;
}

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

.category-card,
.category-overview-card {
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card {
    display: grid;
    gap: 8px;
    padding: 22px;
    text-align: center;
}

.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.category-card span,
.category-overview-main span,
.category-emoji {
    font-size: 34px;
}

.category-card strong {
    font-size: 18px;
}

.category-card small,
.category-card em {
    color: var(--color-muted);
    font-style: normal;
}

.split-section {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 28px;
}

.split-section .content-section {
    margin-bottom: 0;
}

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

.rank-line {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-line:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.rank-line span {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #ffffff;
    background: var(--color-sakura-500);
    font-weight: 800;
}

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

.rank-line em {
    color: var(--color-muted);
    font-style: normal;
    font-size: 13px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
    padding: clamp(34px, 7vw, 72px);
    border-radius: var(--radius-xxl);
    background: linear-gradient(135deg, rgba(240, 98, 146, 0.88), rgba(245, 185, 66, 0.72));
    color: #ffffff;
    box-shadow: var(--shadow-lg);
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.24);
}

.page-hero .eyebrow {
    background: rgba(255, 255, 255, 0.2);
}

.page-hero h1 {
    position: relative;
    margin: 0 0 14px;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.12;
}

.page-hero p {
    position: relative;
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
    line-height: 1.75;
}

.category-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 52px;
}

.category-overview-card {
    overflow: hidden;
}

.category-overview-main {
    display: grid;
    gap: 10px;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff, var(--color-sakura-50));
}

.category-overview-main h2,
.category-overview-main p {
    margin: 0;
}

.category-overview-main p {
    color: var(--color-muted);
    line-height: 1.65;
}

.category-overview-main strong {
    color: var(--color-sakura-700);
}

.category-overview-card ul {
    margin: 0;
    padding: 0 24px 24px;
    list-style: none;
}

.category-overview-card li + li {
    margin-top: 8px;
}

.category-overview-card li a {
    color: #4b5563;
}

.category-overview-card li a:hover {
    color: var(--color-sakura-700);
}

.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-cloud a {
    border-radius: 999px;
    padding: 9px 15px;
    color: var(--color-sakura-700);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.keyword-cloud a:hover {
    transform: translateY(-2px);
    color: #ffffff;
    background: var(--color-sakura-500);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: var(--color-muted);
    font-size: 14px;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 32px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 700;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 2px solid var(--color-sakura-100);
    border-radius: 999px;
    padding: 0 15px;
    outline: 0;
    color: var(--color-ink);
    background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--color-sakura-400);
    box-shadow: 0 0 0 4px rgba(240, 98, 146, 0.12);
}

.filter-panel button {
    min-height: 46px;
    border-radius: 999px;
    padding: 0 22px;
}

.empty-state {
    margin-bottom: 22px;
    padding: 20px;
    border-radius: var(--radius-lg);
    color: var(--color-muted);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.detail-hero {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 34px;
    align-items: stretch;
    margin-bottom: 42px;
    padding: 28px;
    border-radius: var(--radius-xxl);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--color-sakura-100), var(--color-cream-200));
    box-shadow: var(--shadow-md);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
}

.detail-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(32px, 4.4vw, 56px);
    line-height: 1.12;
}

.detail-copy p {
    margin: 0 0 24px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.75;
}

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

.detail-meta div {
    padding: 12px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.detail-meta dt {
    margin-bottom: 4px;
    color: var(--color-muted);
    font-size: 12px;
}

.detail-meta dd {
    margin: 0;
    font-weight: 800;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #111827;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.12));
}

.player-overlay[hidden] {
    display: none;
}

.player-overlay span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: var(--color-sakura-500);
    box-shadow: var(--shadow-xl);
    font-size: 34px;
    transition: transform 0.25s ease, background 0.25s ease;
}

.player-overlay:hover span {
    transform: scale(1.08);
    background: var(--color-sakura-600);
}

.player-error {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.94);
    text-align: center;
}

.player-error[hidden] {
    display: none;
}

.article-card {
    padding: 28px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

.article-card p {
    margin: 0;
    color: #374151;
    line-height: 1.9;
    font-size: 17px;
}

.article-card h2 {
    margin: 28px 0 12px;
    font-size: 24px;
}

.search-page-form {
    position: relative;
    display: flex;
    overflow: hidden;
    width: min(720px, 100%);
    margin-top: 28px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-md);
}

.search-page-form input {
    min-height: 56px;
}

.search-page-form button {
    border: 0;
    padding: 0 26px;
    color: #ffffff;
    background: var(--color-sakura-600);
}

.search-results-panel {
    min-height: 220px;
    margin-bottom: 52px;
}

.site-footer {
    border-top: 1px solid var(--color-line);
    background: linear-gradient(135deg, rgba(253, 237, 243, 0.96), rgba(255, 240, 207, 0.82));
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
    padding: 42px 0;
}

.footer-brand p,
.footer-column p {
    color: var(--color-muted);
    line-height: 1.75;
}

.footer-column h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

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

.footer-column a {
    color: #4b5563;
}

.footer-column a:hover {
    color: var(--color-sakura-700);
}

.compact .brand-mark {
    width: 40px;
    height: 40px;
}

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

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

    .split-section,
    .detail-hero,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .detail-poster img {
        max-height: 540px;
    }
}

@media (max-width: 820px) {
    .header-inner {
        gap: 12px;
    }

    .header-search,
    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .brand-copy strong {
        font-size: 17px;
    }

    .hero-slider,
    .hero-track,
    .hero-slide img {
        min-height: 560px;
    }

    .hero-content {
        left: 22px;
        bottom: 86px;
        width: calc(100% - 44px);
    }

    .hero-controls {
        left: 22px;
        right: auto;
    }

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

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

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

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

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

@media (max-width: 560px) {
    .header-inner,
    .footer-inner,
    .page-shell {
        width: min(100% - 24px, var(--container));
    }

    .brand-copy small {
        display: none;
    }

    .hero-slider,
    .hero-track,
    .hero-slide img {
        min-height: 540px;
        border-radius: 24px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .hero-meta span {
        font-size: 12px;
    }

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

    .page-hero,
    .detail-hero,
    .feature-panel,
    .article-card {
        padding: 22px;
        border-radius: 24px;
    }

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

    .search-page-form {
        flex-direction: column;
        border-radius: 24px;
    }

    .search-page-form button {
        min-height: 48px;
    }
}
