:root {
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --purple-50: #faf5ff;
    --purple-500: #a855f7;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --radius-xl: 18px;
    --radius-2xl: 26px;
    --shadow-md: 0 12px 30px rgba(17, 24, 39, 0.08);
    --shadow-xl: 0 24px 60px rgba(17, 24, 39, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-800);
    background: linear-gradient(135deg, var(--rose-50), var(--white) 42%, #fdf2f8);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 241, 242, 0.96), rgba(253, 242, 248, 0.96), rgba(250, 245, 255, 0.96));
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--white);
    background: linear-gradient(135deg, #fb7185, var(--pink-500));
    border-radius: 50%;
    box-shadow: 0 12px 26px rgba(244, 63, 94, 0.28);
    transition: transform 0.3s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08);
}

.brand-text span {
    display: block;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    color: transparent;
    background: linear-gradient(90deg, var(--rose-600), var(--pink-600));
    -webkit-background-clip: text;
    background-clip: text;
}

.brand-text small {
    display: block;
    margin-top: 2px;
    color: var(--gray-500);
    font-size: 12px;
}

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

.desktop-nav a {
    position: relative;
    color: var(--gray-700);
    font-weight: 700;
    transition: color 0.2s ease;
}

.desktop-nav a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    background: var(--rose-600);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
    content: "";
}

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

.desktop-nav a:hover::after {
    transform: scaleX(1);
}

.header-search {
    position: relative;
    flex: 0 0 260px;
}

.header-search input,
.mobile-search input,
.filter-search input {
    width: 100%;
    border: 2px solid #fecdd3;
    border-radius: 999px;
    outline: none;
    background: rgba(255, 255, 255, 0.86);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    padding: 10px 46px 10px 18px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-search input:focus {
    border-color: #fb7185;
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.16);
}

.header-search button {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    color: var(--rose-600);
    background: transparent;
    transform: translateY(-50%);
}

.menu-toggle {
    display: none;
    border: 0;
    color: var(--gray-700);
    background: transparent;
    font-size: 26px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid #fecdd3;
    padding: 16px;
    background: rgba(255, 255, 255, 0.96);
}

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

.mobile-search {
    display: flex;
    gap: 10px;
    margin: 0 auto 14px;
    width: min(100%, 560px);
}

.mobile-search input {
    padding: 10px 16px;
}

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

.mobile-panel nav {
    display: grid;
    gap: 8px;
    width: min(100%, 560px);
    margin: 0 auto;
}

.mobile-panel nav a {
    border-bottom: 1px solid var(--rose-100);
    padding: 10px 0;
    color: var(--gray-700);
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: var(--gray-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(680px, 100%);
    color: var(--white);
    animation: fadeUp 0.7s ease both;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #facc15;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.eyebrow::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.eyebrow.dark {
    color: var(--rose-600);
}

.hero h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 5vw, 58px);
    line-height: 1.1;
}

.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(26px, 4.2vw, 52px);
    line-height: 1.12;
}

.hero p {
    max-width: 720px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.detail-tags,
.tag-row,
.side-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span {
    border-radius: 999px;
    padding: 8px 15px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    font-size: 14px;
    font-weight: 700;
}

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

.primary-button,
.ghost-button,
.text-button,
.section-link,
.rank-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
    padding: 13px 26px;
    color: var(--white);
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
    box-shadow: 0 16px 36px rgba(244, 63, 94, 0.3);
}

.primary-button:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(90deg, var(--rose-600), var(--pink-600));
    box-shadow: 0 20px 44px rgba(244, 63, 94, 0.38);
}

.primary-button.full {
    width: 100%;
}

.ghost-button {
    border: 1px solid rgba(255, 255, 255, 0.42);
    padding: 12px 24px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

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

.ghost-button.light {
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-size: 36px;
    line-height: 1;
    transform: translateY(-50%);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    right: 0;
    bottom: 32px;
    left: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 10px;
}

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

.hero-dot.is-active {
    background: var(--white);
}

.section {
    padding: 58px 0;
}

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

.section-heading h2 {
    margin: 0;
    color: var(--gray-800);
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.2;
}

.compact-heading {
    align-items: center;
}

.section-link,
.text-button {
    color: var(--rose-600);
}

.section-link:hover,
.text-button:hover {
    color: var(--pink-600);
}

.category-band {
    margin-top: -32px;
    padding: 28px;
    border-radius: var(--radius-2xl);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
}

.category-scroll,
.filter-scroll,
.compact-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar,
.filter-scroll::-webkit-scrollbar,
.compact-row::-webkit-scrollbar {
    display: none;
}

.category-chip,
.filter-chip {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 12px 22px;
    color: var(--gray-700);
    background: var(--white);
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
    font-weight: 800;
    white-space: nowrap;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.category-arrows {
    display: flex;
    gap: 10px;
}

.category-arrows button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: var(--rose-600);
    background: var(--white);
    box-shadow: var(--shadow-md);
    font-size: 26px;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--rose-100), var(--purple-50));
}

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

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

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

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

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--white);
    background: rgba(244, 63, 94, 0.9);
    font-size: 12px;
    font-weight: 800;
}

.poster-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translateY(0);
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--rose-600);
    font-size: 13px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 0 0 8px;
    color: var(--gray-900);
    font-size: 19px;
    line-height: 1.32;
}

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

.movie-card p {
    display: -webkit-box;
    min-height: 3.2em;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--gray-500);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row span,
.detail-tags span,
.side-meta span {
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--rose-700);
    background: linear-gradient(90deg, var(--rose-100), #fce7f3);
    font-size: 12px;
    font-weight: 800;
}

.latest-section {
    border-radius: var(--radius-2xl);
    background: linear-gradient(90deg, var(--purple-50), #fdf2f8);
    box-shadow: var(--shadow-md);
    padding-right: 28px;
    padding-left: 28px;
}

.compact-card {
    position: relative;
    flex: 0 0 280px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--gray-900);
    box-shadow: var(--shadow-md);
}

.compact-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    opacity: 0.76;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.compact-card:hover img {
    opacity: 0.9;
    transform: scale(1.06);
}

.compact-card span,
.compact-card small {
    position: absolute;
    left: 18px;
    right: 18px;
    color: var(--white);
}

.compact-card span {
    bottom: 36px;
    font-size: 18px;
    font-weight: 900;
}

.compact-card small {
    bottom: 16px;
    color: rgba(255, 255, 255, 0.78);
}

.page-hero {
    color: var(--white);
    background: radial-gradient(circle at 20% 20%, rgba(244, 63, 94, 0.42), transparent 32%), linear-gradient(135deg, #111827, #312e81 52%, #831843);
}

.page-hero .container {
    padding: 80px 0;
}

.slim-hero .container {
    padding: 70px 0;
}

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

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

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

.detail-wrap .breadcrumb {
    color: var(--gray-500);
}

.detail-wrap .breadcrumb a:hover {
    color: var(--rose-600);
}

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

.category-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    align-items: stretch;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.category-card > a {
    position: relative;
    min-height: 220px;
    overflow: hidden;
}

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

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

.category-card > a span {
    position: absolute;
    right: 14px;
    bottom: 14px;
    left: 14px;
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--white);
    background: rgba(244, 63, 94, 0.9);
    text-align: center;
    font-weight: 900;
}

.category-card > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 26px 26px 26px 0;
}

.category-card h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.category-card p {
    margin: 0 0 18px;
    color: var(--gray-500);
}

.filter-panel {
    position: sticky;
    top: 92px;
    z-index: 5;
    margin-bottom: 28px;
    border: 1px solid rgba(254, 205, 211, 0.86);
    border-radius: var(--radius-2xl);
    padding: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
}

.filter-panel.raised {
    position: relative;
    top: auto;
}

.filter-search {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.filter-search input {
    padding: 13px 18px;
}

.filter-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 20px;
    color: var(--white);
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
    font-weight: 800;
}

.empty-state {
    display: none;
    margin: 30px 0;
    border-radius: var(--radius-xl);
    padding: 30px;
    color: var(--gray-500);
    background: var(--white);
    text-align: center;
    box-shadow: var(--shadow-md);
}

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

.rank-hero {
    background: radial-gradient(circle at 20% 20%, rgba(250, 204, 21, 0.22), transparent 26%), linear-gradient(135deg, #111827, #4c0519 58%, #831843);
}

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

.rank-feature a {
    position: relative;
    display: block;
    min-height: 420px;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    color: var(--white);
    background: var(--gray-900);
    box-shadow: var(--shadow-xl);
}

.rank-feature img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    opacity: 0.78;
    transition: transform 0.5s ease;
}

.rank-feature:hover img {
    transform: scale(1.06);
}

.rank-feature a::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.86));
    content: "";
}

.rank-feature div {
    position: absolute;
    right: 24px;
    bottom: 24px;
    left: 24px;
    z-index: 2;
}

.rank-feature h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

.rank-feature p {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-number {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: var(--gray-900);
    background: #facc15;
    font-size: 24px;
    font-weight: 900;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 62px 96px 1fr auto;
    gap: 18px;
    align-items: center;
    border-radius: var(--radius-xl);
    padding: 14px 18px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.rank-index {
    color: var(--rose-600);
    font-size: 24px;
    font-weight: 900;
}

.rank-thumb img {
    width: 96px;
    height: 68px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-info h3 {
    margin: 0 0 4px;
    font-size: 20px;
}

.rank-info p {
    display: -webkit-box;
    margin: 0 0 4px;
    overflow: hidden;
    color: var(--gray-500);
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.rank-info small {
    color: var(--gray-500);
}

.rank-play {
    padding: 10px 18px;
    color: var(--white);
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
}

.detail-page {
    background: linear-gradient(135deg, var(--rose-50), var(--white) 45%, var(--purple-50));
}

.detail-wrap {
    padding: 28px 0 20px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 24px;
    align-items: start;
}

.player-panel,
.detail-side,
.aside-card,
.detail-main {
    border-radius: var(--radius-2xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.player-panel {
    overflow: hidden;
    padding: 14px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
    aspect-ratio: 16 / 9;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    background: #000000;
    opacity: 1;
    transition: opacity 0.25s ease;
}

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

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.play-circle {
    position: absolute;
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
    font-size: 32px;
}

.detail-side {
    overflow: hidden;
    padding: 16px;
}

.detail-side > img {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 18px;
    object-fit: cover;
}

.side-meta {
    margin-top: 14px;
}

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

.detail-main {
    padding: clamp(24px, 4vw, 42px);
}

.detail-main h1 {
    margin: 0 0 12px;
    color: var(--gray-900);
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.12;
}

.lead-text {
    margin: 0 0 18px;
    color: var(--gray-700);
    font-size: 20px;
}

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

.detail-main h2,
.aside-card h2 {
    margin: 28px 0 12px;
    color: var(--gray-900);
    font-size: 24px;
}

.detail-main p {
    color: var(--gray-700);
    font-size: 17px;
}

.detail-aside {
    position: sticky;
    top: 104px;
    align-self: start;
}

.aside-card {
    padding: 24px;
}

.aside-card h2 {
    margin-top: 0;
}

.aside-card dl {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 10px 12px;
    margin: 0 0 24px;
}

.aside-card dt {
    color: var(--gray-500);
}

.aside-card dd {
    margin: 0;
    color: var(--gray-900);
    font-weight: 800;
}

.site-footer {
    margin-top: 70px;
    color: #d1d5db;
    background: linear-gradient(90deg, #111827, #1f2937, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 34px;
    padding: 48px 0;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 14px;
    color: var(--white);
}

.site-footer p,
.site-footer li {
    color: #9ca3af;
}

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

.site-footer a:hover {
    color: #fb7185;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 22px 16px;
    color: #9ca3af;
    text-align: center;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

    .menu-toggle {
        display: block;
    }

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

    .detail-side {
        display: none;
    }

    .detail-aside {
        position: static;
    }

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

@media (max-width: 820px) {
    .hero {
        min-height: 560px;
    }

    .hero-content {
        align-items: end;
        padding-bottom: 80px;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.84));
    }

    .hero-arrow {
        display: none;
    }

    .section-heading {
        display: block;
    }

    .section-link {
        margin-top: 10px;
    }

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

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

    .category-card > div {
        padding: 22px;
    }

    .rank-row {
        grid-template-columns: 42px 78px 1fr;
    }

    .rank-play {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .rank-thumb img {
        width: 78px;
        height: 58px;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1280px);
    }

    .brand-text span {
        font-size: 20px;
    }

    .brand-text small {
        display: none;
    }

    .hero {
        min-height: 520px;
    }

    .hero-actions,
    .filter-search,
    .mobile-search {
        flex-direction: column;
    }

    .primary-button,
    .ghost-button,
    .filter-search button,
    .mobile-search button {
        width: 100%;
        min-height: 46px;
    }

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

    .rank-feature a {
        min-height: 360px;
    }

    .rank-feature img {
        height: 360px;
    }

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