:root {
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --accent-400: #facc15;
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-hover: 0 24px 60px rgba(15, 23, 42, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--neutral-800);
    background: linear-gradient(180deg, var(--neutral-50), #ffffff 42%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 229, 229, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-600);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.28);
}

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

.nav-link {
    color: var(--neutral-700);
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--primary-600);
}

.nav-search {
    position: relative;
    width: 260px;
}

.nav-search input,
.mobile-search input,
.filter-search-box input,
.search-main input {
    width: 100%;
    border: 1px solid var(--neutral-300);
    border-radius: 999px;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
    height: 42px;
    padding: 0 46px 0 18px;
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-search-box input:focus,
.search-main input:focus,
.filter-selects select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.nav-search button {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    color: var(--neutral-500);
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.mobile-toggle {
    display: none;
    border: 0;
    color: var(--neutral-700);
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-panel.is-open {
    display: grid;
    gap: 10px;
}

.mobile-panel a,
.mobile-search button {
    padding: 12px 14px;
    color: var(--neutral-700);
    background: var(--primary-50);
    border-radius: 14px;
    font-weight: 650;
}

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

.mobile-search input {
    height: 44px;
    padding: 0 16px;
}

.mobile-search button {
    border: 0;
    color: var(--primary-700);
    cursor: pointer;
}

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

.hero {
    position: relative;
    min-height: 500px;
    height: 70vh;
    max-height: 800px;
    overflow: hidden;
    color: #ffffff;
}

.hero-media,
.hero-media img,
.hero-shade {
    position: absolute;
    inset: 0;
}

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

.hero-shade {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: min(1180px, calc(100% - 32px));
}

.hero-kicker,
.detail-kicker,
.sub-hero span,
.section-heading span {
    color: var(--primary-500);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 760px;
    margin: 18px 0;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(18px, 2vw, 24px);
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 26px 0;
}

.hero-meta span,
.detail-meta span {
    padding: 8px 14px;
    color: #ffffff;
    background: rgba(14, 165, 233, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

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

.primary-button,
.ghost-button,
.ranking-more,
.filter-selects button,
.search-main button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.search-main button {
    color: #ffffff;
    background: var(--primary-600);
    box-shadow: 0 16px 30px rgba(2, 132, 199, 0.28);
}

.primary-button:hover,
.search-main button:hover {
    background: var(--primary-700);
    box-shadow: 0 20px 40px rgba(2, 132, 199, 0.34);
    transform: translateY(-2px);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.page-intro {
    padding: 52px 0 12px;
}

.page-intro h2,
.section-heading h2,
.panel-title-row h2,
.ranking-panel h2,
.detail-content h2,
.related-section h2,
.table-panel h2 {
    margin: 0;
    color: var(--neutral-900);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.16;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.page-intro p,
.section-heading p,
.panel-title-row p,
.ranking-panel p,
.sub-hero p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--neutral-600);
}

.section-heading {
    margin-bottom: 28px;
}

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

.large-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

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

.movie-card {
    min-width: 0;
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.movie-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--neutral-200);
}

.wide-poster {
    aspect-ratio: 16 / 9;
}

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

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

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

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

.movie-year,
.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 5px 10px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.68);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.rank-badge {
    left: 12px;
    right: auto;
    background: var(--primary-600);
}

.play-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--primary-500);
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.74);
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24);
}

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

.movie-info {
    padding: 18px;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 24px;
    margin-bottom: 8px;
}

.movie-tags span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    color: var(--primary-700);
    background: var(--primary-50);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.movie-info h3 {
    display: -webkit-box;
    margin: 0;
    color: var(--neutral-900);
    font-size: 18px;
    line-height: 1.3;
    font-weight: 850;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

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

.movie-info p {
    display: -webkit-box;
    min-height: 48px;
    margin: 10px 0 14px;
    color: var(--neutral-600);
    font-size: 14px;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--neutral-500);
    font-size: 13px;
}

.movie-meta span {
    padding: 4px 8px;
    background: var(--neutral-100);
    border-radius: 8px;
}

.movie-card-horizontal a {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 0;
}

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

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

.accent-panel,
.white-panel,
.table-panel {
    margin-top: 72px;
    margin-bottom: 72px;
    padding: 34px;
    border-radius: var(--radius-xl);
}

.accent-panel {
    background: linear-gradient(135deg, var(--primary-50), #fdf4ff);
}

.white-panel,
.table-panel {
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.panel-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.panel-title-row a,
.ranking-more {
    color: var(--primary-600);
    font-weight: 800;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 32px;
    margin-bottom: 88px;
}

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

.category-tile {
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
    border-color: var(--primary-500);
    box-shadow: var(--shadow-soft);
    transform: translateY(-4px);
}

.category-tile span {
    color: var(--neutral-900);
    font-size: 20px;
    font-weight: 850;
}

.category-tile strong {
    display: block;
    margin: 10px 0;
    color: var(--primary-600);
    font-size: 32px;
    line-height: 1;
}

.category-tile small {
    color: var(--neutral-600);
}

.ranking-panel {
    align-self: start;
    padding: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--neutral-800), var(--neutral-900));
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.ranking-panel h2 {
    color: #ffffff;
}

.ranking-panel p {
    color: rgba(255, 255, 255, 0.68);
}

.ranking-panel ol {
    margin: 22px 0;
    padding: 0;
    list-style: none;
}

.ranking-panel li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ranking-panel li a {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    padding: 12px 0;
    align-items: center;
}

.ranking-number {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    font-weight: 900;
}

.ranking-title {
    overflow: hidden;
    color: #ffffff;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-panel small {
    grid-column: 2;
    color: rgba(255, 255, 255, 0.54);
}

.sub-hero {
    padding: 82px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 16%, rgba(14, 165, 233, 0.36), transparent 30%),
        linear-gradient(135deg, var(--neutral-900), var(--neutral-800));
}

.sub-hero h1 {
    max-width: 900px;
    margin: 12px 0;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.sub-hero p {
    color: rgba(255, 255, 255, 0.72);
}

.listing-section,
.search-page {
    padding: 56px 0 90px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.filter-search-box input {
    height: 48px;
    padding: 0 18px;
}

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

.filter-selects select {
    height: 48px;
    padding: 0 36px 0 14px;
    color: var(--neutral-700);
    background: #ffffff;
    border: 1px solid var(--neutral-300);
    border-radius: 999px;
    outline: none;
}

.filter-selects button {
    border: 0;
    color: var(--primary-700);
    background: var(--primary-50);
    cursor: pointer;
}

.filter-count {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--neutral-500);
    font-size: 14px;
}

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

.category-card {
    overflow: hidden;
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.category-card div {
    padding: 24px;
}

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

.category-card h2 {
    margin: 8px 0;
    color: var(--neutral-900);
    font-size: 24px;
}

.category-card p {
    margin: 0;
    color: var(--neutral-600);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--neutral-200);
    text-align: left;
}

th {
    color: var(--neutral-900);
    background: var(--neutral-50);
}

td a {
    color: var(--primary-700);
    font-weight: 800;
}

.search-main {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-bottom: 24px;
}

.search-main input {
    height: 54px;
    padding: 0 20px;
}

.search-main button {
    border: 0;
    cursor: pointer;
}

.search-summary {
    margin: 0 0 24px;
    color: var(--neutral-600);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: var(--neutral-900);
}

.detail-bg,
.detail-bg img,
.detail-bg div {
    position: absolute;
    inset: 0;
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(14px) saturate(0.92);
    transform: scale(1.08);
    opacity: 0.35;
}

.detail-bg div {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.58));
}

.detail-shell {
    position: relative;
    z-index: 1;
    padding: 34px 0 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #ffffff;
}

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

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

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

.detail-main h1 {
    max-width: 880px;
    margin: 12px 0 16px;
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1.06;
    font-weight: 900;
    letter-spacing: -0.05em;
}

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

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}

.player-section {
    padding: 64px 0 40px;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    background: #000000;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-hover);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.74));
    border: 0;
    cursor: pointer;
}

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

.player-play {
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    background: var(--primary-600);
    border-radius: 999px;
    font-size: 34px;
    box-shadow: 0 18px 45px rgba(2, 132, 199, 0.4);
}

.player-overlay strong {
    max-width: min(760px, 90%);
    font-size: clamp(24px, 4vw, 44px);
    line-height: 1.15;
}

.player-overlay em {
    font-style: normal;
    opacity: 0.82;
}

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

.detail-content article,
.detail-content aside {
    padding: 32px;
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.detail-content h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.detail-content p {
    margin: 0 0 28px;
    color: var(--neutral-700);
    font-size: 17px;
    line-height: 1.9;
}

.detail-content p:last-child {
    margin-bottom: 0;
}

dl {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px 16px;
    margin: 0;
}

dt {
    color: var(--neutral-500);
}

dd {
    margin: 0;
    color: var(--neutral-900);
    font-weight: 750;
}

.related-section {
    padding: 26px 0 90px;
}

.site-footer {
    color: var(--neutral-300);
    background: var(--neutral-900);
}

.footer-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 34px;
    padding: 52px 0 34px;
}

.footer-brand {
    color: #ffffff;
}

.footer-about p {
    max-width: 520px;
    color: var(--neutral-500);
}

.footer-links h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.footer-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li + li {
    margin-top: 8px;
}

.footer-links a {
    color: var(--neutral-400);
}

.footer-links a:hover {
    color: var(--primary-500);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: var(--neutral-500);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

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

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

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

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

@media (max-width: 760px) {
    .nav-shell {
        height: 64px;
    }

    .brand,
    .footer-brand {
        font-size: 20px;
    }

    .hero {
        min-height: 560px;
        height: auto;
    }

    .hero-content {
        min-height: 560px;
        padding: 56px 0;
    }

    .hero-shade {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.82));
    }

    .movie-grid,
    .compact-grid,
    .large-grid,
    .category-overview-grid,
    .horizontal-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

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

    .filter-panel,
    .panel-title-row,
    .search-main {
        grid-template-columns: 1fr;
    }

    .filter-selects {
        width: 100%;
    }

    .filter-selects select,
    .filter-selects button {
        width: 100%;
    }

    .accent-panel,
    .white-panel,
    .table-panel {
        padding: 22px;
    }

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

    .detail-poster {
        max-width: 280px;
    }

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

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

@media (max-width: 520px) {
    .movie-grid,
    .compact-grid,
    .large-grid,
    .category-overview-grid,
    .horizontal-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-button,
    .ghost-button {
        width: 100%;
    }

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