:root {
    --bg: #f8fafc;
    --bg-soft: #ecfeff;
    --surface: #ffffff;
    --surface-strong: rgba(255, 255, 255, 0.92);
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --cyan: #06b6d4;
    --blue: #2563eb;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #0f766e, #155e75);
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 12px 28px rgba(13, 148, 136, 0.34);
}

.brand-text,
.footer-brand {
    font-size: 1.25rem;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #334155;
    font-weight: 650;
    transition: color 180ms ease, background 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--teal-dark);
    background: #ccfbf1;
}

.header-search {
    display: flex;
    width: 300px;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
}

.header-search input,
.big-search input,
.filter-input-wrap input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.header-search input {
    padding: 10px 14px;
}

.header-search button,
.big-search button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    cursor: pointer;
    font-weight: 700;
}

.header-search button {
    padding: 0 16px;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #ecfeff;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--teal-dark);
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    padding: 16px;
    background: rgba(255, 255, 255, 0.96);
}

.mobile-nav,
.mobile-category-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-category-grid {
    margin-top: 12px;
}

.mobile-category-link {
    padding: 12px 14px;
    border-radius: 16px;
    background: #f0fdfa;
    color: var(--teal-dark);
    font-weight: 700;
}

.hero-carousel {
    position: relative;
    height: 620px;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 700ms ease, transform 900ms ease;
}

.hero-slide-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(13, 148, 136, 0.72) 48%, rgba(8, 145, 178, 0.44)), radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.22), transparent 28%);
}

.hero-bg img {
    filter: saturate(1.1) contrast(1.05);
    transform: scale(1.04);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: center;
    gap: 56px;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--teal-dark);
    border-color: #99f6e4;
    background: #ccfbf1;
}

.hero-copy h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(2.6rem, 6vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-desc {
    width: min(680px, 100%);
    margin: 26px 0 0;
    color: #e0f2fe;
    font-size: clamp(1.05rem, 2vw, 1.45rem);
}

.hero-tags,
.detail-tags,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.hero-tags span,
.detail-tags a,
.tag-cloud a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    font-size: 0.9rem;
    font-weight: 700;
}

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

.primary-button,
.glass-button,
.text-link,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
    padding: 13px 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 18px 35px rgba(13, 148, 136, 0.3);
}

.glass-button {
    padding: 13px 24px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
}

.primary-button:hover,
.glass-button:hover,
.movie-card:hover,
.category-tile:hover,
.related-card:hover,
.ranking-item:hover {
    transform: translateY(-3px);
}

.hero-poster {
    position: relative;
    height: 470px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.48);
}

.hero-poster span {
    position: absolute;
    left: 20px;
    bottom: 20px;
    padding: 10px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 26px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
}

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

.hero-control {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-50%);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

.search-band,
.section-wrap,
.split-section,
.detail-hero-block,
.breadcrumb {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.search-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 28px;
    align-items: center;
    margin-top: -54px;
    position: relative;
    z-index: 10;
    padding: 28px;
    border: 1px solid rgba(153, 246, 228, 0.8);
    border-radius: var(--radius);
    background: var(--surface-strong);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-band h2,
.section-heading h2,
.rank-panel h2,
.page-hero h1,
.detail-copy h1,
.detail-content h2,
.ranking-body h2,
.category-card-large h2 {
    margin: 0;
    letter-spacing: -0.04em;
}

.search-band h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.search-band p {
    margin: 12px 0 0;
    color: var(--muted);
}

.big-search {
    display: flex;
    min-height: 58px;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
}

.big-search input {
    padding: 0 22px;
}

.big-search button {
    padding: 0 24px;
}

.section-wrap {
    padding: 72px 0 0;
}

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

.section-heading h2,
.rank-panel h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.section-more,
.text-link {
    color: var(--teal-dark);
}

.section-more {
    padding: 10px 16px;
    background: #ccfbf1;
}

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

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

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

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

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

.movie-card:hover {
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #115e59, #0e7490);
}

.movie-poster img {
    transition: transform 500ms ease;
}

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

.poster-badge,
.poster-year {
    position: absolute;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
    font-size: 0.78rem;
    font-weight: 800;
}

.poster-badge {
    left: 12px;
    top: 12px;
}

.poster-year {
    right: 12px;
    bottom: 12px;
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.82rem;
}

.movie-meta-line span {
    padding: 3px 8px;
    border-radius: 999px;
    background: #f1f5f9;
}

.movie-card h3 {
    margin: 12px 0 8px;
    font-size: 1.06rem;
    line-height: 1.35;
}

.movie-card p {
    display: -webkit-box;
    min-height: 3.2em;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.compact-card .movie-card-body {
    padding: 13px;
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: var(--radius);
    color: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 180ms ease;
}

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

.category-tile span,
.category-tile strong {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
}

.category-tile span {
    bottom: 72px;
    font-size: 1.25rem;
    font-weight: 900;
}

.category-tile strong {
    bottom: 18px;
    color: #d1fae5;
    font-size: 0.9rem;
    font-weight: 600;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.latest-wrap {
    width: 100%;
}

.rank-panel {
    position: sticky;
    top: 96px;
    margin-top: 72px;
    padding: 24px;
    border: 1px solid #b2f5ea;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffff, #ecfeff);
    box-shadow: var(--shadow);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 32px 54px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    transition: transform 180ms ease, background 180ms ease;
}

.rank-row:hover {
    background: #ccfbf1;
}

.rank-number,
.ranking-number {
    color: var(--teal-dark);
    font-weight: 900;
}

.rank-row img {
    width: 54px;
    height: 70px;
    border-radius: 12px;
}

.rank-title {
    overflow: hidden;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-row em {
    color: var(--muted);
    font-size: 0.8rem;
    font-style: normal;
}

.tag-section {
    padding-bottom: 80px;
}

.tag-cloud a {
    color: var(--teal-dark);
    background: #ccfbf1;
}

.page-main {
    padding-bottom: 80px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    padding: 86px max(16px, calc((100vw - 1180px) / 2)) 72px;
    color: #ffffff;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.28), transparent 28%), linear-gradient(135deg, var(--teal), var(--cyan) 50%, var(--blue));
}

.page-hero p {
    width: min(760px, 100%);
    margin: 22px 0 0;
    color: #e0f2fe;
    font-size: 1.15rem;
}

.slim-hero {
    min-height: 310px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.filter-input-wrap {
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
}

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

.filter-controls select {
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    background: #ffffff;
}

.category-large-grid {
    display: grid;
    gap: 24px;
}

.category-card-large {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    height: 160px;
}

.category-cover-stack img {
    border-radius: 18px;
}

.category-card-large h2 {
    font-size: 2rem;
}

.category-card-large p {
    color: var(--muted);
}

.ranking-wrap {
    padding-top: 54px;
}

.ranking-list {
    display: grid;
    gap: 16px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.ranking-cover {
    width: 110px;
    height: 146px;
    overflow: hidden;
    border-radius: 18px;
}

.ranking-body h2 {
    font-size: 1.4rem;
}

.ranking-body p {
    color: var(--muted);
}

.small-button {
    padding: 10px 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 24px 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.breadcrumb a:hover {
    color: var(--teal-dark);
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 34px 80px rgba(15, 23, 42, 0.36);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.52));
    cursor: pointer;
    transition: opacity 200ms ease, visibility 200ms ease;
}

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

.play-icon {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 20px 42px rgba(13, 148, 136, 0.42);
}

.play-icon::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 28px solid #ffffff;
}

.detail-hero-block {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 30px;
    align-items: center;
    margin-top: 34px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.detail-poster {
    height: 350px;
    overflow: hidden;
    border-radius: 24px;
}

.detail-copy h1 {
    font-size: clamp(2rem, 5vw, 4.2rem);
    line-height: 1;
}

.detail-one-line {
    color: var(--muted);
    font-size: 1.15rem;
}

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

.detail-meta-grid span {
    padding: 12px 14px;
    border-radius: 16px;
    background: #f1f5f9;
    color: #334155;
    font-weight: 700;
}

.detail-tags a {
    color: var(--teal-dark);
    background: #ccfbf1;
}

.narrow-wrap {
    width: min(900px, calc(100% - 32px));
    padding-top: 52px;
}

.detail-content h2 {
    margin-top: 28px;
    font-size: 1.8rem;
}

.detail-content p {
    color: #334155;
    font-size: 1.08rem;
}

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

.related-card {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    transition: transform 180ms ease;
}

.related-card img {
    aspect-ratio: 3 / 4;
}

.related-card span {
    display: block;
    min-height: 3.4em;
    padding: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.site-footer {
    margin-top: 80px;
    padding: 46px 0;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 40px;
}

.footer-inner p {
    max-width: 580px;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

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

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

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

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

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

    .split-section {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: relative;
        top: auto;
        margin-top: 0;
    }

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

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

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

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

    .header-inner {
        height: 64px;
    }

    .hero-carousel {
        height: 760px;
        min-height: 760px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        align-content: center;
        padding: 48px 0 64px;
    }

    .hero-poster {
        width: min(280px, 78vw);
        height: 360px;
    }

    .hero-control {
        display: none;
    }

    .search-band {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }

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

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

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

    .filter-controls {
        flex-direction: column;
    }

    .category-card-large,
    .detail-hero-block,
    .footer-inner,
    .ranking-item {
        grid-template-columns: 1fr;
    }

    .ranking-cover {
        width: 100%;
        height: 300px;
    }

    .detail-poster {
        height: 420px;
    }

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

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .brand-text {
        font-size: 1rem;
    }

    .hero-carousel {
        height: 700px;
        min-height: 700px;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: 2.6rem;
    }

    .big-search {
        flex-direction: column;
        border-radius: 24px;
    }

    .big-search input,
    .big-search button {
        min-height: 54px;
    }

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .all-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-row em {
        display: none;
    }

    .player-shell {
        border-radius: 18px;
    }

    .detail-poster {
        height: 360px;
    }
}
