:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;
    --blue-950: #172554;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-800: #1f2937;
    --gray-900: #0f172a;
    --white: #ffffff;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
    --soft-shadow: 0 14px 30px rgba(37, 99, 235, 0.12);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-800);
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 44%, #ffffff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--blue-600), var(--blue-700), var(--blue-800));
    box-shadow: 0 10px 28px rgba(30, 64, 175, 0.24);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: var(--blue-700);
    background: var(--white);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease;
}

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

.brand-text,
.footer-brand div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-text strong,
.footer-brand strong {
    font-size: 1.35rem;
    line-height: 1;
    letter-spacing: 0.02em;
}

.brand-text small,
.footer-brand small {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.75rem;
}

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

.nav-link {
    position: relative;
    padding: 25px 0;
    color: rgba(255, 255, 255, 0.92);
    transition: color 0.2s ease;
}

.nav-link::after {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 17px;
    height: 2px;
    content: "";
    border-radius: 999px;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

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

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

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: 100%;
    left: -16px;
    min-width: 180px;
    padding: 8px;
    color: var(--gray-800);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
}

.dropdown-panel a:hover {
    color: var(--blue-700);
    background: var(--blue-50);
}

.header-search {
    display: flex;
    align-items: center;
    width: min(300px, 28vw);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.header-search input {
    width: 100%;
    min-width: 0;
    padding: 10px 4px 10px 16px;
    color: var(--white);
    border: 0;
    outline: 0;
    background: transparent;
}

.header-search input::placeholder {
    color: rgba(219, 234, 254, 0.9);
}

.header-search button {
    width: 42px;
    height: 42px;
    color: var(--white);
    border: 0;
    background: transparent;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
}

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

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
}

.mobile-nav a {
    display: block;
    max-width: 1180px;
    margin: 0 auto 6px;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav.open {
    display: block;
    animation: fadeIn 0.2s ease;
}

.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.5), transparent 34%), linear-gradient(135deg, #0f172a 0%, #1d4ed8 54%, #172554 100%);
}

.hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 64, 175, 0.58) 48%, rgba(15, 23, 42, 0.86) 100%);
}

.hero-slider {
    position: relative;
    min-height: 570px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: 42px;
    padding: 62px 0 74px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: var(--blue-100);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.hero h1,
.hero h2 {
    margin: 22px 0 14px;
    font-size: clamp(2.35rem, 6vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero h2.hero-feature-title {
    margin-top: -2px;
    font-size: clamp(1.45rem, 3vw, 2.6rem);
    letter-spacing: -0.02em;
}

.hero p {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.05rem;
}

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

.hero-meta span,
.movie-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    color: var(--blue-800);
    border-radius: 999px;
    background: var(--blue-50);
    font-size: 0.82rem;
    font-weight: 600;
}

.hero .hero-meta span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.primary-button,
.secondary-button,
.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: var(--blue-800);
    background: var(--white);
    box-shadow: 0 18px 34px rgba(255, 255, 255, 0.18);
}

.secondary-button {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.text-button {
    min-height: 38px;
    color: var(--blue-700);
    background: var(--blue-50);
}

.primary-button:hover,
.secondary-button:hover,
.text-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--soft-shadow);
}

.hero-art {
    position: relative;
    z-index: 1;
    min-height: 420px;
}

.hero-poster {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.42);
    transform: rotate(1.4deg);
}

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

.hero-mini-card {
    position: absolute;
    left: -18px;
    bottom: 28px;
    width: min(280px, 80%);
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.64);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}

.hero-mini-card strong {
    display: block;
    margin-bottom: 6px;
}

.hero-mini-card span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.88rem;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: all 0.2s ease;
}

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

.hero-arrow {
    width: 38px;
    height: 38px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.main-content {
    padding: 46px 0 64px;
}

.section {
    margin-bottom: 54px;
}

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

.kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--blue-600);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.section-heading h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.12;
}

.section-heading p,
.page-title p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--gray-500);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, 0.65);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.15;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-950));
}

.poster-link img,
.detail-poster img,
.rank-thumb img,
.related-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

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

.poster-link::after {
    position: absolute;
    inset: auto 0 0;
    height: 55%;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.78));
}

.poster-play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--blue-700);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.25);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    color: var(--white);
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.28);
}

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    margin: 10px 0 8px;
    color: var(--gray-900);
    font-size: 1.08rem;
    line-height: 1.35;
}

.movie-info h3 a:hover,
.rank-main h3 a:hover,
.breadcrumb a:hover {
    color: var(--blue-700);
}

.movie-info p {
    min-height: 50px;
    margin: 0 0 12px;
    color: var(--gray-500);
    font-size: 0.92rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    color: var(--blue-700);
    border-radius: 999px;
    background: var(--blue-50);
    font-size: 0.78rem;
    font-weight: 600;
}

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

.category-card {
    display: block;
    min-height: 162px;
    padding: 22px;
    color: var(--white);
    border-radius: 22px;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.34), transparent 32%), linear-gradient(135deg, var(--blue-600), var(--blue-900));
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card h3 {
    margin: 0 0 10px;
    font-size: 1.28rem;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(160px, 210px) minmax(140px, 190px) auto;
    gap: 12px;
    align-items: end;
    margin: 22px 0 24px;
    padding: 18px;
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.filter-panel label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: var(--gray-500);
    font-size: 0.86rem;
    font-weight: 700;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    color: var(--gray-800);
    border: 1px solid var(--gray-200);
    border-radius: 13px;
    outline: 0;
    background: var(--white);
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.filter-panel button {
    height: 44px;
    padding: 0 18px;
    color: var(--white);
    border: 0;
    border-radius: 13px;
    background: linear-gradient(90deg, var(--blue-600), var(--blue-700));
}

.empty-state {
    display: none;
    padding: 28px;
    color: var(--gray-500);
    text-align: center;
    border: 1px dashed var(--gray-300);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.empty-state.show {
    display: block;
}

.page-hero {
    padding: 58px 0 34px;
    color: var(--white);
    background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.48), transparent 28%), linear-gradient(135deg, var(--blue-950), var(--blue-700));
}

.page-title {
    max-width: 900px;
}

.page-title h1,
.page-title p {
    color: var(--white);
}

.page-title p {
    color: rgba(255, 255, 255, 0.82);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 54px 86px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(203, 213, 225, 0.7);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: var(--white);
    border-radius: 16px;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
    font-weight: 900;
}

.rank-thumb {
    display: block;
    width: 78px;
    height: 104px;
    overflow: hidden;
    border-radius: 14px;
    background: var(--blue-900);
}

.rank-main h3 {
    margin: 0 0 6px;
    color: var(--gray-900);
}

.rank-main p {
    margin: 0 0 9px;
    color: var(--gray-500);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--gray-500);
    font-size: 0.92rem;
}

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

.player-section {
    overflow: hidden;
    border-radius: 26px;
    background: var(--gray-900);
    box-shadow: var(--shadow);
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-shell video {
    width: 100%;
    height: 100%;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: #020617;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.68;
    filter: blur(1px);
    transform: scale(1.02);
}

.play-circle {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    color: var(--blue-700);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.4);
    font-size: 2rem;
}

.player-cover.is-hidden {
    display: none;
}

.detail-title {
    margin: 24px 0;
}

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

.detail-title p {
    color: var(--gray-500);
    font-size: 1.02rem;
}

.detail-card {
    padding: 20px;
    border: 1px solid rgba(203, 213, 225, 0.7);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4.1;
    margin-bottom: 18px;
    border-radius: 18px;
    background: var(--blue-900);
}

.info-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
}

.info-list dt {
    color: var(--gray-500);
    font-weight: 700;
}

.info-list dd {
    margin: 0;
    color: var(--gray-800);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.article-box {
    margin-top: 26px;
    padding: 26px;
    border: 1px solid rgba(203, 213, 225, 0.7);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
}

.article-box h2 {
    margin: 0 0 14px;
    color: var(--gray-900);
}

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

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

.related-card {
    overflow: hidden;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.related-card a:first-child {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--blue-900);
}

.related-card h3 {
    margin: 10px 12px 4px;
    color: var(--gray-900);
    font-size: 0.96rem;
}

.related-card p {
    margin: 0 12px 12px;
    color: var(--gray-500);
    font-size: 0.82rem;
}

.site-footer {
    color: var(--gray-300);
    background: linear-gradient(135deg, var(--gray-900), #111827 52%, #0b1120);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 34px;
    padding: 46px 0 28px;
}

.footer-brand .brand-mark {
    color: var(--blue-700);
    background: var(--blue-100);
}

.footer-brand small {
    color: var(--gray-300);
}

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

.site-footer p {
    margin: 16px 0 0;
    max-width: 430px;
    color: var(--gray-300);
}

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0 26px;
    color: var(--gray-500);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .menu-toggle {
        display: block;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 46px 0 88px;
    }

    .hero-art {
        min-height: 360px;
    }

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

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

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

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

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

    .nav-wrap {
        min-height: 66px;
    }

    .brand-text strong {
        font-size: 1.08rem;
    }

    .brand-text small {
        display: none;
    }

    .hero h1,
    .hero h2 {
        font-size: clamp(2.1rem, 13vw, 3.4rem);
    }

    .hero-art {
        min-height: 300px;
    }

    .hero-mini-card {
        left: 10px;
        bottom: 16px;
    }

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

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

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

    .rank-row {
        grid-template-columns: 42px 70px minmax(0, 1fr);
    }

    .rank-row .text-button {
        grid-column: 1 / -1;
    }

    .rank-number {
        width: 38px;
        height: 38px;
        border-radius: 13px;
    }

    .rank-thumb {
        width: 64px;
        height: 86px;
    }

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

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 460px) {
    .movie-grid,
    .category-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .movie-info p {
        min-height: auto;
    }
}
