* {
    box-sizing: border-box;
}

:root {
    --red: #dc2626;
    --red-dark: #b91c1c;
    --rose: #e11d48;
    --orange: #ea580c;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #f1f5f9;
    --soft: #fff1f2;
    --paper: #ffffff;
    --shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
    --radius: 24px;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(248, 113, 113, 0.18);
    backdrop-filter: blur(14px);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.header-inner {
    width: min(1280px, calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--rose));
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.26);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: rotate(10deg) scale(1.04);
}

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

.brand-title {
    font-size: 21px;
    font-weight: 800;
    color: #111827;
}

.brand-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    white-space: nowrap;
}

.desktop-nav a {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    transition: color 0.2s ease;
}

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

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 270px;
    padding: 6px;
    border-radius: 999px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-bar input,
.filter-bar select {
    min-width: 0;
    border: 0;
    outline: 0;
    color: #111827;
    background: transparent;
}

.header-search input {
    flex: 1 1 auto;
    padding: 8px 8px 8px 14px;
}

.header-search button,
.mobile-search button,
.hero-search button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--rose));
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.header-search button {
    padding: 8px 14px;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.primary-button:hover,
.secondary-button:hover,
.white-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.24);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 0;
    border-radius: 50%;
    background: #fef2f2;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: var(--red);
}

.mobile-drawer {
    display: none;
    border-top: 1px solid #fee2e2;
    background: #ffffff;
    padding: 16px;
}

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

.mobile-search {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
}

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

.mobile-search button {
    padding: 8px 14px;
}

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

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    color: #374151;
    background: #fff7f7;
    font-weight: 700;
}

.hero-section {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 48%, #fdf2f8 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.34;
    background-image: linear-gradient(rgba(220, 38, 38, 0.10) 1px, transparent 1px), linear-gradient(90deg, rgba(220, 38, 38, 0.10) 1px, transparent 1px);
    background-size: 56px 56px;
}

.hero-orb {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.36;
    animation: floatOrb 8s ease-in-out infinite;
}

.hero-orb-one {
    top: 120px;
    right: 12%;
    background: #fb7185;
}

.hero-orb-two {
    left: 8%;
    bottom: 80px;
    background: #f97316;
    animation-delay: -3s;
}

@keyframes floatOrb {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-22px);
    }
}

.hero-inner {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 560px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 440px;
    align-items: center;
    gap: 54px;
}

.hero-copy {
    max-width: 680px;
}

.hero-badge,
.section-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    color: #991b1b;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(248, 113, 113, 0.22);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.08);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-badge {
    padding: 9px 16px;
    margin-bottom: 24px;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(48px, 8vw, 82px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.06em;
    color: #111827;
}

.hero-copy h1 span {
    display: block;
    margin-top: 12px;
    font-size: clamp(32px, 5vw, 56px);
    letter-spacing: -0.04em;
    color: transparent;
    background: linear-gradient(135deg, var(--red), var(--rose));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-copy p {
    max-width: 620px;
    margin: 24px 0 0;
    color: #4b5563;
    font-size: 20px;
}

.hero-search {
    display: flex;
    align-items: center;
    width: min(100%, 610px);
    gap: 10px;
    margin-top: 30px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(248, 113, 113, 0.24);
    border-radius: 999px;
    box-shadow: var(--shadow);
}

.hero-search input {
    flex: 1;
    padding: 14px 18px;
    font-size: 16px;
}

.hero-search button {
    padding: 13px 22px;
    font-weight: 800;
}

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

.primary-button,
.secondary-button,
.ghost-button,
.white-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--rose));
}

.secondary-button {
    color: #111827;
    background: #f3f4f6;
}

.ghost-button {
    color: #111827;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #fee2e2;
}

.white-button {
    color: var(--red);
    background: #ffffff;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-points span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #991b1b;
    background: #ffffffa8;
    font-size: 13px;
    font-weight: 700;
}

.hero-carousel {
    position: relative;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 30px 70px rgba(220, 38, 38, 0.16);
    padding: 16px;
    overflow: hidden;
}

.hero-slides {
    position: relative;
    min-height: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: 1fr auto;
    opacity: 0;
    pointer-events: none;
    transform: translateX(18px) scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-slide-image {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    border-radius: 26px;
    background: linear-gradient(135deg, #fee2e2, #fff7ed);
}

.hero-slide-image img,
.category-card img,
.category-cover img,
.poster-frame img,
.rank-poster img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.hero-slide-image:hover img,
.category-card:hover img,
.category-cover:hover img,
.poster-frame:hover img,
.rank-poster:hover img,
.detail-poster:hover img {
    transform: scale(1.06);
}

.hero-slide-content {
    padding: 18px 4px 4px;
}

.hero-slide-content span {
    color: var(--red);
    font-size: 13px;
    font-weight: 900;
}

.hero-slide-content h2 {
    margin: 6px 0 8px;
    font-size: 26px;
    line-height: 1.2;
}

.hero-slide-content p {
    margin: 0 0 10px;
    display: -webkit-box;
    overflow: hidden;
    color: #4b5563;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.text-link {
    display: inline-flex;
    color: var(--red);
    font-weight: 900;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #fecdd3;
    cursor: pointer;
}

.hero-dot.is-active {
    width: 28px;
    background: var(--red);
}

.content-section {
    padding: 76px 0;
}

.white-section {
    background: #ffffff;
}

.soft-section,
.pale-section {
    background: linear-gradient(135deg, #fff7f7, #fff7ed);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-kicker,
.page-kicker {
    padding: 7px 14px;
    margin-bottom: 14px;
}

.section-kicker.light {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.28);
}

.section-heading h2,
.page-hero h1,
.red-band h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p,
.red-band p {
    margin: 12px 0 0;
    color: #6b7280;
    font-size: 17px;
}

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

.wide-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid #f3f4f6;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: #fecaca;
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.12);
}

.poster-frame,
.category-cover,
.rank-poster,
.detail-poster,
.hero-slide-image {
    position: relative;
}

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

.poster-frame::after,
.category-cover::after,
.rank-poster::after,
.detail-poster::after,
.hero-slide-image::after {
    content: attr(data-title);
    position: absolute;
    inset: auto 12px 12px;
    display: none;
    color: #991b1b;
    font-weight: 900;
    text-align: center;
}

.poster-frame:has(img[style*="display: none"])::after,
.category-cover:has(img[style*="display: none"])::after,
.rank-poster:has(img[style*="display: none"])::after,
.detail-poster:has(img[style*="display: none"])::after,
.hero-slide-image:has(img[style*="display: none"])::after {
    display: block;
}

.play-cue {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 34px;
    opacity: 0;
    background: rgba(0, 0, 0, 0.34);
    transition: opacity 0.25s ease;
}

.poster-frame:hover .play-cue {
    opacity: 1;
}

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

.movie-meta-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

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

.movie-card p {
    margin: 0 0 12px;
    min-height: 44px;
    display: -webkit-box;
    overflow: hidden;
    color: #6b7280;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-tags,
.rank-tags,
.detail-tags,
.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-tags span,
.rank-tags span,
.detail-tags span,
.category-chips a {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #4b5563;
    background: #f3f4f6;
    font-size: 12px;
    font-weight: 700;
}

.movie-card-compact .movie-card-body {
    padding: 13px;
}

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

.movie-card-compact p {
    min-height: 40px;
    font-size: 13px;
}

.center-action {
    margin-top: 36px;
    text-align: center;
}

.red-band {
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--rose));
}

.red-band p {
    color: #ffe4e6;
}

.band-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 44px;
}

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

.mini-rank-list a {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    transition: background 0.2s ease, transform 0.2s ease;
}

.mini-rank-list a:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.22);
}

.mini-rank-list span {
    font-weight: 900;
    color: #fecdd3;
}

.mini-rank-list em {
    font-style: normal;
    color: #ffe4e6;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 26px;
    background: #fee2e2;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.10);
}

.category-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.10));
}

.category-card strong,
.category-card em {
    position: absolute;
    left: 18px;
    right: 18px;
    color: #ffffff;
}

.category-card strong {
    bottom: 58px;
    font-size: 22px;
    line-height: 1.2;
}

.category-card em {
    bottom: 18px;
    display: -webkit-box;
    overflow: hidden;
    font-style: normal;
    font-size: 13px;
    color: #f3f4f6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.page-main {
    padding-top: 76px;
}

.page-hero,
.detail-top {
    padding: 70px 0;
    background: linear-gradient(135deg, #fff1f2, #fff7ed);
}

.page-hero .container,
.detail-top .container {
    position: relative;
}

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

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

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

.category-overview-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    padding: 18px;
    border: 1px solid #f3f4f6;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.category-cover {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(135deg, #fee2e2, #fff7ed);
}

.category-overview-body h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.category-overview-body p {
    margin: 0 0 14px;
    color: #6b7280;
}

.sample-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.sample-links span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #991b1b;
    background: #fef2f2;
    font-size: 12px;
    font-weight: 700;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(130px, 180px));
    gap: 12px;
    margin-bottom: 24px;
}

.strong-filter {
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(130px, 180px));
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #fb7185;
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.12);
}

.category-chips {
    margin-bottom: 28px;
}

.category-chips a.is-current,
.category-chips a:hover {
    color: #ffffff;
    background: var(--red);
}

.empty-state {
    display: none;
    margin: 34px 0 0;
    padding: 28px;
    border-radius: 22px;
    color: #991b1b;
    background: #fef2f2;
    text-align: center;
    font-weight: 800;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 76px 92px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid #f3f4f6;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.rank-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--rose));
    font-weight: 900;
    font-size: 20px;
}

.rank-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #fee2e2, #fff7ed);
}

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

.rank-info h3 a:hover {
    color: var(--red);
}

.rank-info p {
    margin: 0 0 10px;
    color: #6b7280;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 42px;
    align-items: start;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 10px solid #ffffff;
    border-radius: 32px;
    background: linear-gradient(135deg, #fee2e2, #fff7ed);
    box-shadow: var(--shadow);
}

.detail-info h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-one-line {
    margin: 18px 0;
    color: #4b5563;
    font-size: 19px;
}

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

.detail-meta-grid span {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #fee2e2;
}

.detail-meta-grid strong {
    color: #991b1b;
    font-size: 12px;
}

.genre-line {
    margin: 0 0 16px;
    color: #4b5563;
}

.watch-section {
    padding: 54px 0;
    background: #111827;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #030712;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    aspect-ratio: 16 / 9;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.10));
    cursor: pointer;
}

.play-overlay span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    color: var(--red);
    background: #ffffff;
    font-size: 32px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.play-overlay strong {
    font-size: 20px;
}

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

.detail-content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

.detail-article,
.detail-side-card {
    border: 1px solid #f3f4f6;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.detail-article {
    padding: 30px;
}

.detail-article h2,
.detail-side-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.detail-article p {
    margin: 0 0 28px;
    color: #4b5563;
    font-size: 17px;
}

.detail-side-card {
    position: sticky;
    top: 98px;
    padding: 24px;
}

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

.detail-side-card dt {
    color: #991b1b;
    font-weight: 900;
}

.detail-side-card dd {
    margin: 0;
    color: #4b5563;
}

.side-nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
}

.side-nav-links a {
    padding: 10px;
    border-radius: 14px;
    background: #fef2f2;
    color: #991b1b;
    text-align: center;
    font-weight: 800;
}

.side-nav-links a:hover {
    color: #ffffff;
    background: var(--red);
}

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

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

    .desktop-nav a:nth-last-child(-n + 3) {
        display: none;
    }

    .header-search {
        flex-basis: 230px;
    }

    .hero-inner {
        grid-template-columns: 1fr 380px;
        gap: 34px;
    }

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

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

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

    .mobile-menu-button {
        display: block;
        margin-left: auto;
    }

    .header-inner {
        height: 68px;
    }

    .page-main {
        padding-top: 68px;
    }

    .hero-section {
        padding-top: 98px;
    }

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

    .hero-carousel {
        max-width: 520px;
    }

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

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

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

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

    .detail-side-card {
        position: static;
    }
}

@media (max-width: 620px) {
    .container,
    .hero-inner,
    .header-inner {
        width: min(100% - 22px, 1180px);
    }

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

    .brand-subtitle {
        display: none;
    }

    .hero-copy h1 {
        font-size: 44px;
    }

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

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

    .hero-slides {
        min-height: 470px;
    }

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

    .category-overview-card,
    .rank-item {
        grid-template-columns: 1fr;
    }

    .rank-number {
        width: 48px;
        height: 48px;
    }

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

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