:root {
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-200: #fecdd3;
    --rose-400: #fb7185;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --rose-700: #be123c;
    --amber-400: #fbbf24;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white-soft: rgba(255, 255, 255, 0.88);
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 18px 40px rgba(15, 23, 42, 0.14);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --container: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--slate-800);
    background:
        radial-gradient(circle at top left, rgba(251, 113, 133, 0.18), transparent 28rem),
        linear-gradient(180deg, #ffffff 0%, var(--slate-50) 42%, #ffffff 100%);
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(251, 113, 133, 0.16);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
    backdrop-filter: blur(18px);
}

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

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--slate-900);
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose-500), #ec4899 52%, var(--amber-400));
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(244, 63, 94, 0.35);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text strong,
.footer-logo {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--rose-500), #ec4899, var(--amber-400));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-text small {
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}

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

.nav-link {
    padding: 10px 16px;
    border-radius: 12px;
    color: #64748b;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--rose-600);
    background: var(--rose-50);
    transform: translateY(-1px);
}

.top-search,
.catalog-search,
.mobile-nav form {
    position: relative;
    display: flex;
    align-items: center;
}

.top-search input,
.mobile-nav input {
    width: 230px;
    height: 42px;
    padding: 0 46px 0 18px;
    color: var(--slate-800);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--rose-200);
    border-radius: 999px;
    outline: none;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.top-search input:focus,
.mobile-nav input:focus,
.catalog-search input:focus {
    border-color: var(--rose-400);
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.18);
}

.top-search button {
    position: absolute;
    right: 6px;
    width: 32px;
    height: 32px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: var(--rose-500);
    border-radius: 50%;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    color: var(--rose-600);
    cursor: pointer;
    background: var(--rose-50);
    border-radius: 12px;
}

.mobile-nav {
    display: none;
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--rose-100);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.mobile-nav.open {
    display: grid;
    gap: 12px;
}

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--slate-50);
}

.hero-section {
    position: relative;
    min-height: 78vh;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: var(--slate-900);
}

.hero-collage {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.hero-panel {
    position: relative;
    overflow: hidden;
    min-height: 100%;
}

.hero-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.06) contrast(1.05);
    transform: scale(1.01);
    transition: transform 0.7s ease, filter 0.7s ease;
}

.hero-panel:hover img {
    transform: scale(1.1);
    filter: saturate(1.18) contrast(1.08);
}

.hero-panel span {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 18px;
    z-index: 2;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-panel:hover span {
    opacity: 1;
    transform: translateY(0);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 42%, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.78) 58%, rgba(248, 250, 252, 0.96) 100%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.48) 54%, var(--slate-50) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(940px, calc(100% - 32px));
    margin: 0 auto;
    padding: 68px 24px 44px;
    color: #ffffff;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 14px;
    color: var(--rose-700);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    background: rgba(255, 241, 242, 0.86);
    border: 1px solid rgba(254, 205, 211, 0.8);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.hero-content h1 {
    max-width: 900px;
    margin: 0 auto 20px;
    font-size: clamp(36px, 7vw, 72px);
    line-height: 1.06;
    letter-spacing: -0.07em;
    text-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
}

.hero-content p {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(16px, 2vw, 21px);
}

.hero-actions,
.detail-actions,
.page-hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.primary-button,
.ghost-button,
.catalog-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose-500), var(--rose-700));
    box-shadow: 0 16px 34px rgba(225, 29, 72, 0.35);
}

.primary-button:hover,
.catalog-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(225, 29, 72, 0.42);
}

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

.dark-ghost {
    color: var(--slate-800);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(251, 113, 133, 0.26);
}

.small-button {
    min-height: 42px;
    padding: 0 18px;
    font-size: 14px;
}

.hero-feature-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    max-width: 760px;
    margin: 34px auto 0;
}

.hero-feature-list a {
    display: grid;
    gap: 8px;
    padding: 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, background 0.25s ease;
}

.hero-feature-list a:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.22);
}

.hero-feature-list img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
}

.hero-feature-list span {
    min-height: 40px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.section-wrap {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 28px;
}

.section-heading span {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--rose-600);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.section-heading h2,
.page-hero h1,
.detail-info h1,
.content-card h2 {
    margin: 0;
    color: var(--slate-900);
    line-height: 1.15;
    letter-spacing: -0.05em;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 44px);
}

.section-heading p,
.page-hero p {
    margin: 10px 0 0;
    color: #64748b;
}

.split-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    max-width: none;
    gap: 24px;
}

.text-link {
    flex: none;
    color: var(--rose-600);
    font-weight: 900;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 8px;
    min-height: 188px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(251, 113, 133, 0.14);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -50px;
    top: -60px;
    background: radial-gradient(circle, rgba(251, 113, 133, 0.2), transparent 70%);
}

.category-tile:hover {
    transform: translateY(-6px);
    border-color: rgba(251, 113, 133, 0.34);
    box-shadow: var(--shadow-card);
}

.category-icon {
    font-size: 34px;
}

.category-tile strong {
    color: var(--slate-900);
    font-size: 22px;
}

.category-tile em {
    color: #64748b;
    font-style: normal;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.category-samples a {
    padding: 4px 8px;
    color: var(--rose-700);
    font-size: 12px;
    background: var(--rose-50);
    border-radius: 999px;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(251, 113, 133, 0.32);
    box-shadow: var(--shadow-card);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--rose-100), var(--slate-100));
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease, filter 0.55s ease;
}

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

.poster-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 38%, rgba(15, 23, 42, 0.82) 100%);
    opacity: 0.52;
}

.watch-pill {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    padding: 7px 12px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    background: rgba(225, 29, 72, 0.92);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.35);
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 0 0 8px;
    color: var(--slate-900);
    font-size: 18px;
    line-height: 1.32;
    letter-spacing: -0.02em;
}

.movie-card h3 a:hover {
    color: var(--rose-600);
}

.movie-card p {
    min-height: 46px;
    margin: 0 0 12px;
    color: #64748b;
    font-size: 14px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    color: var(--rose-700);
    font-size: 12px;
    font-weight: 800;
    background: var(--rose-50);
    border-radius: 999px;
}

.ranking-strip {
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.22), transparent 28rem),
        linear-gradient(135deg, var(--slate-900), #301129 65%, #57152b);
}

.ranking-inner {
    color: #ffffff;
}

.light-heading h2,
.light-heading p,
.light-heading span {
    color: #ffffff;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    min-height: 132px;
}

.compact-card .poster-link {
    aspect-ratio: auto;
    height: 100%;
}

.compact-card .movie-card-body {
    min-width: 0;
    padding: 16px;
}

.compact-card h3 {
    font-size: 16px;
}

.compact-card p {
    min-height: 0;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber-400), var(--rose-500));
    border-radius: 50%;
    box-shadow: 0 10px 22px rgba(244, 63, 94, 0.3);
}

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

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 16px 64px;
    text-align: center;
    background:
        radial-gradient(circle at 20% 10%, rgba(251, 113, 133, 0.18), transparent 24rem),
        radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.16), transparent 22rem),
        linear-gradient(180deg, #ffffff, var(--rose-50));
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 56px);
}

.page-hero p {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
}

.catalog-section {
    padding-top: 40px;
}

.catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 420px) 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 22px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(251, 113, 133, 0.12);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.sticky-toolbar {
    position: sticky;
    top: 92px;
    z-index: 30;
}

.catalog-search input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--rose-200);
    border-radius: 999px 0 0 999px;
    outline: none;
}

.catalog-search button {
    min-height: 48px;
    padding: 0 18px;
    color: #ffffff;
    background: var(--rose-600);
    border-radius: 0 999px 999px 0;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.filter-button {
    min-height: 38px;
    padding: 0 13px;
    color: #64748b;
    cursor: pointer;
    background: var(--slate-50);
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.filter-button:hover,
.filter-button.active {
    color: var(--rose-700);
    background: var(--rose-50);
    border-color: var(--rose-200);
}

.filter-status {
    min-height: 24px;
    margin: 0 0 18px;
    color: #64748b;
    font-weight: 700;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #ffffff;
    background: var(--slate-900);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(10px) saturate(1.08);
    transform: scale(1.08);
    opacity: 0.42;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.74), rgba(15, 23, 42, 0.42)),
        linear-gradient(180deg, rgba(15, 23, 42, 0.18), var(--slate-900));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(var(--container), calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(230px, 330px) 1fr;
    gap: 42px;
    align-items: center;
    padding: 64px 0;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
}

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

.detail-info h1 {
    max-width: 900px;
    color: #ffffff;
    font-size: clamp(36px, 6vw, 66px);
}

.detail-info p {
    max-width: 790px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
}

.detail-actions {
    justify-content: flex-start;
}

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

.detail-meta span {
    padding: 7px 12px;
    color: #ffffff;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
}

.player-section {
    padding-bottom: 24px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #030712;
    border-radius: 28px;
    box-shadow: 0 24px 72px rgba(15, 23, 42, 0.3);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    cursor: pointer;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    gap: 10px;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.72));
    border: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-symbol {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    padding-left: 6px;
    color: #ffffff;
    font-size: 34px;
    background: linear-gradient(135deg, var(--rose-500), var(--rose-700));
    border-radius: 50%;
    box-shadow: 0 20px 44px rgba(225, 29, 72, 0.45);
}

.player-start span:last-child {
    padding: 8px 18px;
    font-size: 18px;
    font-weight: 900;
    background: rgba(15, 23, 42, 0.46);
    border-radius: 999px;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr minmax(260px, 0.75fr);
    gap: 22px;
    padding-top: 40px;
}

.content-card {
    padding: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.content-card h2 {
    margin-bottom: 14px;
    font-size: 24px;
}

.content-card p {
    margin: 0;
    color: #475569;
    font-size: 16px;
}

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

.detail-side dt {
    color: #94a3b8;
    font-weight: 900;
}

.detail-side dd {
    margin: 0;
    color: var(--slate-800);
}

.pager-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 0;
    padding-bottom: 0;
}

.pager-row a {
    max-width: 48%;
    padding: 12px 16px;
    color: var(--rose-700);
    font-weight: 900;
    background: var(--rose-50);
    border: 1px solid var(--rose-100);
    border-radius: 999px;
}

.site-footer {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.76);
    background: var(--slate-900);
}

.footer-inner {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
}

.footer-logo {
    font-size: 26px;
}

.footer-inner p {
    max-width: 520px;
    margin: 12px 0 0;
}

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

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

.footer-bottom {
    padding: 18px 16px;
    color: rgba(255, 255, 255, 0.58);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1180px) {
    .catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .mobile-toggle {
        display: grid;
        place-items: center;
        margin-left: auto;
    }

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

    .hero-panel:nth-child(n + 4) {
        display: none;
    }

    .hero-feature-list,
    .movie-grid,
    .catalog-grid,
    .rank-grid,
    .category-grid,
    .detail-content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-toolbar {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        justify-content: flex-start;
    }

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

@media (max-width: 720px) {
    .header-inner {
        min-height: 68px;
    }

    .logo-text small {
        display: none;
    }

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

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

    .hero-panel:nth-child(n + 3) {
        display: none;
    }

    .hero-content {
        padding-top: 92px;
    }

    .hero-feature-list,
    .movie-grid,
    .catalog-grid,
    .rank-grid,
    .category-grid,
    .detail-content-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

    .split-heading {
        display: block;
    }

    .text-link {
        display: inline-flex;
        margin-top: 14px;
    }

    .compact-card {
        grid-template-columns: 88px 1fr;
    }

    .detail-hero-inner {
        display: block;
        min-height: auto;
        padding: 48px 0;
    }

    .detail-poster {
        max-width: 230px;
        margin-bottom: 28px;
    }

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

    .detail-actions {
        justify-content: flex-start;
    }

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

    .pager-row {
        display: grid;
    }

    .pager-row a {
        max-width: none;
    }
}

@media (max-width: 460px) {
    .logo-text strong {
        font-size: 18px;
    }

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

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

    .primary-button,
    .ghost-button {
        width: 100%;
    }

    .catalog-search {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .catalog-search input {
        min-width: 0;
    }
}
