* {
    box-sizing: border-box;
}

:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --cyan-500: #06b6d4;
    --blue-500: #3b82f6;
    --teal-500: #14b8a6;
    --emerald-500: #10b981;
    --pink-500: #ec4899;
    --red-500: #ef4444;
    --orange-500: #f97316;
    --surface: #ffffff;
    --soft: #f8fafc;
    --text: #111827;
    --muted: #64748b;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 26px 70px rgba(15, 23, 42, 0.18);
    --radius: 1.25rem;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.container,
.nav-container,
.footer-container {
    width: min(100% - 2rem, 1280px);
    margin: 0 auto;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    color: white;
    background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.25);
}

.nav-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4rem;
    gap: 1rem;
}

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

.brand-icon {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    color: white;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.35);
    font-size: 0.8rem;
}

.brand-name {
    font-size: 1.25rem;
}

.desktop-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link,
.mobile-nav-link {
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 0.55rem 0.9rem;
    font-size: 0.94rem;
}

.nav-link:hover,
.mobile-nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-search,
.mobile-search {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    overflow: hidden;
}

.nav-search input,
.mobile-search input {
    width: 15rem;
    border: 0;
    color: white;
    background: transparent;
    padding: 0.6rem 0.85rem;
    outline: 0;
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(226, 232, 240, 0.7);
}

.nav-search button,
.mobile-search button,
.mobile-toggle {
    border: 0;
    color: white;
    background: transparent;
    cursor: pointer;
}

.nav-search button {
    width: 2.75rem;
    height: 2.45rem;
}

.mobile-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    background: var(--slate-800);
    padding: 1rem;
}

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

.mobile-search {
    width: 100%;
    border-radius: 1rem;
    margin-bottom: 0.85rem;
}

.mobile-search input {
    width: 100%;
}

.mobile-search button {
    padding: 0.65rem 1rem;
    border-left: 1px solid rgba(148, 163, 184, 0.25);
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0.85rem;
}

.hero-section {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    color: white;
}

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

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    max-width: 760px;
}

.hero-label,
.pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-weight: 700;
}

.hero-label {
    padding: 0.45rem 1rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--cyan-500), var(--blue-500));
    font-size: 0.9rem;
}

.hero-content h1 {
    margin: 0 0 1.2rem;
    font-size: clamp(2.6rem, 7vw, 5.8rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero-copy {
    max-width: 680px;
    margin: 0 0 1.4rem;
    color: rgba(226, 232, 240, 0.92);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-feature {
    display: grid;
    gap: 0.2rem;
    width: min(100%, 620px);
    padding: 1rem 1.1rem;
    margin-bottom: 1.45rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

.hero-feature strong {
    font-size: 1.25rem;
}

.hero-feature span {
    color: rgba(241, 245, 249, 0.86);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

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

.primary-btn {
    padding: 0.85rem 1.65rem;
    color: white;
    background: linear-gradient(90deg, var(--cyan-500), var(--blue-500));
    box-shadow: 0 18px 38px rgba(6, 182, 212, 0.28);
}

.glass-btn {
    padding: 0.85rem 1.5rem;
    color: white;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.primary-btn:hover,
.glass-btn:hover,
.section-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.stats-section {
    color: white;
    background: linear-gradient(180deg, var(--slate-900), var(--slate-800));
    padding: 3rem 0;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat-card {
    text-align: center;
}

.stat-card strong {
    display: block;
    margin-bottom: 0.1rem;
    font-size: 2.15rem;
}

.stat-card span {
    color: #94a3b8;
    font-size: 0.95rem;
}

.content-section {
    padding: 4rem 0;
}

.nested-section {
    padding: 3rem 0 0;
}

.soft-bg {
    background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.tinted-bg {
    background: linear-gradient(135deg, #ecfeff 0%, #eff6ff 52%, #f0fdfa 100%);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.section-head h2,
.index-title {
    margin: 0 0 0.35rem;
    color: #111827;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    line-height: 1.2;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.section-link {
    gap: 0.25rem;
    color: #0891b2;
    font-weight: 800;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.category-card {
    position: relative;
    display: flex;
    min-height: 180px;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    color: white;
    border-radius: var(--radius);
    padding: 1.4rem;
    box-shadow: var(--shadow);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.96;
}

.category-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-lg);
}

.category-card > * {
    position: relative;
    z-index: 1;
}

.theme-red::before {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.theme-blue::before {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.theme-pink::before {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.theme-emerald::before {
    background: linear-gradient(135deg, #10b981, #059669);
}

.theme-cyan::before {
    background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.category-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.35rem;
}

.category-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
}

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

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

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

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-0.45rem);
    box-shadow: var(--shadow-lg);
}

.thumb,
.large-thumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.thumb {
    aspect-ratio: 16 / 9;
}

.compact-thumb {
    aspect-ratio: 4 / 3;
    border-radius: 0.9rem;
}

.thumb img,
.large-thumb img,
.cover-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    background: rgba(0, 0, 0, 0.72);
    font-size: 0.75rem;
    font-weight: 800;
}

.year-badge {
    top: 0.65rem;
    right: 0.65rem;
    padding: 0.22rem 0.55rem;
}

.rank-badge {
    top: 0.65rem;
    left: 0.65rem;
    min-width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #f97316, #ec4899);
}

.card-body {
    padding: 1rem;
}

.pill {
    padding: 0.25rem 0.62rem;
    margin-bottom: 0.65rem;
    color: white;
    font-size: 0.75rem;
}

.region-pill {
    background: linear-gradient(90deg, var(--cyan-500), var(--blue-500));
}

.green-pill {
    background: linear-gradient(90deg, #22c55e, var(--teal-500));
}

.warm-pill {
    background: linear-gradient(90deg, var(--orange-500), var(--pink-500));
}

.card-title,
.card-body h2,
.minimal-body h2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    color: #1f2937;
    transition: color 0.2s ease;
}

.card-title,
.card-body h2 {
    -webkit-line-clamp: 2;
    margin: 0 0 0.55rem;
    font-size: 1.04rem;
    line-height: 1.35;
}

.movie-card:hover .card-title,
.movie-card:hover .minimal-body h2 {
    color: #0891b2;
}

.card-desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    min-height: 2.9em;
    margin: 0 0 0.7rem;
    color: #4b5563;
    font-size: 0.92rem;
}

.card-meta,
.card-tags,
.large-meta,
.minimal-body div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    color: #64748b;
    font-size: 0.78rem;
}

.card-tags {
    margin-top: 0.45rem;
    color: #94a3b8;
}

.horizontal-list {
    display: grid;
    gap: 1rem;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 14rem 1fr;
    gap: 0;
}

.horizontal-thumb {
    width: 100%;
    min-height: 9rem;
    aspect-ratio: auto;
}

.horizontal-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

.movie-card-large {
    border-radius: 1.25rem;
}

.large-thumb {
    aspect-ratio: 16 / 9;
}

.large-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.28) 52%, rgba(0, 0, 0, 0.06) 100%);
}

.large-content {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    color: white;
    padding: 1.25rem;
}

.large-content h2 {
    margin: 0 0 0.45rem;
    font-size: 1.35rem;
    line-height: 1.2;
}

.large-content p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0 0 0.7rem;
    color: rgba(255, 255, 255, 0.86);
}

.large-meta {
    color: rgba(255, 255, 255, 0.82);
}

.movie-card-minimal {
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

.movie-card-minimal:hover {
    box-shadow: none;
}

.minimal-body {
    padding-top: 0.75rem;
}

.minimal-body h2 {
    -webkit-line-clamp: 2;
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    line-height: 1.35;
}

.page-shell {
    min-height: 60vh;
}

.category-hero {
    position: relative;
    overflow: hidden;
    color: white;
    padding: 4.5rem 0;
    background: var(--slate-900);
}

.category-hero::before {
    content: "";
    position: absolute;
    inset: 0;
}

.category-hero .container {
    position: relative;
    z-index: 1;
}

.category-hero h1 {
    max-width: 900px;
    margin: 0 0 0.8rem;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.category-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.1rem;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
}

.crumbs a:hover {
    color: white;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 210px));
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.6rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 1.2rem;
    background: white;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.filter-panel label {
    display: grid;
    gap: 0.35rem;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #f8fafc;
    color: #0f172a;
    outline: 0;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--cyan-500);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.empty-state {
    display: none;
    text-align: center;
    color: #64748b;
    font-weight: 700;
    padding: 3rem 0;
}

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

.index-title {
    margin-bottom: 1.3rem;
}

.chip-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.8rem;
}

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

.index-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 3.25rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.index-chip:hover {
    transform: translateY(-3px);
    border-color: rgba(6, 182, 212, 0.45);
    box-shadow: var(--shadow);
}

.index-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.index-chip strong {
    display: inline-grid;
    place-items: center;
    min-width: 2.2rem;
    height: 2.2rem;
    color: #0891b2;
    border-radius: 999px;
    background: #ecfeff;
    font-size: 0.8rem;
}

.detail-shell {
    padding: 2rem 0 4rem;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.detail-crumbs {
    color: #64748b;
}

.detail-crumbs a:hover {
    color: #0891b2;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
    gap: 2rem;
}

.player-card,
.side-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: white;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
    display: grid;
    place-items: center;
    width: 5.2rem;
    height: 5.2rem;
    padding-left: 0.25rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    box-shadow: 0 22px 55px rgba(6, 182, 212, 0.38);
    font-size: 2rem;
}

.player-message {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    display: none;
    max-width: calc(100% - 2rem);
    padding: 0.65rem 1rem;
    border-radius: 999px;
    color: white;
    background: rgba(15, 23, 42, 0.86);
    font-weight: 700;
    text-align: center;
}

.player-message.is-visible {
    display: block;
}

.detail-content {
    padding: 1.5rem;
}

.detail-content h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.detail-tags a,
.detail-tags span,
.tag-cloud span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 800;
}

.detail-tags a {
    padding: 0.35rem 0.75rem;
    color: white;
    background: linear-gradient(90deg, var(--cyan-500), var(--blue-500));
}

.detail-tags span {
    padding: 0.35rem 0.75rem;
    color: #334155;
    background: #f1f5f9;
}

.detail-content section {
    margin-top: 1.3rem;
}

.detail-content h2,
.side-card h2 {
    margin: 0 0 0.65rem;
    color: #111827;
    font-size: 1.2rem;
}

.detail-content p {
    margin: 0;
    color: #374151;
    line-height: 1.85;
}

.detail-side {
    display: grid;
    align-content: start;
    gap: 1.2rem;
}

.side-card {
    padding: 1.2rem;
}

.cover-card {
    padding: 0;
}

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

.info-list {
    display: grid;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.info-list li {
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 0.7rem;
    align-items: start;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.info-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.info-list span {
    color: #64748b;
}

.info-list strong {
    color: #111827;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud span {
    padding: 0.35rem 0.7rem;
    color: #0f766e;
    background: #ccfbf1;
    font-size: 0.85rem;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.site-footer {
    color: white;
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800), var(--slate-900));
}

.footer-container {
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-text {
    max-width: 360px;
    color: #94a3b8;
    margin: 0;
}

.footer-title {
    margin: 0 0 0.9rem;
    font-size: 1.05rem;
}

.footer-links {
    display: grid;
    gap: 0.55rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-links a {
    color: #94a3b8;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    color: #94a3b8;
    font-size: 0.9rem;
}

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

    .mobile-toggle {
        display: inline-grid;
        place-items: center;
    }

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

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

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

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

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

@media (max-width: 760px) {
    .container,
    .nav-container,
    .footer-container {
        width: min(100% - 1.25rem, 1280px);
    }

    .brand-name {
        font-size: 1.1rem;
    }

    .nav-search {
        display: none;
    }

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

    .hero-content {
        padding: 4rem 0;
    }

    .hero-shade {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.66) 70%, rgba(0, 0, 0, 0.28) 100%);
    }

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

    .primary-btn,
    .glass-btn {
        width: 100%;
    }

    .stat-grid,
    .movie-grid,
    .movie-grid-three,
    .movie-grid-four,
    .movie-grid-five,
    .category-grid,
    .related-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-section {
        padding: 3rem 0;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .horizontal-thumb {
        min-height: auto;
        aspect-ratio: 16 / 9;
    }

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

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

    .detail-content {
        padding: 1.15rem;
    }

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

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .movie-grid,
    .movie-grid-three,
    .movie-grid-four,
    .movie-grid-five,
    .category-grid,
    .stat-grid,
    .related-list,
    .chip-grid,
    .compact-chip-grid {
        grid-template-columns: 1fr;
    }

    .category-hero {
        padding: 3rem 0;
    }
}
