:root {
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-line: #e5e7eb;
    --color-soft: #f9fafb;
    --color-pink: #ec4899;
    --color-yellow: #f59e0b;
    --color-green: #22c55e;
    --shadow-card: 0 18px 50px rgba(17, 24, 39, 0.10);
    --shadow-soft: 0 10px 25px rgba(17, 24, 39, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #ffffff;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-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.88);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 16px;
    background: linear-gradient(135deg, #facc15, #ec4899 52%, #22c55e);
    box-shadow: 0 10px 22px rgba(236, 72, 153, 0.25);
}

.brand-name {
    font-size: 20px;
    background: linear-gradient(90deg, #ca8a04, #ec4899, #16a34a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link,
.mobile-nav-link {
    color: #374151;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease;
}

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

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

.header-search input,
.mobile-search input,
.hero-search input,
.page-search-form input,
.filter-bar input,
.filter-bar select {
    border: 1px solid var(--color-line);
    outline: none;
    background: #ffffff;
    color: var(--color-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.page-search-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(236, 72, 153, 0.6);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.header-search input {
    width: 230px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
}

.header-search button,
.mobile-search button,
.hero-search button,
.page-search-form button,
.filter-bar button,
.primary-btn {
    border: 0;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(90deg, #ec4899, #f59e0b);
    box-shadow: 0 14px 28px rgba(236, 72, 153, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.page-search-form button:hover,
.filter-bar button:hover,
.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(236, 72, 153, 0.26);
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    display: none;
    width: min(360px, 88vw);
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.search-results.is-open {
    display: block;
}

.search-result-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    padding: 10px;
    border-bottom: 1px solid #f3f4f6;
}

.search-result-item:last-child {
    border-bottom: 0;
}

.search-result-item:hover {
    background: #fdf2f8;
}

.search-result-item img {
    width: 48px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    background: #f3f4f6;
}

.search-result-item strong {
    display: block;
    font-size: 14px;
    line-height: 1.3;
}

.search-result-item span {
    display: block;
    margin-top: 4px;
    color: var(--color-muted);
    font-size: 12px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #111827;
}

.mobile-nav {
    display: none;
    padding: 12px 16px 18px;
    border-top: 1px solid var(--color-line);
    background: #ffffff;
}

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

.mobile-search {
    margin-top: 8px;
}

.mobile-search input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
}

.mobile-search button {
    height: 42px;
    padding: 0 16px;
    border-radius: 999px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    background: linear-gradient(135deg, #fef3c7 0%, #fce7f3 48%, #dcfce7 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.36;
    background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.9), transparent 22%), radial-gradient(circle at 86% 12%, rgba(236, 72, 153, 0.16), transparent 24%), linear-gradient(rgba(255,255,255,0.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.35) 1px, transparent 1px);
    background-size: auto, auto, 64px 64px, 64px 64px;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    align-items: center;
    gap: 58px;
    min-height: 640px;
    padding: 54px 0;
}

.eyebrow,
.section-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    color: #db2777;
    background: #fce7f3;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.eyebrow {
    padding: 8px 14px;
}

.hero-copy h1 {
    margin: 20px 0 18px;
    font-size: clamp(44px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-copy h1 span,
.section-heading h2 span {
    background: linear-gradient(90deg, #ca8a04, #ec4899, #16a34a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p {
    max-width: 660px;
    margin: 0 0 26px;
    color: #4b5563;
    font-size: 18px;
}

.hero-search {
    position: relative;
    display: flex;
    max-width: 560px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 24px 48px rgba(17, 24, 39, 0.08);
    backdrop-filter: blur(14px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 18px;
    border-radius: 999px;
}

.hero-search button {
    height: 48px;
    padding: 0 22px;
    border-radius: 999px;
}

.hero-actions,
.hero-quick-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
}

.primary-btn.small {
    min-height: 42px;
    margin-top: 20px;
    padding: 0 18px;
    font-size: 14px;
}

.secondary-btn {
    color: #111827;
    font-weight: 800;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.hero-quick-links a {
    padding: 7px 12px;
    border: 1px solid rgba(236, 72, 153, 0.18);
    border-radius: 999px;
    color: #4b5563;
    background: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    font-weight: 700;
}

.hero-carousel {
    position: relative;
    min-height: 500px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.6);
    border-radius: 34px;
    background: #111827;
    box-shadow: 0 34px 80px rgba(17, 24, 39, 0.22);
    opacity: 0;
    transform: translateX(18px) scale(0.98);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

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

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

.hero-slide-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.76));
}

.hero-slide-content {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 30px;
    color: #ffffff;
}

.hero-slide-content .tag-row span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

.hero-slide-content h2 {
    margin: 14px 0 8px;
    font-size: 34px;
    line-height: 1.15;
}

.hero-slide-content p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.86);
}

.hero-slide-content a {
    display: inline-flex;
    margin-top: 18px;
    padding: 10px 18px;
    border-radius: 999px;
    color: #111827;
    font-weight: 800;
    background: #ffffff;
}

.hero-dots {
    position: absolute;
    right: 28px;
    bottom: 28px;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
}

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

.site-section {
    padding: 78px 0;
}

.soft-section,
.category-overview,
.related-section {
    background: #f9fafb;
}

.section-heading {
    margin-bottom: 34px;
}

.section-heading.centered {
    width: min(720px, calc(100% - 32px));
    margin: 0 auto 40px;
    text-align: center;
}

.section-pill {
    padding: 6px 12px;
    margin-bottom: 12px;
}

.section-pill.yellow {
    color: #b45309;
    background: #fef3c7;
}

.section-pill.green {
    color: #15803d;
    background: #dcfce7;
}

.section-heading h2,
.split-heading h2,
.ranking-panel h2 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-heading p,
.split-heading p,
.ranking-panel p {
    margin: 0;
    color: var(--color-muted);
}

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

.text-link {
    color: var(--color-pink);
    font-weight: 800;
}

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

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

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #f3f4f6;
}

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

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

.play-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-size: 24px;
    background: rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.play-hover::before {
    content: "";
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: #ffffff;
    z-index: -1;
}

.movie-card:hover .play-hover {
    opacity: 1;
}

.rating-pill,
.rank-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
}

.rating-pill {
    right: 12px;
    min-height: 30px;
    padding: 0 10px;
    color: #111827;
    background: #facc15;
    font-size: 12px;
}

.rank-badge {
    left: 12px;
    width: 34px;
    height: 34px;
    color: #ffffff;
    background: linear-gradient(135deg, #ec4899, #f59e0b);
}

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

.movie-meta {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 700;
}

.movie-card h2 {
    margin: 7px 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.movie-card h2 a:hover {
    color: var(--color-pink);
}

.movie-card p {
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.55;
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-row span,
.detail-tags a {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    color: #4b5563;
    background: #f3f4f6;
    font-size: 12px;
    font-weight: 700;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 30px;
    align-items: start;
}

.ranking-panel,
.category-overview-card,
.detail-card {
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.ranking-panel {
    padding: 30px;
}

.compact-list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.compact-list.mini {
    margin-top: 16px;
}

.compact-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 16px;
    background: #f9fafb;
    transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
    transform: translateX(4px);
    background: #fdf2f8;
}

.compact-card img {
    width: 52px;
    height: 66px;
    border-radius: 12px;
    object-fit: cover;
    background: #f3f4f6;
}

.compact-card strong {
    display: block;
    font-size: 14px;
    line-height: 1.35;
}

.compact-card em {
    display: block;
    margin-top: 4px;
    color: var(--color-muted);
    font-size: 12px;
    font-style: normal;
}

.compact-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(135deg, #ec4899, #f59e0b);
}

.compact-rank + img {
    display: none;
}

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

.card-overlay .movie-card-body {
    padding: 14px;
}

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

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

.category-tile,
.category-overview-card {
    display: block;
    padding: 22px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile span,
.category-card-head span {
    display: block;
    color: var(--color-pink);
    font-weight: 900;
}

.category-tile strong,
.category-card-head strong {
    display: block;
    margin: 8px 0;
    font-size: 34px;
    line-height: 1;
}

.category-tile em,
.category-overview-card p {
    color: var(--color-muted);
    font-size: 13px;
    font-style: normal;
}

.category-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.page-hero {
    padding: 72px 0;
    background: linear-gradient(135deg, #fef3c7, #fce7f3 54%, #dcfce7);
}

.page-hero h1 {
    max-width: 820px;
    margin: 18px 0 14px;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: #4b5563;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

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

.filter-bar {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, minmax(140px, 0.36fr)) auto;
    gap: 12px;
    margin-bottom: 10px;
    padding: 16px;
    border: 1px solid var(--color-line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.filter-bar label {
    display: grid;
    gap: 6px;
    color: #4b5563;
    font-size: 12px;
    font-weight: 800;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border-radius: 14px;
}

.filter-bar button {
    align-self: end;
    height: 44px;
    padding: 0 18px;
    border-radius: 14px;
}

.filter-count {
    min-height: 24px;
    margin: 0 0 22px;
    color: var(--color-muted);
    font-size: 14px;
}

.movie-card.is-hidden {
    display: none;
}

.movie-detail-shell {
    padding: 34px 0 0;
    background: #f9fafb;
}

.detail-card {
    overflow: hidden;
}

.player-block {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.42);
    transition: background 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay:hover {
    background: rgba(0, 0, 0, 0.52);
}

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

.big-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--color-pink);
    box-shadow: 0 20px 44px rgba(236, 72, 153, 0.36);
    font-size: 38px;
    line-height: 1;
    text-indent: 4px;
    transition: transform 0.2s ease;
}

.player-overlay:hover .big-play {
    transform: scale(1.08);
}

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

.detail-main h1 {
    margin: 12px 0 12px;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.detail-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    color: #4b5563;
    background: #f3f4f6;
    font-size: 13px;
    font-weight: 800;
}

.copy-block {
    margin-top: 28px;
}

.copy-block h2,
.info-panel h2 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.2;
}

.copy-block p {
    margin: 0 0 12px;
    color: #4b5563;
    font-size: 16px;
}

.review-block {
    padding: 20px;
    border-radius: 20px;
    background: #f9fafb;
}

.detail-aside {
    display: grid;
    align-content: start;
    gap: 18px;
}

.poster-panel,
.info-panel {
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 22px;
    background: #ffffff;
}

.poster-panel img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #f3f4f6;
}

.info-panel {
    padding: 20px;
}

.info-panel ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.info-panel li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}

.info-panel li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.info-panel span {
    color: var(--color-muted);
}

.info-panel strong {
    text-align: right;
}

.page-search-form {
    display: flex;
    gap: 10px;
    max-width: 620px;
    margin-top: 26px;
}

.page-search-form input {
    flex: 1;
    height: 52px;
    padding: 0 18px;
    border-radius: 999px;
}

.page-search-form button {
    height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
}

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

.search-page-card {
    display: grid;
    grid-template-columns: 94px 1fr;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--color-line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.04);
}

.search-page-card:hover {
    box-shadow: var(--shadow-soft);
}

.search-page-card img {
    width: 94px;
    height: 126px;
    border-radius: 14px;
    object-fit: cover;
    background: #f3f4f6;
}

.search-page-card h2 {
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.35;
}

.search-page-card p {
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
}

.site-footer {
    border-top: 1px solid var(--color-line);
    background: #ffffff;
}

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

.site-footer p,
.site-footer a {
    color: var(--color-muted);
    font-size: 14px;
}

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

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 16px;
}

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

.footer-bottom {
    padding: 18px;
    border-top: 1px solid var(--color-line);
    color: var(--color-muted);
    text-align: center;
    font-size: 13px;
}

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

    .menu-toggle {
        display: block;
    }

    .hero-grid,
    .split-layout,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .hero-carousel {
        min-height: 460px;
    }

    .movie-grid,
    .catalog-grid,
    .ranking-grid,
    .related-grid,
    .poster-mosaic,
    .category-grid,
    .category-overview-grid,
    .search-page-grid,
    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .header-inner {
        min-height: 66px;
    }

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

    .hero-section,
    .hero-grid {
        min-height: auto;
    }

    .hero-grid {
        gap: 32px;
        padding: 38px 0;
    }

    .hero-search,
    .page-search-form,
    .split-heading {
        flex-direction: column;
        align-items: stretch;
        border-radius: 24px;
    }

    .hero-search button,
    .page-search-form button {
        width: 100%;
    }

    .hero-carousel {
        min-height: 380px;
    }

    .hero-slide-content {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .hero-slide-content h2 {
        font-size: 26px;
    }

    .site-section {
        padding: 54px 0;
    }

    .movie-grid,
    .catalog-grid,
    .ranking-grid,
    .related-grid,
    .poster-mosaic,
    .category-grid,
    .category-overview-grid,
    .search-page-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

    .movie-card h2 {
        font-size: 15px;
    }

    .movie-card p {
        min-height: auto;
        font-size: 12px;
    }

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

    .detail-content {
        padding: 20px;
    }

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

    .search-page-card {
        grid-template-columns: 1fr;
    }

    .search-page-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
    }
}

@media (max-width: 480px) {
    .movie-grid,
    .catalog-grid,
    .ranking-grid,
    .related-grid,
    .poster-mosaic,
    .category-grid,
    .category-overview-grid,
    .search-page-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .page-hero h1 {
        letter-spacing: -0.04em;
    }

    .hero-carousel {
        min-height: 330px;
    }
}
