:root {
    color-scheme: light;
    --bg: #f8fafc;
    --panel: #ffffff;
    --text: #111827;
    --muted: #64748b;
    --line: #e5e7eb;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --cyan: #06b6d4;
    --red: #ef4444;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f8fafc 100%);
    color: var(--text);
}

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

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

button,
input,
select {
    font: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.navbar {
    max-width: 1280px;
    height: 64px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
    transform: translateZ(0);
    transition: transform 0.25s ease;
}

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

.brand-text {
    font-size: 21px;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link {
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease;
}

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

.mobile-toggle {
    display: none;
    border: 0;
    background: #f3f4f6;
    color: #111827;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
}

.mobile-toggle-icon {
    font-size: 24px;
    line-height: 1;
}

.mobile-menu {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px 24px 18px;
    border-top: 1px solid var(--line);
}

.mobile-menu.is-open {
    display: grid;
    gap: 8px;
}

.mobile-nav-link {
    padding: 11px 14px;
    border-radius: 12px;
    color: #374151;
    font-weight: 650;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    background: #eff6ff;
    color: var(--blue);
}

.page-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 0;
}

.hero-carousel {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 48px;
    background: #111827;
}

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-content {
    position: absolute;
    inset: 0 auto 0 0;
    width: min(680px, 75%);
    padding: 58px 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

.hero-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    padding: 7px 14px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.26);
}

.hero-content h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.06;
    letter-spacing: -0.05em;
}

.hero-content p {
    margin: 0 0 20px;
    color: #e5e7eb;
    font-size: 18px;
    line-height: 1.75;
}

.hero-meta,
.hero-tags,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.hero-meta {
    margin-bottom: 16px;
    color: #f9fafb;
}

.hero-meta span {
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

.hero-tags {
    margin-bottom: 26px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
}

.hero-tags .tag-chip {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

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

.primary-button {
    background: var(--blue);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.3);
}

.primary-button:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(8px);
}

.ghost-button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.24);
}

.ghost-button.light {
    color: #ffffff;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
    font-size: 34px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.48);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: #ffffff;
}

.home-search-card,
.panel-card,
.filter-panel,
.page-hero {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--soft-shadow);
}

.home-search-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 54px;
}

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

.home-search-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.content-section {
    margin-bottom: 64px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 6px 0 0;
    color: var(--muted);
}

.heading-line {
    height: 4px;
    flex: 1;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue), rgba(37, 99, 235, 0));
}

.section-link {
    color: var(--blue);
    font-weight: 800;
    white-space: nowrap;
}

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

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

.compact-grid {
    gap: 18px;
}

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: block;
    overflow: hidden;
    height: 100%;
    border-radius: 18px;
    background: var(--panel);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: #e5e7eb;
}

.movie-card-large .poster-wrap {
    height: 350px;
}

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

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

.poster-gradient {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.82));
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.poster-gradient p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}

.play-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    transform: translate(-50%, -50%) scale(0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--blue);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-tag,
.card-rank {
    position: absolute;
    top: 12px;
    border-radius: 10px;
    padding: 5px 9px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.66);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.poster-tag {
    right: 12px;
}

.card-rank {
    left: 12px;
    background: linear-gradient(135deg, var(--red), #f97316);
}

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

.movie-card-body h3 {
    margin: 0 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 17px;
    transition: color 0.2s ease;
}

.movie-card-link:hover h3 {
    color: var(--blue);
}

.movie-card-large .movie-card-body h3 {
    font-size: 21px;
}

.movie-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 24px;
}

.panel-card {
    border-radius: 22px;
    padding: 26px;
}

.blue-panel {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border: 0;
}

.blue-panel p {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.75;
}

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

.category-pill-grid a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    font-weight: 800;
}

.category-pill-grid span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
}

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

.rank-row {
    min-width: 0;
}

.rank-link {
    display: grid;
    grid-template-columns: 58px 74px minmax(0, 1fr) 70px;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.rank-index {
    color: var(--blue);
    font-size: 22px;
    font-weight: 900;
    text-align: center;
}

.rank-poster {
    width: 74px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
    background: #e5e7eb;
}

.rank-info {
    min-width: 0;
}

.rank-info h3 {
    margin: 0 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info p {
    margin: 0 0 8px;
    color: var(--muted);
    line-height: 1.55;
}

.rank-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rank-score {
    text-align: center;
    color: var(--muted);
}

.rank-score span {
    display: block;
    color: var(--red);
    font-size: 24px;
    font-weight: 900;
}

.full-rank-list {
    margin-bottom: 48px;
}

.category-showcase {
    padding: 30px;
    border-radius: 26px;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.category-showcase-block + .category-showcase-block {
    margin-top: 34px;
}

.category-showcase-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.category-showcase-title h3 {
    margin: 0;
    font-size: 22px;
}

.category-showcase-title a {
    color: var(--blue);
    font-weight: 800;
}

.page-hero {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 42px;
    margin-bottom: 30px;
    border-radius: var(--radius);
    color: #ffffff;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.98), rgba(6, 182, 212, 0.95));
    overflow: hidden;
    position: relative;
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.page-hero > * {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.75;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 220px 180px auto;
    align-items: end;
    gap: 16px;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 20px;
}

.filter-field {
    display: grid;
    gap: 8px;
}

.filter-field span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.filter-field input,
.filter-field select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 14px;
    color: var(--text);
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-field input:focus,
.filter-field select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.filter-count {
    min-width: 110px;
    color: var(--blue);
    font-weight: 900;
    text-align: right;
}

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

.category-card a {
    position: relative;
    display: block;
    height: 280px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--soft-shadow);
}

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

.category-card a:hover img {
    transform: scale(1.06);
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.76));
}

.category-card-content {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    color: #ffffff;
}

.category-card-content h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.category-card-content p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.86);
}

.category-card-content span {
    display: inline-flex;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    font-weight: 800;
}

.category-movie-grid,
.search-grid {
    margin-bottom: 60px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 4px 0 20px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--blue);
    font-weight: 750;
}

.detail-hero {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 34px;
    align-items: stretch;
    margin-bottom: 40px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow);
    background: #e5e7eb;
}

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

.detail-info {
    border-radius: 24px;
    padding: 42px;
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #1e3a8a 58%, #0891b2);
    box-shadow: var(--shadow);
}

.detail-info h1 {
    margin: 20px 0 16px;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-one-line {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.8;
    font-size: 18px;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.detail-meta-grid span {
    display: grid;
    gap: 4px;
    border-radius: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.detail-meta-grid strong {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
}

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

.detail-tags .tag-chip {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.player-section {
    margin-bottom: 40px;
}

.simple-heading {
    margin-bottom: 16px;
}

.video-player-shell {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: #020617;
    box-shadow: var(--shadow);
}

.movie-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #020617;
}

.player-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

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

.player-mask {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.16), rgba(0, 0, 0, 0.72));
}

.big-play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    color: var(--blue);
    background: rgba(255, 255, 255, 0.92);
    font-size: 34px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.detail-text-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 56px;
}

.detail-copy h2,
.about-grid h2 {
    margin: 0 0 12px;
}

.detail-copy p,
.about-grid p {
    margin: 0;
    color: #475569;
    line-height: 1.9;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.site-footer {
    margin-top: 70px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, #f8fafc, #eef2f7);
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.7fr) minmax(180px, 0.7fr);
    gap: 36px;
}

.footer-logo {
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-brand p {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.footer-column {
    display: grid;
    gap: 10px;
    align-content: start;
}

.footer-column h3 {
    margin: 0 0 6px;
}

.footer-column a {
    color: #475569;
}

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

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid #d8dee9;
    color: var(--muted);
    text-align: center;
    font-size: 14px;
}

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

@media (max-width: 1100px) {
    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .featured-grid,
    .about-grid,
    .detail-text-grid,
    .two-column-section {
        grid-template-columns: 1fr;
    }

    .detail-hero {
        grid-template-columns: 300px minmax(0, 1fr);
    }
}

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

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .page-shell {
        width: min(100% - 24px, 1280px);
        padding-top: 18px;
    }

    .hero-carousel {
        height: 560px;
        border-radius: 20px;
    }

    .hero-content {
        width: 100%;
        padding: 44px 24px 70px;
        justify-content: flex-end;
    }

    .hero-content h1 {
        font-size: 36px;
    }

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

    .hero-arrow {
        width: 42px;
        height: 42px;
        font-size: 28px;
    }

    .home-search-card,
    .page-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 26px;
    }

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

    .heading-line {
        width: 100%;
        flex: none;
    }

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

    .poster-wrap,
    .movie-card-large .poster-wrap {
        height: 240px;
    }

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

    .filter-count {
        text-align: left;
    }

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

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

    .rank-score {
        grid-column: 2 / 4;
        display: flex;
        gap: 8px;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
    }

    .rank-score span {
        font-size: 20px;
    }

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

    .detail-poster img {
        min-height: auto;
        max-height: 520px;
    }

    .detail-info {
        padding: 28px;
    }

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

@media (max-width: 520px) {
    .navbar {
        padding: 0 14px;
    }

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

    .movie-grid,
    .featured-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .poster-wrap,
    .movie-card-large .poster-wrap {
        height: 210px;
    }

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

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

    .movie-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        font-size: 12px;
    }

    .category-pill-grid {
        grid-template-columns: 1fr;
    }

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

    .big-play-button {
        width: 68px;
        height: 68px;
        font-size: 26px;
    }
}
