:root {
    --pink: #ec4899;
    --pink-dark: #db2777;
    --sky: #38bdf8;
    --sky-dark: #0284c7;
    --emerald: #34d399;
    --amber: #f59e0b;
    --text: #1f2937;
    --muted: #6b7280;
    --light: #f9fafb;
    --card: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 20px 45px rgba(31, 41, 55, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(135deg, rgba(253, 242, 248, 0.55), #ffffff 42%, rgba(240, 249, 255, 0.7));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

main {
    min-height: 60vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-mark {
    position: relative;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pink), var(--sky));
    box-shadow: 0 12px 25px rgba(236, 72, 153, 0.28);
}

.logo-mark::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 3px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #ffffff;
}

.logo-mark span {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: var(--emerald);
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16);
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: transparent;
    background: linear-gradient(90deg, var(--pink), var(--sky), var(--emerald));
    -webkit-background-clip: text;
    background-clip: text;
}

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

.nav-link {
    position: relative;
    color: #4b5563;
    font-weight: 600;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pink), var(--sky));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

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

.header-search input,
.mobile-search input,
.filter-input,
.filter-select {
    width: 240px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #f3f4f6;
    color: var(--text);
    outline: none;
    padding: 11px 16px;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-input:focus,
.filter-select:focus {
    border-color: rgba(236, 72, 153, 0.45);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.header-search button,
.mobile-search button,
.primary-button,
.secondary-button {
    border: 0;
    border-radius: 999px;
    padding: 11px 20px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.header-search button,
.mobile-search button,
.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--sky));
    box-shadow: 0 12px 24px rgba(56, 189, 248, 0.22);
}

.secondary-button {
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--border);
}

.header-search button:hover,
.mobile-search button:hover,
.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 32px rgba(236, 72, 153, 0.22);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    border: 0;
    background: transparent;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: #374151;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header.menu-open .mobile-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .mobile-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.menu-open .mobile-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

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

.mobile-panel nav {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 16px;
    color: #4b5563;
    background: #f9fafb;
    font-weight: 700;
}

.mobile-link.is-active {
    color: var(--pink-dark);
    background: #fdf2f8;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 660px;
    background: radial-gradient(circle at 12% 18%, rgba(236, 72, 153, 0.24), transparent 30%), radial-gradient(circle at 80% 22%, rgba(56, 189, 248, 0.25), transparent 32%), linear-gradient(135deg, rgba(253, 242, 248, 0.95), rgba(240, 249, 255, 0.9) 50%, rgba(236, 253, 245, 0.9));
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
    align-items: center;
    gap: 42px;
    width: min(1180px, calc(100% - 32px));
    min-height: 660px;
    margin: 0 auto;
    padding: 70px 0;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    margin-bottom: 14px;
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--pink-dark);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 12px 25px rgba(236, 72, 153, 0.12);
    font-weight: 800;
}

.hero h1 {
    margin: 0 0 20px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.05;
    color: transparent;
    background: linear-gradient(90deg, var(--pink), var(--sky), var(--emerald));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-subtitle {
    margin: 0 0 18px;
    color: #374151;
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 700;
}

.hero-desc {
    max-width: 680px;
    margin: 0 0 30px;
    color: var(--muted);
    font-size: 18px;
}

.hero-search {
    display: flex;
    max-width: 620px;
    margin: 0 0 28px;
    border-radius: 999px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
    padding: 12px 18px;
    color: var(--text);
}

.hero-search button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--sky));
    padding: 12px 22px;
    font-weight: 800;
}

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

.hero-visual {
    position: relative;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 34px;
    min-height: 520px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 30px 65px rgba(15, 23, 42, 0.17);
    backdrop-filter: blur(16px);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}

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

.hero-slide-image {
    position: relative;
    min-height: 330px;
    overflow: hidden;
}

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

.hero-slide-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.82));
}

.hero-slide-info {
    position: relative;
    margin-top: -140px;
    padding: 0 28px 30px;
    color: #ffffff;
}

.hero-slide-info h2 {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.2;
}

.hero-slide-info p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.86);
}

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

.hero-tags span,
.tag-list span {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 700;
}

.hero-controls {
    position: absolute;
    right: 22px;
    bottom: 22px;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    background: rgba(255, 255, 255, 0.76);
    color: #111827;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.hero-arrow {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 900;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    padding: 0;
    opacity: 0.6;
}

.hero-dot.is-active {
    width: 26px;
    opacity: 1;
    background: linear-gradient(90deg, var(--pink), var(--sky));
}

.float-shape {
    position: absolute;
    z-index: 1;
    color: rgba(236, 72, 153, 0.22);
    font-size: 46px;
    animation: float 14s ease-in-out infinite;
    pointer-events: none;
}

.shape-1 { left: 6%; top: 16%; animation-delay: 0s; }
.shape-2 { left: 18%; top: 76%; animation-delay: 2s; color: rgba(56, 189, 248, 0.22); }
.shape-3 { right: 8%; top: 13%; animation-delay: 4s; color: rgba(52, 211, 153, 0.24); }
.shape-4 { right: 30%; bottom: 8%; animation-delay: 6s; color: rgba(245, 158, 11, 0.22); }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-22px) rotate(8deg); }
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 52px;
    background: linear-gradient(135deg, rgba(253, 242, 248, 0.9), rgba(240, 249, 255, 0.9));
}

.page-hero-inner,
.detail-hero-inner,
.section,
.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.page-hero h1,
.detail-main-title {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.14;
}

.page-hero p,
.detail-hero p {
    max-width: 820px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.section {
    padding: 70px 0;
}

.section-soft {
    background: linear-gradient(90deg, rgba(253, 242, 248, 0.6), rgba(240, 249, 255, 0.55), rgba(236, 253, 245, 0.58));
}

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

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.2;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.82);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(236, 72, 153, 0.38);
    box-shadow: 0 26px 48px rgba(236, 72, 153, 0.16);
}

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

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

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

.movie-badge,
.movie-duration {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.movie-badge {
    top: 12px;
    left: 12px;
    background: linear-gradient(90deg, var(--pink), var(--sky));
}

.movie-duration {
    right: 12px;
    bottom: 12px;
    background: rgba(15, 23, 42, 0.78);
}

.movie-info {
    padding: 18px;
}

.movie-info h3 {
    margin: 0 0 9px;
    font-size: 19px;
    line-height: 1.3;
}

.movie-info h3 a:hover {
    color: var(--pink);
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-meta span {
    border-radius: 999px;
    padding: 5px 9px;
    color: #4b5563;
    background: #f3f4f6;
    font-size: 12px;
    font-weight: 700;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 180px 1fr;
}

.movie-card-horizontal .movie-cover {
    aspect-ratio: auto;
    min-height: 150px;
}

.movie-card-large {
    grid-column: span 2;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    border: 1px solid rgba(229, 231, 235, 0.76);
    border-radius: 28px;
    padding: 26px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(56, 189, 248, 0.16);
}

.category-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--sky));
    font-size: 24px;
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 23px;
}

.category-card p {
    margin: 0;
    color: var(--muted);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -42px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(56, 189, 248, 0.12));
}

.ranking-list {
    display: grid;
    gap: 16px;
}

.rank-item {
    display: grid;
    grid-template-columns: 60px 130px 1fr auto;
    align-items: center;
    gap: 18px;
    border: 1px solid rgba(229, 231, 235, 0.82);
    border-radius: 24px;
    padding: 14px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    box-shadow: 0 20px 42px rgba(236, 72, 153, 0.14);
}

.rank-number {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--amber));
    font-size: 20px;
    font-weight: 900;
}

.rank-thumb {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 16 / 10;
}

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

.rank-info h2,
.rank-info h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.rank-info p {
    margin: 0;
    color: var(--muted);
}

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    color: #4b5563;
    font-weight: 700;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px 150px;
    gap: 14px;
    margin-bottom: 28px;
    border: 1px solid rgba(229, 231, 235, 0.82);
    border-radius: 26px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.07);
}

.filter-input,
.filter-select {
    width: 100%;
    border-radius: 16px;
}

.filter-reset {
    border: 0;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--sky));
    font-weight: 800;
}

.empty-state {
    display: none;
    border-radius: 24px;
    padding: 42px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
}

.empty-state.is-visible {
    display: block;
}

.detail-hero-inner {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 34px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 28px 65px rgba(15, 23, 42, 0.18);
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fdf2f8, #e0f2fe);
}

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

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

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

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

.detail-meta span {
    border-radius: 999px;
    padding: 7px 12px;
    color: #374151;
    background: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

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

.player-shell {
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #05070d;
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #05070d;
}

.player-poster {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 0;
    padding: 0;
    background: #05070d;
}

.player-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.56);
}

.player-poster.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.player-start {
    position: relative;
    z-index: 3;
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--sky));
    box-shadow: 0 20px 45px rgba(236, 72, 153, 0.34);
}

.player-start::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 5px;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 24px solid #ffffff;
}

.player-caption {
    padding: 20px 24px;
    color: #ffffff;
    background: linear-gradient(90deg, #111827, #1f2937);
}

.player-caption h2 {
    margin: 0 0 6px;
    font-size: 24px;
}

.player-caption p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.content-card {
    border: 1px solid rgba(229, 231, 235, 0.84);
    border-radius: 28px;
    padding: 28px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.content-card + .content-card {
    margin-top: 24px;
}

.content-card h2 {
    margin: 0 0 16px;
    font-size: 28px;
}

.content-card p {
    margin: 0;
    color: #4b5563;
}

.content-card p + p {
    margin-top: 14px;
}

.side-card {
    position: sticky;
    top: 90px;
    align-self: start;
    border: 1px solid rgba(229, 231, 235, 0.84);
    border-radius: 28px;
    padding: 22px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.side-card h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

.mini-list {
    display: grid;
    gap: 12px;
}

.mini-card {
    display: grid;
    grid-template-columns: 82px 1fr;
    align-items: center;
    gap: 12px;
    border-radius: 18px;
    padding: 8px;
    background: #f9fafb;
    transition: background 0.25s ease, transform 0.25s ease;
}

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

.mini-card img {
    width: 82px;
    height: 54px;
    border-radius: 14px;
    object-fit: cover;
}

.mini-card span {
    color: #374151;
    font-weight: 800;
    line-height: 1.35;
}

.pagination-note {
    margin-top: 28px;
    border-radius: 24px;
    padding: 22px;
    color: #4b5563;
    background: rgba(255, 255, 255, 0.78);
}

.site-footer {
    border-top: 1px solid rgba(229, 231, 235, 0.84);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 42px;
    padding: 52px 0;
}

.footer-brand p {
    max-width: 520px;
    margin: 18px 0 0;
    color: var(--muted);
}

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

.footer-links h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.footer-links a {
    color: #6b7280;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    border-top: 1px solid rgba(229, 231, 235, 0.84);
    padding: 18px 0 26px;
    color: #6b7280;
    font-size: 14px;
}

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

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

    .detail-hero-inner {
        grid-template-columns: 260px 1fr;
    }

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

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

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

    .mobile-toggle {
        display: flex;
    }

    .site-header.menu-open .mobile-panel {
        display: block;
    }

    .mobile-search input {
        width: 100%;
    }

    .hero-inner {
        min-height: auto;
        padding: 46px 0 58px;
    }

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

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

    .movie-card-large {
        grid-column: span 1;
    }

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

    .rank-item {
        grid-template-columns: 50px 100px 1fr;
    }

    .rank-meta {
        grid-column: 2 / -1;
        justify-content: flex-start;
    }

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

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

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

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

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

    .hero {
        min-height: 0;
    }

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

    .hero-search {
        flex-direction: column;
        align-items: stretch;
        border-radius: 24px;
    }

    .hero-search button {
        border-radius: 18px;
    }

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

    .hero-slide-info {
        padding: 0 20px 28px;
    }

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

    .section {
        padding: 48px 0;
    }

    .section-head {
        display: block;
    }

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

    .rank-item {
        grid-template-columns: 44px 1fr;
    }

    .rank-thumb {
        grid-column: 1 / -1;
        order: -1;
    }

    .rank-meta {
        grid-column: 1 / -1;
    }

    .content-card,
    .side-card {
        padding: 22px;
        border-radius: 24px;
    }
}
