:root {
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-200: #fecdd3;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --pink-500: #ec4899;
    --purple-500: #a855f7;
    --blue-600: #2563eb;
    --green-600: #16a34a;
    --orange-500: #f97316;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-xl: 0 22px 55px rgba(15, 23, 42, 0.16);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: linear-gradient(180deg, #ffffff 0%, var(--rose-50) 54%, #ffffff 100%);
    min-height: 100vh;
}

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

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

main {
    min-height: 70vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--rose-100);
    background: linear-gradient(90deg, rgba(255, 241, 242, 0.94), rgba(253, 242, 248, 0.94));
    box-shadow: 0 8px 30px rgba(244, 63, 94, 0.08);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--rose-600), var(--pink-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    box-shadow: 0 12px 25px rgba(244, 63, 94, 0.25);
    font-size: 13px;
    transition: transform 0.3s ease;
}

.brand:hover .brand-icon {
    transform: rotate(12deg) scale(1.04);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--gray-700);
    font-weight: 600;
}

.desktop-nav a,
.mobile-nav a {
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

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

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

.top-search input,
.mobile-search input,
.inline-search input,
.filter-input {
    width: 230px;
    border: 1px solid var(--rose-200);
    border-radius: 999px;
    background: #ffffff;
    color: var(--gray-900);
    padding: 11px 16px;
    outline: none;
    transition: border 0.25s ease, box-shadow 0.25s ease;
}

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

.top-search button,
.mobile-search button,
.inline-search button,
.btn-primary,
.btn-light {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    padding: 11px 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.top-search button,
.mobile-search button,
.inline-search button,
.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
    box-shadow: 0 12px 26px rgba(244, 63, 94, 0.22);
}

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

.top-search button:hover,
.mobile-search button:hover,
.inline-search button:hover,
.btn-primary:hover,
.btn-light:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 36px rgba(244, 63, 94, 0.28);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--rose-100);
    color: var(--gray-700);
    font-size: 22px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--rose-100);
    background: #ffffff;
    padding: 16px 24px 22px;
}

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

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

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--gray-700);
}

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

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: linear-gradient(120deg, #fecdd3 0%, #f9a8d4 48%, #c4b5fd 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.36), transparent 30%), rgba(0, 0, 0, 0.22);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    min-height: 620px;
    margin: 0 auto;
    padding: 70px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 42px;
    align-items: center;
}

.hero-copy {
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    color: #fff1f2;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 8px 14px;
    font-weight: 700;
    backdrop-filter: blur(14px);
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 6vw, 70px);
    line-height: 1.03;
    letter-spacing: -0.04em;
}

.hero h1 span {
    color: #fecdd3;
}

.hero p {
    max-width: 660px;
    color: #fff1f2;
    font-size: 21px;
    line-height: 1.75;
    margin: 0 0 26px;
}

.hero-actions,
.section-actions,
.detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

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

.hero-meta span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 14px;
}

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

.hero-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.28);
    transform: translateZ(0);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-card:first-child {
    grid-column: span 2;
    min-height: 280px;
}

.hero-card:hover {
    transform: translateY(-7px) scale(1.02);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.34);
}

.hero-card img {
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.86) 100%);
}

.hero-card-body {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    color: #ffffff;
}

.hero-card-body strong {
    display: block;
    margin-bottom: 6px;
    font-size: 20px;
}

.hero-card-body small {
    color: rgba(255, 255, 255, 0.78);
}

.ribbon {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    color: #ffffff;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
}

.section,
.category-page,
.detail-page,
.search-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 24px;
}

.section.narrow {
    padding-top: 42px;
}

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

.section-kicker {
    color: var(--rose-600);
    font-weight: 800;
    margin: 0 0 8px;
}

.section h2,
.category-page h1,
.detail-title h1,
.search-page h1 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -0.03em;
}

.section-intro,
.category-intro,
.search-intro,
.detail-lead {
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 17px;
    max-width: 820px;
}

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

.movie-card {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.32s ease, box-shadow 0.32s ease;
}

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

.movie-card-link {
    display: block;
    height: 100%;
}

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

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

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

.movie-cover-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: rgba(0, 0, 0, 0.42);
    transition: opacity 0.3s ease;
}

.movie-card:hover .movie-cover-shade {
    opacity: 1;
}

.movie-type,
.movie-play,
.movie-year {
    position: absolute;
    z-index: 2;
}

.movie-type {
    top: 12px;
    left: 12px;
    color: #ffffff;
    border-radius: 999px;
    background: var(--rose-500);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

.movie-year {
    top: 12px;
    right: 12px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.55);
    padding: 6px 10px;
    font-size: 12px;
}

.movie-play {
    top: 50%;
    left: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rose-600);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%) scale(0.84);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.movie-info {
    display: block;
    padding: 18px;
}

.movie-info strong {
    display: -webkit-box;
    min-height: 48px;
    margin-bottom: 8px;
    color: var(--gray-900);
    font-size: 18px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
}

.movie-card:hover .movie-info strong {
    color: var(--rose-600);
}

.movie-info small {
    display: block;
    color: var(--gray-500);
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-desc {
    display: -webkit-box;
    color: var(--gray-600);
    line-height: 1.65;
    min-height: 52px;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.tag-row span,
.meta-pill,
.category-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: var(--rose-600);
    background: var(--rose-50);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.feature-band {
    background: linear-gradient(90deg, #eff6ff, #ecfeff);
}

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

.hot-card {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    background: #111827;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.hot-card img {
    height: 100%;
    object-fit: cover;
    opacity: 0.94;
    transition: transform 0.55s ease;
}

.hot-card:hover img {
    transform: scale(1.1);
}

.hot-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.9) 100%);
}

.hot-card-body {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    color: #ffffff;
}

.hot-card-body strong {
    display: -webkit-box;
    margin-bottom: 8px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-rank {
    position: absolute;
    z-index: 3;
    top: 14px;
    left: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange-500), #ef4444);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.35);
}

.category-panel {
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    border-radius: 34px;
    padding: 42px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow-md);
    padding: 28px;
    min-height: 220px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.category-card::before {
    content: "";
    position: absolute;
    right: -36px;
    top: -36px;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.16), rgba(168, 85, 247, 0.16));
}

.category-card h3 {
    margin: 0 0 12px;
    font-size: 25px;
}

.category-card p {
    color: var(--gray-600);
    line-height: 1.75;
    margin: 0 0 18px;
}

.category-card span {
    color: var(--rose-600);
    font-weight: 800;
}

.editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
    gap: 34px;
}

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

.editor-item {
    display: grid;
    grid-template-columns: 190px 1fr;
    overflow: hidden;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.editor-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.editor-item img {
    height: 100%;
    object-fit: cover;
}

.editor-copy {
    padding: 18px;
}

.editor-copy strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
}

.editor-copy p {
    color: var(--gray-600);
    line-height: 1.65;
    margin: 0 0 12px;
}

.tag-cloud {
    border-radius: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #faf5ff, #fdf2f8);
}

.tag-cloud h3 {
    margin: 0 0 20px;
    font-size: 28px;
}

.tag-cloud-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-cloud-list a {
    border-radius: 999px;
    background: #ffffff;
    color: var(--gray-700);
    padding: 10px 15px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
    transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.tag-cloud-list a:hover {
    color: #ffffff;
    background: linear-gradient(90deg, var(--purple-500), var(--pink-500));
    transform: scale(1.05);
}

.masonry-grid {
    columns: 3 260px;
    column-gap: 20px;
}

.masonry-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 20px;
    overflow: hidden;
    position: relative;
    border-radius: 24px;
    background: #111827;
    box-shadow: var(--shadow-md);
}

.masonry-card img {
    min-height: 220px;
    object-fit: cover;
    transition: transform 0.55s ease;
}

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

.masonry-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 15%, rgba(0, 0, 0, 0.82) 100%);
}

.masonry-body {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    color: #ffffff;
}

.filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 26px 0 30px;
}

.filter-chip {
    border: 1px solid var(--rose-200);
    border-radius: 999px;
    color: var(--gray-700);
    background: #ffffff;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 700;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.filter-chip:hover,
.filter-chip.active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
    transform: translateY(-2px);
}

.no-results {
    display: none;
    color: var(--gray-600);
    background: #ffffff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow-md);
}

.no-results.show {
    display: block;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--gray-500);
    margin-bottom: 24px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--rose-600);
    font-weight: 700;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: stretch;
    margin-bottom: 34px;
}

.detail-title {
    border-radius: 34px;
    background: linear-gradient(135deg, var(--rose-50), #fdf2f8);
    padding: 38px;
    box-shadow: var(--shadow-md);
}

.detail-title h1 {
    margin-bottom: 16px;
}

.detail-lead {
    margin-bottom: 22px;
}

.meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--rose-100), #ede9fe);
}

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

.player-section {
    margin-bottom: 42px;
}

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

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #030712;
    object-fit: contain;
}

.play-trigger {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #ffffff;
    border: 0;
    background: radial-gradient(circle at 50% 50%, rgba(244, 63, 94, 0.34), rgba(3, 7, 18, 0.7));
    cursor: pointer;
    font-size: 20px;
    font-weight: 800;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-trigger span {
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--rose-600);
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(244, 63, 94, 0.36);
}

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

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

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

.article-box h2,
.side-box h2 {
    margin: 0 0 18px;
    font-size: 28px;
}

.article-box p {
    color: var(--gray-700);
    line-height: 1.9;
    font-size: 17px;
}

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

.side-item {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    align-items: center;
}

.side-item img {
    height: 68px;
    border-radius: 14px;
    object-fit: cover;
}

.side-item strong {
    display: -webkit-box;
    margin-bottom: 6px;
    color: var(--gray-900);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.side-item small {
    color: var(--gray-500);
}

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

.rank-item {
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.rank-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.rank-link {
    display: grid;
    grid-template-columns: 72px 130px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px 18px;
}

.rank-num {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange-500), var(--rose-500));
}

.rank-link img {
    height: 82px;
    border-radius: 16px;
    object-fit: cover;
}

.rank-body strong {
    display: block;
    font-size: 18px;
    margin-bottom: 6px;
}

.rank-body small,
.rank-body span {
    display: block;
    color: var(--gray-600);
    line-height: 1.55;
}

.rank-tag {
    color: var(--rose-600);
    font-weight: 800;
    background: var(--rose-50);
    border-radius: 999px;
    padding: 8px 12px;
}

.site-footer {
    border-top: 1px solid var(--gray-200);
    background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
    color: var(--gray-600);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    margin-bottom: 16px;
}

.site-footer h3 {
    color: var(--gray-900);
    margin: 0 0 16px;
}

.site-footer p {
    line-height: 1.75;
    margin: 0;
}

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

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

.footer-bottom {
    border-top: 1px solid var(--gray-200);
    text-align: center;
    padding: 18px 24px;
}

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

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

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

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

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

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

    .footer-grid,
    .detail-content,
    .editor-layout {
        grid-template-columns: 1fr;
    }
}

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    .hero {
        min-height: auto;
    }

    .hero-inner {
        min-height: auto;
        padding-top: 54px;
    }

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

    .hero-card:first-child {
        grid-column: span 1;
    }

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

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

    .rank-link {
        grid-template-columns: 52px 92px minmax(0, 1fr);
    }

    .rank-tag {
        display: none;
    }
}

@media (max-width: 560px) {
    .nav-wrap,
    .section,
    .category-page,
    .detail-page,
    .search-page,
    .hero-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand {
        font-size: 19px;
    }

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

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

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

    .category-panel,
    .detail-title,
    .article-box,
    .side-box {
        padding: 24px;
        border-radius: 24px;
    }

    .editor-item,
    .side-item {
        grid-template-columns: 1fr;
    }

    .rank-link {
        grid-template-columns: 44px 78px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .rank-num {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }

    .rank-link img {
        height: 68px;
    }
}
