:root {
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --pink-500: #ec4899;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --green-500: #10b981;
    --blue-500: #3b82f6;
    --purple-500: #8b5cf6;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 10px 24px rgba(17, 24, 39, 0.08);
    --shadow-md: 0 18px 46px rgba(17, 24, 39, 0.12);
    --shadow-lg: 0 28px 70px rgba(136, 19, 55, 0.20);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: linear-gradient(135deg, var(--rose-50), #ffffff 42%, #fff7ed);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 4px 24px rgba(17, 24, 39, 0.08);
}

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

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

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--rose-500);
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    box-shadow: 0 12px 30px rgba(244, 63, 94, 0.34);
}

.brand-mark svg {
    width: 44px;
    height: 44px;
    color: transparent;
}

.brand-mark svg path:first-child {
    fill: url(#none);
}

.brand-mark svg {
    filter: drop-shadow(0 4px 8px rgba(136, 19, 55, 0.18));
}

.brand-mark svg path:first-child {
    fill: #f43f5e;
}

.brand-mark.small {
    width: 38px;
    height: 38px;
}

.brand-mark.small svg {
    width: 38px;
    height: 38px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--rose-600), var(--pink-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.brand-subtitle {
    margin-top: 3px;
    color: var(--gray-500);
    font-size: 12px;
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--gray-700);
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--rose-600);
    background: var(--rose-50);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--gray-100);
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--gray-700);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid var(--gray-200);
    background: rgba(255, 255, 255, 0.98);
}

.mobile-nav .nav-link {
    display: flex;
    width: 100%;
    margin-top: 8px;
}

.hero-section {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    padding-top: 70px;
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 570px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
    align-items: center;
    gap: 44px;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(44px, 7vw, 82px);
    line-height: 1.04;
    letter-spacing: -0.06em;
    font-weight: 900;
}

.hero-copy h1 span {
    color: #fde68a;
}

.hero-copy p {
    max-width: 720px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.92);
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
}

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

.hero-feature {
    display: grid;
    gap: 6px;
    max-width: 690px;
    margin: 26px 0 0;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
}

.hero-feature strong {
    font-size: 22px;
}

.hero-feature span {
    color: rgba(255, 255, 255, 0.86);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-light {
    color: var(--rose-600);
    background: var(--white);
    box-shadow: 0 16px 36px rgba(255, 255, 255, 0.28);
}

.btn-ghost {
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.30);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.hero-panel {
    position: relative;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.13);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 26px;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
}

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

.hero-poster:hover img {
    transform: scale(1.04);
}

.play-pill {
    position: absolute;
    left: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--rose-600);
    font-size: 24px;
    box-shadow: 0 18px 38px rgba(17, 24, 39, 0.20);
}

.hero-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.mini-card {
    position: relative;
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    transition: transform 0.2s ease, background 0.2s ease;
}

.mini-card:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.20);
}

.mini-card img {
    width: 78px;
    height: 58px;
    object-fit: cover;
    border-radius: 13px;
}

.mini-card strong,
.mini-card em {
    display: block;
}

.mini-card strong {
    font-size: 15px;
    line-height: 1.35;
}

.mini-card em {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.72);
    font-style: normal;
    font-size: 12px;
}

.mini-rank {
    position: absolute;
    left: 8px;
    top: 8px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--rose-600);
    background: var(--white);
    font-size: 12px;
    font-weight: 900;
}

.hero-glow {
    position: absolute;
    z-index: 1;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    filter: blur(40px);
    opacity: 0.42;
}

.hero-glow-one {
    left: -90px;
    top: 120px;
    background: #fff7ed;
}

.hero-glow-two {
    right: -120px;
    bottom: 20px;
    background: #fce7f3;
}

.hero-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(0deg, var(--rose-50), transparent);
}

.strip-block {
    margin-top: -46px;
    position: relative;
    z-index: 3;
}

.search-panel {
    display: grid;
    gap: 12px;
    padding: 22px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.search-panel label,
.inline-search span {
    color: var(--gray-700);
    font-weight: 800;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.search-row input,
.inline-search input {
    width: 100%;
    height: 50px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    outline: none;
    padding: 0 18px;
    color: var(--gray-900);
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.search-row button {
    min-width: 128px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(90deg, var(--rose-600), var(--pink-500));
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(244, 63, 94, 0.28);
}

.section-block {
    padding: 68px 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.section-title h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.section-title p {
    margin: 4px 0 0;
    color: var(--gray-500);
}

.section-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    border-radius: 16px;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    box-shadow: 0 16px 34px rgba(244, 63, 94, 0.26);
    font-size: 22px;
    font-weight: 900;
}

.tint-section {
    width: 100%;
}

.green-tint {
    background: linear-gradient(135deg, #ecfdf5, #ffffff 52%, #eff6ff);
}

.rose-tint {
    background: linear-gradient(135deg, var(--rose-50), #ffffff 45%, #fdf2f8);
}

.movie-grid,
.featured-grid,
.ranking-grid,
.category-grid,
.category-overview-grid {
    display: grid;
    gap: 22px;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.88);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(244, 63, 94, 0.26);
    box-shadow: var(--shadow-md);
}

.poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fce7f3, #fff7ed);
}

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

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

.poster-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.18));
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.rank-badge {
    position: absolute;
    z-index: 2;
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--rose-600);
    background: rgba(255, 255, 255, 0.94);
    font-weight: 900;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.15);
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.card-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    color: var(--rose-600);
    background: var(--rose-50);
    font-size: 12px;
    font-weight: 800;
}

.card-body h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.card-body h2 a:hover {
    color: var(--rose-600);
}

.card-body p {
    margin: 10px 0 0;
    color: var(--gray-500);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-row span {
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    color: var(--gray-700);
    background: var(--gray-100);
    font-size: 12px;
    font-weight: 700;
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.rating {
    color: var(--amber-500);
    font-weight: 900;
}

.card-foot a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(90deg, var(--rose-600), var(--pink-500));
    font-size: 13px;
    font-weight: 900;
}

.large-card .poster {
    aspect-ratio: 16 / 10;
}

.horizontal-card {
    display: grid;
    grid-template-columns: 170px 1fr;
    min-height: 210px;
}

.horizontal-card .poster {
    height: 100%;
    aspect-ratio: auto;
}

.horizontal-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-tile,
.category-overview-card {
    display: flex;
    flex-direction: column;
    min-height: 176px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(229, 231, 235, 0.82);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile span,
.category-card-head span {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    font-size: 22px;
    font-weight: 900;
}

.category-tile strong {
    margin-top: 18px;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.category-tile em {
    margin-top: 8px;
    color: var(--gray-500);
    font-style: normal;
}

.theme-amber .category-card-head span,
.category-tile.theme-amber span,
.compact-hero.theme-amber {
    background: linear-gradient(135deg, #f59e0b, #fb7185);
}

.theme-green .category-card-head span,
.category-tile.theme-green span,
.compact-hero.theme-green {
    background: linear-gradient(135deg, #10b981, #22c55e);
}

.theme-pink .category-card-head span,
.category-tile.theme-pink span,
.compact-hero.theme-pink {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.theme-blue .category-card-head span,
.category-tile.theme-blue span,
.compact-hero.theme-blue {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.theme-purple .category-card-head span,
.category-tile.theme-purple span,
.compact-hero.theme-purple {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.page-shell {
    padding-top: 70px;
}

.page-hero {
    color: var(--white);
    background-size: cover;
    background-position: center;
}

.compact-hero {
    padding: 76px 0;
    color: var(--gray-900);
    background: linear-gradient(135deg, var(--rose-50), #ffffff, #fff7ed);
}

.compact-hero h1,
.ranking-hero h1 {
    margin: 0;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.1;
    letter-spacing: -0.06em;
}

.compact-hero p,
.ranking-hero p {
    max-width: 740px;
    margin: 16px 0 0;
    color: var(--gray-500);
    font-size: 19px;
}

.ranking-hero {
    min-height: 430px;
    display: flex;
    align-items: center;
}

.ranking-hero p {
    color: rgba(255, 255, 255, 0.86);
}

.hero-rank-content {
    padding: 88px 0 80px;
}

.hero-rank-content .btn {
    margin-top: 28px;
}

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

.category-card-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.category-card-head h2 {
    margin: 0;
    font-size: 22px;
}

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

.category-samples {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.category-samples .mini-card {
    color: var(--gray-900);
    background: var(--gray-50);
}

.category-samples .mini-card em {
    color: var(--gray-500);
}

.category-more,
.soft-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 20px;
    padding: 0 18px;
    border-radius: 999px;
    color: var(--rose-600);
    background: var(--rose-50);
    font-weight: 900;
}

.tool-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
}

.inline-search {
    display: grid;
    gap: 8px;
    min-width: min(520px, 100%);
}

.search-layout {
    display: grid;
    gap: 18px;
    margin-bottom: 30px;
}

.all-search {
    max-width: 720px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    min-height: 40px;
    border: 0;
    border-radius: 999px;
    padding: 0 16px;
    color: var(--gray-700);
    background: var(--gray-100);
    font-weight: 800;
    cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
    color: var(--white);
    background: linear-gradient(90deg, var(--rose-600), var(--pink-500));
}

.empty-search {
    display: none;
    padding: 42px 0;
    color: var(--gray-500);
    text-align: center;
    font-weight: 800;
}

.detail-shell {
    padding-top: 70px;
}

.detail-hero {
    color: var(--white);
    background-size: cover;
    background-position: center;
    padding: 42px 0 68px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

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

.detail-head-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, #fce7f3, #fff7ed);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-intro h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 70px);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.detail-one-line {
    max-width: 830px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
}

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

.detail-meta span,
.detail-tags span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

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

.player-card {
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow-lg);
}

.player-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
    cursor: pointer;
}

.player-box.is-playing .player-overlay {
    display: none;
}

.player-icon {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--rose-600);
    background: rgba(255, 255, 255, 0.94);
    font-size: 32px;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
}

.player-overlay strong {
    max-width: 80%;
    font-size: clamp(22px, 4vw, 38px);
    line-height: 1.2;
    text-align: center;
}

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

.detail-article,
.detail-aside {
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-sm);
}

.detail-article {
    padding: 30px;
}

.detail-aside {
    padding: 26px;
    align-self: start;
}

.detail-article h2,
.detail-aside h2 {
    margin: 0 0 16px;
    font-size: 26px;
    letter-spacing: -0.04em;
}

.detail-article p {
    margin: 0 0 24px;
    color: var(--gray-700);
}

.detail-aside dl {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px 14px;
    margin: 0;
}

.detail-aside dt {
    color: var(--gray-500);
    font-weight: 800;
}

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

.site-footer {
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.82);
    border-top: 1px solid var(--gray-200);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(160px, 0.5fr));
    gap: 34px;
}

.footer-brand p {
    max-width: 500px;
    color: var(--gray-500);
}

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

.footer-column h2 {
    margin: 0 0 8px;
    font-size: 16px;
}

.footer-column a {
    color: var(--gray-500);
    font-weight: 700;
}

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

.footer-bottom {
    padding: 18px 16px;
    color: var(--gray-500);
    border-top: 1px solid var(--gray-200);
    text-align: center;
    font-size: 14px;
}

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

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

    .hero-inner {
        grid-template-columns: 1fr;
        padding: 48px 0;
    }

    .hero-panel {
        max-width: 620px;
    }

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

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

    .mobile-toggle {
        display: inline-block;
    }

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

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

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

    .horizontal-card {
        grid-template-columns: 130px 1fr;
        min-height: 170px;
    }

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

    .detail-cover {
        width: min(260px, 80vw);
    }

    .tool-row {
        align-items: stretch;
        flex-direction: column;
    }

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

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

    .brand-subtitle {
        display: none;
    }

    .hero-section,
    .page-shell,
    .detail-shell {
        padding-top: 64px;
    }

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

    .hero-inner {
        min-height: auto;
        padding: 48px 0 84px;
    }

    .hero-copy p,
    .detail-one-line {
        font-size: 17px;
    }

    .hero-actions,
    .search-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .search-row button {
        height: 50px;
    }

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

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

    .horizontal-card .poster {
        aspect-ratio: 16 / 10;
    }

    .section-block {
        padding: 48px 0;
    }

    .detail-article,
    .detail-aside {
        padding: 22px;
    }
}
