:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --orange-700: #c2410c;
    --orange-600: #ea580c;
    --orange-500: #f97316;
    --red-500: #ef4444;
    --amber-100: #fef3c7;
    --blue-50: #eff6ff;
    --green-50: #ecfdf5;
    --cyan-50: #ecfeff;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-strong: 0 24px 70px rgba(15, 23, 42, 0.28);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    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-900);
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 42%, #ffffff 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #ffffff;
    background: linear-gradient(90deg, var(--slate-950), var(--slate-900) 45%, var(--slate-800));
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.28);
}

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

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

.brand-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange-500), var(--red-500));
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
}

.brand-text {
    font-size: 24px;
    background: linear-gradient(135deg, #fb923c, #ef4444);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.82);
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    color: #fb923c;
}

.header-search,
.mobile-search,
.large-search,
.search-page-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input {
    width: 210px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    background: rgba(51, 65, 85, 0.95);
    border-radius: 999px;
    padding: 10px 14px;
    outline: none;
}

.header-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.search-page-form input:focus,
.filter-input input:focus,
.filter-selects select:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}

.header-search button,
.mobile-search button,
.large-search button,
.search-page-form button {
    border: 0;
    color: #ffffff;
    background: var(--orange-600);
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.large-search button:hover,
.search-page-form button:hover {
    background: var(--orange-700);
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 2px;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.hero-carousel {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: var(--slate-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

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

.hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.34;
    transform: scale(1.04);
    filter: saturate(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 18%, rgba(249, 115, 22, 0.28), transparent 28%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.72) 48%, rgba(15, 23, 42, 0.24) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 40%);
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.18);
    border: 1px solid rgba(251, 146, 60, 0.38);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 14px;
    font-weight: 800;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 20px 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
    margin: 0 0 24px;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
    line-height: 1.8;
}

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

.hero-tags span,
.tag-list span,
.detail-meta span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
}

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

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

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange-600), var(--red-500));
    padding: 14px 24px;
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.28);
}

.secondary-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 13px 22px;
}

.primary-button:hover,
.secondary-button:hover,
.text-button:hover,
.section-link:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    transform: rotate(2deg);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 24px;
    z-index: 2;
    pointer-events: none;
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 0;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    border-radius: 50%;
    font-size: 38px;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: var(--orange-500);
}

.quick-search-panel,
.content-section,
.detail-layout,
.search-page-panel,
.overview-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.quick-search-panel {
    position: relative;
    z-index: 8;
    margin-top: -48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
    gap: 24px;
    align-items: center;
    padding: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-strong);
}

.quick-search-panel h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.quick-search-panel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.large-search input,
.search-page-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 14px 18px;
    outline: none;
}

.content-section {
    margin-top: 48px;
    padding: 36px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(203, 213, 225, 0.75);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.soft-blue {
    background: linear-gradient(180deg, var(--blue-50), #ffffff);
}

.soft-green {
    background: linear-gradient(135deg, var(--green-50), var(--cyan-50));
}

.soft-orange {
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--slate-600);
}

.section-link,
.text-button {
    color: var(--orange-700);
    background: #ffedd5;
    padding: 10px 16px;
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.98);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    border-color: rgba(249, 115, 22, 0.48);
    box-shadow: var(--shadow-soft);
    transform: translateY(-7px);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--slate-800);
}

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

.movie-card:hover .poster-wrap img,
.category-tile:hover img,
.category-overview-image:hover img {
    transform: scale(1.08);
}

.region-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    z-index: 3;
    color: #ffffff;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

.region-badge {
    right: 12px;
    background: rgba(234, 88, 12, 0.94);
}

.rank-badge {
    left: 12px;
    background: rgba(15, 23, 42, 0.86);
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: #ffffff;
    background: rgba(234, 88, 12, 0.88);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.84);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

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

.movie-card h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta,
.card-tags,
.card-desc {
    margin: 8px 0 0;
    color: var(--slate-600);
    font-size: 13px;
    line-height: 1.5;
}

.card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 3em;
    overflow: hidden;
}

.card-tags {
    color: var(--orange-700);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.category-tile {
    position: relative;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 22px;
    color: #ffffff;
    border-radius: var(--radius-xl);
    background: var(--slate-900);
    box-shadow: var(--shadow-soft);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.9) 0%, rgba(15, 23, 42, 0.2) 70%);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease;
}

.category-tile span,
.category-tile strong,
.category-tile p {
    position: relative;
    z-index: 2;
}

.category-tile span {
    font-size: 24px;
    font-weight: 950;
}

.category-tile strong {
    margin-top: 8px;
    color: #fed7aa;
}

.category-tile p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.6;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 54px 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-row:hover {
    border-color: rgba(249, 115, 22, 0.5);
    transform: translateX(4px);
}

.ranking-number {
    color: var(--orange-700);
    font-size: 22px;
    font-weight: 950;
}

.ranking-row img {
    width: 56px;
    height: 78px;
    object-fit: cover;
    border-radius: 10px;
}

.ranking-title {
    min-width: 0;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-meta {
    color: var(--slate-600);
    font-size: 14px;
    white-space: nowrap;
}

.page-hero {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
    padding: 56px;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 15%, rgba(249, 115, 22, 0.28), transparent 30%),
        linear-gradient(135deg, var(--slate-950), var(--slate-800));
    border-radius: 32px;
    box-shadow: var(--shadow-strong);
    overflow: hidden;
}

.page-hero h1 {
    margin-bottom: 14px;
    font-size: clamp(34px, 5vw, 58px);
}

.filter-bar {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.filter-input label,
.filter-selects label {
    display: grid;
    gap: 8px;
    color: var(--slate-600);
    font-size: 13px;
    font-weight: 800;
}

.filter-input input,
.filter-selects select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 12px 14px;
    outline: none;
    background: #ffffff;
}

.filter-selects {
    display: flex;
    gap: 12px;
}

.empty-state {
    margin: 28px 0 0;
    padding: 24px;
    color: var(--slate-600);
    text-align: center;
    background: #f8fafc;
    border-radius: var(--radius-lg);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.category-overview-image {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 2 / 3;
    background: var(--slate-800);
}

.category-overview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease;
}

.category-count {
    display: inline-flex;
    color: var(--orange-700);
    background: #ffedd5;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 850;
}

.category-overview-card h2 {
    margin: 12px 0 8px;
}

.category-overview-card p,
.category-overview-card li {
    color: var(--slate-600);
    line-height: 1.6;
}

.category-overview-card ul {
    margin: 12px 0 18px;
    padding-left: 18px;
}

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

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.34)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.95), transparent 42%);
}

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

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow-strong);
    aspect-ratio: 2 / 3;
}

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

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

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    margin-top: 36px;
}

.detail-main,
.detail-side {
    display: grid;
    gap: 24px;
}

.player-section,
.text-panel,
.side-card {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.player-section h2,
.text-panel h2,
.side-card h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 20px;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    width: 100%;
    height: 100%;
    border: 0;
    color: #ffffff;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.player-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.36));
}

.player-cover strong,
.play-circle {
    position: relative;
    z-index: 2;
}

.play-circle {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange-600), var(--red-500));
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.35);
    font-size: 30px;
}

.player-shell.is-playing .player-cover {
    display: none;
}

.text-panel p {
    margin: 0;
    color: var(--slate-700);
    font-size: 17px;
    line-height: 1.9;
}

.side-card dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    margin: 0;
}

.side-card dt {
    color: var(--slate-600);
    font-weight: 800;
}

.side-card dd {
    margin: 0;
    color: var(--slate-900);
}

.side-recommendations {
    display: grid;
    gap: 16px;
}

.side-recommendations .movie-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
}

.side-recommendations .poster-wrap {
    aspect-ratio: 2 / 3;
}

.side-recommendations .card-desc,
.side-recommendations .card-tags,
.side-recommendations .play-mark {
    display: none;
}

.search-page-panel {
    margin-top: 34px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.search-page-form {
    align-items: stretch;
}

.search-summary {
    margin: 18px 0;
    color: var(--slate-600);
}

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

.search-result-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
}

.search-result-card img {
    width: 86px;
    height: 124px;
    object-fit: cover;
    border-radius: 12px;
}

.search-result-card h3 {
    margin: 0 0 8px;
    line-height: 1.35;
}

.search-result-card p {
    margin: 6px 0;
    color: var(--slate-600);
    font-size: 13px;
    line-height: 1.5;
}

.site-footer {
    margin-top: 64px;
    color: #cbd5e1;
    background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

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

.footer-grid h3 {
    margin: 0 0 12px;
    color: #ffffff;
}

.footer-grid p,
.footer-grid a {
    display: block;
    margin: 8px 0;
    color: #cbd5e1;
    line-height: 1.7;
}

.footer-grid a:hover {
    color: #fb923c;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

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

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

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

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

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

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

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

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

    .hero-carousel,
    .hero-content {
        min-height: 720px;
    }

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

    .hero-poster {
        width: min(260px, 72vw);
        margin: 0 auto;
    }

    .hero-arrow {
        display: none;
    }

    .quick-search-panel,
    .filter-bar,
    .detail-hero-inner,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .quick-search-panel,
    .content-section,
    .page-hero,
    .search-page-panel {
        padding: 22px;
        border-radius: 22px;
    }

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

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

    .category-grid,
    .overview-grid,
    .search-results {
        grid-template-columns: 1fr;
    }

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

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

    .ranking-meta {
        grid-column: 3;
        white-space: normal;
    }

    .detail-hero-inner {
        padding: 36px 0;
    }

    .detail-poster {
        width: min(240px, 72vw);
    }

    .detail-info h1 {
        font-size: 38px;
    }

    .side-recommendations .movie-card {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .search-page-form,
    .large-search {
        flex-direction: column;
    }
}
