:root {
    --bg-deep: #020617;
    --bg-dark: #0f172a;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-soft: #64748b;
    --text-light: #e2e8f0;
    --line: rgba(148, 163, 184, 0.28);
    --emerald: #10b981;
    --cyan: #22d3ee;
    --amber: #f59e0b;
    --shadow: 0 24px 80px rgba(15, 23, 42, 0.16);
    --radius-xl: 28px;
    --radius-lg: 18px;
    --radius-md: 14px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-main);
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 45%, #f8fafc 100%);
    min-width: 320px;
}

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

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

button,
input {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

.page-shell {
    min-height: 100vh;
    overflow: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #ffffff;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.25);
    backdrop-filter: blur(16px);
}

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

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.logo span,
.footer-logo {
    background: linear-gradient(90deg, var(--emerald), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.desktop-nav > a,
.nav-dropdown > button {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 14px;
    color: #cbd5e1;
    background: transparent;
    border-radius: 10px;
    transition: 0.2s ease;
}

.desktop-nav > a:hover,
.nav-dropdown:hover > button {
    color: #ffffff;
    background: rgba(148, 163, 184, 0.16);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    display: grid;
    min-width: 180px;
    padding: 10px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}

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

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

.nav-dropdown-panel a:hover {
    color: #34d399;
    background: rgba(148, 163, 184, 0.14);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 4px;
}

.header-search input {
    width: 220px;
    height: 40px;
    padding: 0 16px;
    color: #ffffff;
    background: rgba(51, 65, 85, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    outline: none;
}

.header-search input:focus {
    border-color: rgba(16, 185, 129, 0.9);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.header-search button,
.quick-search-panel button {
    height: 40px;
    padding: 0 18px;
    color: #06221a;
    font-weight: 800;
    background: linear-gradient(90deg, var(--emerald), var(--cyan));
    border-radius: 999px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    background: rgba(148, 163, 184, 0.16);
    border-radius: 12px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 99px;
}

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

.mobile-nav a {
    padding: 12px 14px;
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.12);
    border-radius: 12px;
}

.hero {
    position: relative;
    min-height: 670px;
    color: #ffffff;
    background: var(--bg-deep);
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.05);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 32%, rgba(34, 211, 238, 0.18), transparent 34%), linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.76) 45%, rgba(15, 23, 42, 0.24) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.18) 50%, rgba(2, 6, 23, 0.76) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 670px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 54px;
    padding: 90px 0 120px;
}

.eyebrow {
    margin: 0 0 12px;
    color: #34d399;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero-summary {
    max-width: 760px;
    margin: 24px 0 0;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.9;
}

.hero-tags,
.tag-row,
.footer-tags,
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.footer-tags a,
.filter-tags button {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    color: #047857;
    font-size: 12px;
    font-weight: 800;
    background: rgba(209, 250, 229, 0.92);
    border-radius: 999px;
}

.hero-actions,
.detail-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;
    font-weight: 900;
    border-radius: 999px;
    transition: 0.2s ease;
}

.btn-primary {
    color: #042018;
    background: linear-gradient(90deg, var(--emerald), var(--cyan));
    box-shadow: 0 18px 36px rgba(16, 185, 129, 0.22);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

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

.hero-poster span,
.play-mark {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 38px;
    background: rgba(0, 0, 0, 0.28);
    opacity: 0;
    transition: 0.2s ease;
}

.hero-poster:hover span,
.poster-link:hover .play-mark {
    opacity: 1;
}

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

.hero-control > button {
    width: 44px;
    height: 44px;
    color: #ffffff;
    font-size: 30px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 50%;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.hero-dot.is-active {
    width: 34px;
    background: linear-gradient(90deg, var(--emerald), var(--cyan));
}

.quick-search-panel,
.content-section,
.inner-page,
.movie-detail-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.quick-search-panel {
    position: relative;
    z-index: 8;
    margin-top: -58px;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    align-items: center;
    gap: 24px;
    padding: 26px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.quick-search-panel h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.player-section h2,
.detail-content h2,
.category-card-large h2 {
    margin: 0;
    color: var(--text-main);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.quick-search-panel h2,
.section-heading h2,
.player-section h2,
.detail-content h2 {
    font-size: clamp(26px, 3vw, 38px);
}

.quick-search-panel form {
    display: flex;
    gap: 10px;
}

.quick-search-panel input,
.filter-panel input {
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    color: var(--text-main);
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    outline: none;
}

.quick-search-panel input:focus,
.filter-panel input:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

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

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

.section-heading > a,
.text-link {
    color: #059669;
    font-weight: 900;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 22px;
    color: #ffffff;
    background: #0f172a;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    transition: 0.35s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.86));
}

.category-tile span,
.category-tile p {
    position: relative;
    z-index: 2;
}

.category-tile span {
    display: block;
    margin-top: 54px;
    font-size: 22px;
    font-weight: 900;
}

.category-tile p {
    margin: 10px 0 0;
    color: #dbeafe;
    font-size: 14px;
    line-height: 1.7;
}

.category-tile:hover img {
    transform: scale(1.08);
    opacity: 0.62;
}

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

.movie-grid--wide {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-bottom: 70px;
}

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

.movie-card {
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    transition: 0.25s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.78));
}

.poster-meta {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 5px 9px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.58);
    border-radius: 999px;
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #06221a;
    background: linear-gradient(90deg, var(--amber), #fde68a);
    border-radius: 12px;
}

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

.movie-card-title {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    color: var(--text-main);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 46px;
    margin: 9px 0 12px;
    overflow: hidden;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.tag-row {
    margin-top: 12px;
}

.tag-row span {
    min-height: 26px;
    padding: 4px 9px;
    color: #047857;
    background: #d1fae5;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 42px 64px 1fr;
    align-items: center;
    gap: 12px;
    min-height: 88px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transition: 0.2s ease;
}

.rank-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.rank-num {
    color: #059669;
    font-size: 22px;
    font-weight: 1000;
    text-align: center;
}

.rank-row img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-text strong,
.rank-text em {
    display: block;
}

.rank-text strong {
    color: var(--text-main);
    font-size: 15px;
}

.rank-text em {
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 12px;
    font-style: normal;
}

.inner-page,
.movie-detail-page {
    padding: 30px 0 80px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 10px 0 22px;
    color: #64748b;
    font-size: 14px;
}

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

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 54px;
    color: #ffffff;
    background: radial-gradient(circle at 78% 18%, rgba(34, 211, 238, 0.24), transparent 30%), linear-gradient(135deg, #0f172a, #1e293b 48%, #042f2e);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    max-width: 820px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 58px);
}

.page-hero p:last-child {
    max-width: 790px;
    margin: 18px 0 0;
    color: #dbeafe;
    font-size: 17px;
    line-height: 1.8;
}

.filter-panel {
    display: grid;
    gap: 16px;
    margin: 26px 0 26px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.filter-panel--large {
    padding: 26px;
}

.filter-tags button {
    color: #047857;
    background: #d1fae5;
}

.category-list-large {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.category-card-large {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.category-cover {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
}

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

.category-card-large p {
    color: var(--text-soft);
    line-height: 1.75;
}

.detail-hero {
    position: relative;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 34px;
    padding: 34px;
    color: #ffffff;
    background: radial-gradient(circle at 76% 20%, rgba(34, 211, 238, 0.24), transparent 36%), linear-gradient(135deg, #0f172a, #111827 55%, #042f2e);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

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

.detail-info {
    align-self: center;
}

.detail-info h1 {
    color: #ffffff;
    font-size: clamp(36px, 5vw, 64px);
}

.detail-one-line {
    max-width: 790px;
    margin: 20px 0 0;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.9;
}

.tag-row--detail span {
    color: #eafff8;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.28);
}

.player-section,
.detail-content,
.detail-neighbor,
.related-section {
    margin-top: 34px;
}

.player-section {
    padding: 28px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.movie-player {
    position: relative;
    overflow: hidden;
    margin-top: 22px;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 22px;
}

.movie-video,
.player-cover,
.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.movie-video {
    z-index: 1;
    background: #000000;
}

.player-cover {
    z-index: 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 0;
    background: #000000;
}

.player-cover img {
    object-fit: cover;
    opacity: 0.62;
}

.player-cover span {
    position: relative;
    z-index: 2;
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 38px;
    background: rgba(16, 185, 129, 0.92);
    border-radius: 50%;
    box-shadow: 0 18px 40px rgba(16, 185, 129, 0.36);
    transition: 0.2s ease;
}

.player-cover:hover span {
    transform: scale(1.08);
}

.movie-player.is-playing .player-cover {
    display: none;
}

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

.detail-content article,
.detail-side,
.detail-neighbor {
    padding: 28px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-xl);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.detail-content article p {
    margin: 14px 0 26px;
    color: #334155;
    font-size: 16px;
    line-height: 1.95;
}

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

.detail-side dt {
    color: #64748b;
    font-weight: 800;
}

.detail-side dd {
    margin: 0;
    color: #0f172a;
    font-weight: 700;
}

.detail-neighbor {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.detail-neighbor a {
    color: #059669;
    font-weight: 900;
}

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

.movie-card--compact .movie-card-body p {
    min-height: auto;
    -webkit-line-clamp: 1;
}

.site-footer {
    margin-top: 40px;
    color: #cbd5e1;
    background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 1.3fr 0.8fr;
    gap: 34px;
    padding: 54px 0 28px;
}

.footer-grid p {
    color: #94a3b8;
    line-height: 1.8;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.footer-links a:hover {
    color: #34d399;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: #64748b;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

@media (max-width: 1100px) {
    .header-search {
        display: none;
    }

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

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

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

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

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

    .menu-toggle {
        display: block;
    }

    .hero,
    .hero-content {
        min-height: 760px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 78px 0 122px;
    }

    .hero-poster {
        display: none;
    }

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

    .category-grid,
    .movie-grid,
    .movie-grid--wide,
    .movie-grid--related,
    .category-list-large,
    .detail-content,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-hero {
        grid-template-columns: 220px 1fr;
    }
}

@media (max-width: 640px) {
    .nav-shell,
    .quick-search-panel,
    .content-section,
    .inner-page,
    .movie-detail-page,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 22px, 1180px);
    }

    .logo {
        font-size: 21px;
    }

    .hero,
    .hero-content {
        min-height: 700px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-summary {
        font-size: 15px;
        line-height: 1.8;
    }

    .hero-actions,
    .detail-actions,
    .quick-search-panel form,
    .detail-neighbor {
        flex-direction: column;
    }

    .quick-search-panel,
    .page-hero,
    .player-section,
    .detail-content article,
    .detail-side,
    .detail-neighbor {
        padding: 20px;
        border-radius: 20px;
    }

    .category-grid,
    .movie-grid,
    .movie-grid--wide,
    .movie-grid--related,
    .rank-grid,
    .category-list-large,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .category-card-large,
    .detail-hero,
    .detail-content {
        grid-template-columns: 1fr;
    }

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

    .player-cover span {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
}
