:root {
    --bg: #080b16;
    --bg-soft: #111827;
    --panel: rgba(17, 24, 39, 0.76);
    --panel-strong: rgba(31, 41, 55, 0.92);
    --line: rgba(255, 255, 255, 0.12);
    --text: #f9fafb;
    --muted: #cbd5e1;
    --muted-soft: #94a3b8;
    --gold: #facc15;
    --pink: #ec4899;
    --purple: #7c3aed;
    --blue: #38bdf8;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 20% 0%, rgba(124, 58, 237, 0.28), transparent 32rem),
        radial-gradient(circle at 82% 12%, rgba(236, 72, 153, 0.2), transparent 30rem),
        linear-gradient(180deg, #070914 0%, #101827 42%, #080b16 100%);
    color: var(--text);
    min-height: 100vh;
}

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

img {
    display: block;
    max-width: 100%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(236, 72, 153, 0.22));
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(49, 46, 129, 0.96), rgba(88, 28, 135, 0.96), rgba(157, 23, 77, 0.94));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand span:last-child {
    background: linear-gradient(90deg, #fde047, #f9a8d4, #ffffff);
    -webkit-background-clip: text;
    color: transparent;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #111827;
    background: linear-gradient(135deg, #fde047, #fb7185);
    box-shadow: 0 12px 30px rgba(250, 204, 21, 0.26);
    font-size: 14px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: rgba(255, 255, 255, 0.84);
    font-weight: 700;
}

.desktop-nav a,
.nav-menu button {
    position: relative;
    color: inherit;
    border: 0;
    background: transparent;
    padding: 24px 0;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.nav-menu button:hover {
    color: #fde047;
}

.nav-menu {
    position: relative;
}

.nav-menu-panel {
    position: absolute;
    top: calc(100% - 10px);
    right: 0;
    width: 220px;
    padding: 12px;
    display: grid;
    gap: 4px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.2s ease;
}

.nav-menu:hover .nav-menu-panel,
.nav-menu:focus-within .nav-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

.nav-menu-panel a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    min-width: 290px;
}

.header-search input,
.mobile-search input {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-right: 0;
    border-radius: 999px 0 0 999px;
    padding: 11px 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    outline: 0;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.filter-bar input::placeholder {
    color: rgba(226, 232, 240, 0.74);
}

.header-search button,
.mobile-search button {
    border: 0;
    border-radius: 0 999px 999px 0;
    padding: 12px 16px;
    color: #111827;
    font-weight: 900;
    background: linear-gradient(135deg, #fde047, #fb7185);
}

.mobile-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 9px 12px;
}

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

.mobile-panel nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.mobile-panel a {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.hero {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 11, 22, 0.94) 0%, rgba(8, 11, 22, 0.68) 42%, rgba(8, 11, 22, 0.2) 100%),
        linear-gradient(0deg, rgba(8, 11, 22, 0.98) 0%, rgba(8, 11, 22, 0.1) 44%, rgba(8, 11, 22, 0.62) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 72vh;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    padding: 90px 0 86px;
}

.hero-copy {
    width: min(720px, 100%);
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fde047;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero h1,
.hero h2,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero h1,
.hero h2 {
    max-width: 860px;
    font-size: clamp(42px, 7vw, 86px);
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.hero p {
    width: min(680px, 100%);
    margin: 22px 0 0;
    color: rgba(226, 232, 240, 0.92);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

.hero-meta,
.detail-meta,
.page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-meta span,
.detail-meta span,
.page-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

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

.primary-btn,
.secondary-btn,
.section-link,
.load-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.primary-btn {
    min-height: 48px;
    padding: 0 24px;
    color: #111827;
    background: linear-gradient(135deg, #fde047, #fb7185);
    box-shadow: 0 18px 38px rgba(250, 204, 21, 0.22);
}

.secondary-btn {
    min-height: 48px;
    padding: 0 22px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.1);
}

.primary-btn:hover,
.secondary-btn:hover,
.section-link:hover,
.load-link:hover {
    transform: translateY(-2px) scale(1.01);
    filter: brightness(1.06);
}

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

.hero-arrow,
.hero-dot {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(10px);
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    opacity: 0.58;
}

.hero-dot.is-active {
    width: 28px;
    border-radius: 999px;
    opacity: 1;
    background: linear-gradient(90deg, #fde047, #fb7185);
}

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

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

.section-heading,
.page-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 28px;
}

.section-heading h2,
.page-hero h1,
.detail-section h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.14;
    letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.detail-section p,
.category-card p {
    color: var(--muted);
    line-height: 1.85;
}

.section-link,
.load-link {
    flex: 0 0 auto;
    color: #fde047;
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.26);
    padding: 10px 16px;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(31, 41, 55, 0.84), rgba(15, 23, 42, 0.92));
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(250, 204, 21, 0.34);
    box-shadow: 0 24px 80px rgba(124, 58, 237, 0.23);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.movie-card-compact .movie-cover {
    aspect-ratio: 16 / 10;
}

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

.movie-card:hover img,
.category-card:hover img,
.rank-row:hover img,
.related-card:hover img {
    transform: scale(1.08);
}

.movie-cover-shade {
    position: absolute;
    inset: auto 0 0;
    height: 56%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    min-width: 48px;
    height: 28px;
    color: #111827;
    background: linear-gradient(135deg, #fde047, #fb7185);
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 36px;
    height: 30px;
    padding: 0 10px;
    color: #fff;
    background: rgba(236, 72, 153, 0.9);
}

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    min-height: 48px;
    margin: 0;
    font-size: 17px;
    line-height: 1.42;
}

.movie-info h3 a:hover {
    color: #fde047;
}

.movie-meta,
.movie-line {
    margin: 8px 0 0;
    color: var(--muted-soft);
    line-height: 1.65;
}

.movie-line {
    min-height: 52px;
    color: var(--muted);
}

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

.tag-row span {
    color: #d8b4fe;
    background: rgba(124, 58, 237, 0.16);
    border: 1px solid rgba(216, 180, 254, 0.16);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
}

.band-section {
    padding: 68px 0;
    background: linear-gradient(90deg, rgba(127, 29, 29, 0.32), rgba(124, 58, 237, 0.16), rgba(15, 23, 42, 0));
    border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.band-section .content-section {
    padding: 0;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 236px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.88), rgba(88, 28, 135, 0.34));
    box-shadow: 0 20px 68px rgba(0, 0, 0, 0.25);
}

.category-card-content {
    padding: 28px;
    position: relative;
    z-index: 2;
}

.category-card h2,
.category-card h3 {
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
}

.category-card p {
    margin: 14px 0 24px;
}

.category-card strong {
    color: #fde047;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.36s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.78));
}

.page-hero {
    padding: 70px 0 34px;
}

.page-hero h1 {
    max-width: 880px;
}

.page-hero p {
    max-width: 840px;
    margin: 18px 0 0;
    font-size: 18px;
}

.filter-bar {
    width: min(1180px, calc(100% - 32px));
    margin: 20px auto 34px;
    padding: 16px;
    display: grid;
    grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)) auto;
    gap: 12px;
    align-items: end;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.filter-bar label {
    display: grid;
    gap: 6px;
    color: var(--muted-soft);
    font-size: 13px;
    font-weight: 800;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    outline: 0;
    padding: 0 12px;
}

.filter-bar select option {
    color: #111827;
}

.filter-bar button {
    min-height: 42px;
    border: 0;
    border-radius: 14px;
    color: #111827;
    font-weight: 900;
    background: linear-gradient(135deg, #fde047, #fb7185);
    padding: 0 16px;
}

.empty-state {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 20px auto 60px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.68);
}

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

.rank-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 72px;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 24px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 52px 76px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    border-color: rgba(250, 204, 21, 0.3);
    background: rgba(30, 41, 59, 0.9);
}

.rank-number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #111827;
    font-weight: 900;
    border-radius: 14px;
    background: linear-gradient(135deg, #fde047, #fb7185);
}

.rank-row img {
    width: 76px;
    height: 94px;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.3s ease;
}

.rank-main {
    display: grid;
    gap: 6px;
}

.rank-main strong {
    font-size: 18px;
}

.rank-main em {
    color: var(--muted-soft);
    font-style: normal;
}

.rank-heat {
    color: #fde047;
    font-weight: 900;
}

.side-panel {
    position: sticky;
    top: 96px;
    height: fit-content;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(88, 28, 135, 0.32), rgba(15, 23, 42, 0.76));
}

.side-panel h2 {
    margin: 0 0 14px;
}

.side-panel p {
    color: var(--muted);
    line-height: 1.8;
}

.side-links {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.side-links a {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 540px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px) saturate(1.14) brightness(0.62);
    transform: scale(1.08);
}

.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 11, 22, 0.96), rgba(8, 11, 22, 0.76), rgba(8, 11, 22, 0.34)),
        linear-gradient(0deg, rgba(8, 11, 22, 1), rgba(8, 11, 22, 0.12));
}

.detail-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 38px;
    padding: 72px 0 58px;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-title h1 {
    font-size: clamp(38px, 6vw, 72px);
}

.detail-title p {
    max-width: 800px;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.82;
}

.player-card {
    width: min(1180px, calc(100% - 32px));
    margin: 42px auto 72px;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #020617;
    box-shadow: var(--shadow);
}

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

.player-wrap video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-button {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #111827;
    font-size: 30px;
    background: linear-gradient(135deg, #fde047, #fb7185);
    box-shadow: 0 18px 48px rgba(250, 204, 21, 0.35);
}

.player-caption {
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.player-caption h2 {
    margin: 0;
    font-size: 24px;
}

.player-caption p {
    margin: 6px 0 0;
    color: var(--muted-soft);
}

.detail-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 62px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.72);
}

.detail-section p {
    font-size: 17px;
}

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

.related-card {
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.related-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card span {
    display: block;
    padding: 10px;
    font-weight: 800;
    line-height: 1.45;
}

.pagination-bar {
    width: min(1180px, calc(100% - 32px));
    margin: -24px auto 72px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.pagination-bar a {
    flex: 1;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--muted);
    background: rgba(15, 23, 42, 0.72);
}

.pagination-bar a:last-child {
    text-align: right;
}

.search-shell {
    padding-bottom: 76px;
}

.site-footer {
    margin-top: 34px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), #020617);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.site-footer p {
    color: var(--muted);
    line-height: 1.8;
}

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

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

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

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

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

    .site-header.is-open .mobile-panel {
        display: block;
    }

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

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

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

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

    .side-panel {
        position: static;
    }

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

@media (max-width: 760px) {
    .hero,
    .hero-content {
        min-height: 72vh;
    }

    .hero-content {
        padding: 74px 0 78px;
    }

    .hero h1,
    .hero h2 {
        font-size: clamp(36px, 12vw, 54px);
    }

    .hero p {
        font-size: 16px;
    }

    .section-heading,
    .page-title-row,
    .player-caption {
        display: grid;
        align-items: start;
    }

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

    .movie-info {
        padding: 12px;
    }

    .movie-line {
        display: none;
    }

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

    .category-card img {
        max-height: 220px;
    }

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

    .rank-row {
        grid-template-columns: 42px 64px 1fr;
    }

    .rank-row img {
        width: 64px;
        height: 82px;
    }

    .rank-heat {
        grid-column: 3;
        justify-self: start;
    }

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

    .detail-title p {
        font-size: 16px;
    }

    .detail-section {
        padding: 22px;
    }

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

    .pagination-bar {
        display: grid;
    }

    .pagination-bar a:last-child {
        text-align: left;
    }
}

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

    .hero-actions {
        display: grid;
    }

    .hero-arrow {
        display: none;
    }
}
