:root {
    --primary-50: #fef6ee;
    --primary-100: #fde9d7;
    --primary-500: #f0641f;
    --primary-600: #e14915;
    --primary-700: #bb3513;
    --secondary-50: #ecfdf8;
    --secondary-100: #ccfbef;
    --secondary-500: #14b8a6;
    --secondary-700: #0a7763;
    --accent-50: #fff7ed;
    --neutral-50: #fafaf9;
    --neutral-100: #f5f5f4;
    --neutral-200: #e7e5e4;
    --neutral-500: #78716c;
    --neutral-600: #57534e;
    --neutral-700: #44403c;
    --neutral-900: #1c1917;
    --white: #ffffff;
    --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
    --shadow-hard: 0 10px 40px -3px rgba(0, 0, 0, 0.15), 0 20px 30px -10px rgba(0, 0, 0, 0.1);
    --radius-lg: 18px;
    --radius-xl: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--neutral-900);
    background: var(--neutral-50);
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--neutral-200);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--white);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    box-shadow: var(--shadow-soft);
}

.brand-text strong,
.footer-logo {
    display: block;
    color: var(--neutral-900);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
}

.brand-text small {
    display: block;
    margin-top: 3px;
    color: var(--neutral-600);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--neutral-700);
    font-weight: 600;
}

.desktop-nav a,
.mobile-nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: var(--primary-600);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--neutral-100);
}

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

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

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

.mobile-cat-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--neutral-200);
}

.mobile-cat-links a {
    padding: 6px 10px;
    border-radius: 99px;
    background: var(--primary-50);
    color: var(--primary-700);
    font-size: 13px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 74px 0 66px;
    background: linear-gradient(135deg, var(--primary-50), var(--white) 46%, var(--secondary-50));
}

.hero-bg {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    filter: blur(22px);
    opacity: 0.48;
    pointer-events: none;
}

.hero-bg-one {
    left: -120px;
    top: -80px;
    background: rgba(240, 100, 31, 0.24);
}

.hero-bg-two {
    right: -140px;
    bottom: -130px;
    background: rgba(20, 184, 166, 0.26);
}

.hero-inner {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr);
    gap: 46px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--primary-100);
    color: var(--primary-700);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 18px 0 18px;
    color: var(--neutral-900);
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--neutral-600);
    font-size: 18px;
}

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

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

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    background: var(--primary-500);
    box-shadow: 0 12px 24px rgba(240, 100, 31, 0.22);
}

.btn-primary:hover {
    background: var(--primary-600);
}

.btn-ghost {
    color: var(--primary-700);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.btn-ghost.dark {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-search {
    display: flex;
    max-width: 620px;
    margin-top: 26px;
    padding: 8px;
    border: 1px solid rgba(240, 100, 31, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(8px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 14px;
    background: transparent;
    color: var(--neutral-900);
}

.hero-search button,
.search-bar-large button {
    border: 0;
    border-radius: 13px;
    padding: 0 18px;
    color: var(--white);
    background: var(--primary-500);
    font-weight: 800;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.hero-stats span {
    padding: 10px 13px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--neutral-600);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.hero-stats strong {
    margin-right: 4px;
    color: var(--primary-600);
    font-size: 21px;
}

.hero-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-category-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 99px;
    color: var(--neutral-700);
    background: var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.hero-category-links span {
    color: var(--primary-600);
    font-weight: 800;
}

.hero-visual {
    position: relative;
}

.hero-slider {
    position: relative;
    min-height: 560px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-poster-card {
    position: relative;
    display: block;
    height: 560px;
    overflow: hidden;
    border: 10px solid var(--white);
    border-radius: 34px;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    box-shadow: var(--shadow-hard);
}

.hero-img,
.poster-img,
.detail-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.poster-fallback {
    display: none;
    width: 100%;
    height: 100%;
    min-height: 240px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
    text-align: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
}

.poster-fallback.is-visible {
    display: flex;
}

.poster-fallback span {
    font-size: 18px;
    font-weight: 900;
}

.poster-fallback small {
    opacity: 0.86;
}

.hero-poster-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 34px;
    color: var(--white);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
}

.hero-rank {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    font-size: 12px;
    font-weight: 800;
}

.hero-poster-overlay h2 {
    margin: 12px 0 8px;
    font-size: 30px;
    line-height: 1.15;
}

.hero-poster-overlay p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.86);
}

.hero-watch {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--primary-500);
    font-weight: 800;
}

.hero-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.hero-slider-controls button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: var(--white);
    color: var(--primary-700);
    box-shadow: var(--shadow-soft);
    font-size: 22px;
    font-weight: 900;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    background: rgba(240, 100, 31, 0.28) !important;
}

.hero-dot.is-active {
    width: 28px;
    background: var(--primary-500) !important;
}

.content-section {
    padding: 62px 0;
}

.bg-white {
    background: var(--white);
}

.bg-soft {
    background: var(--neutral-50);
}

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

.section-heading h2 {
    margin: 0 0 6px;
    font-size: 30px;
    line-height: 1.16;
}

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

.section-more {
    min-width: max-content;
    color: var(--primary-600);
    font-weight: 800;
}

.movie-grid,
.featured-grid,
.category-grid,
.category-overview-grid {
    display: grid;
    gap: 22px;
}

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

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hard);
}

.movie-card-link {
    display: block;
    height: 100%;
}

.poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
}

.movie-card-featured .poster-wrap {
    aspect-ratio: 16 / 9;
}

.year-badge,
.play-chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.year-badge {
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    background: rgba(0, 0, 0, 0.68);
}

.play-chip {
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
    background: var(--primary-500);
}

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

.movie-card-featured .movie-card-body {
    padding: 20px;
}

.meta-pills,
.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-pills span {
    padding: 4px 8px;
    border-radius: 99px;
    background: var(--secondary-100);
    color: var(--secondary-700);
    font-size: 12px;
    font-weight: 800;
}

.meta-pills span:first-child {
    background: var(--primary-100);
    color: var(--primary-700);
}

.movie-card h3 {
    display: -webkit-box;
    margin: 12px 0 8px;
    overflow: hidden;
    color: var(--neutral-900);
    font-size: 18px;
    line-height: 1.28;
    font-weight: 900;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

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

.card-line {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--neutral-600);
    font-size: 14px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 7px;
    border-radius: 8px;
    background: var(--neutral-100);
    color: var(--neutral-700);
    font-size: 12px;
}

.category-tile,
.category-overview-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    color: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile {
    min-height: 150px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hard);
}

.category-tile span {
    font-size: 22px;
    font-weight: 900;
}

.category-tile strong {
    margin: 6px 0;
    font-size: 18px;
}

.category-tile small {
    opacity: 0.88;
}

.cta-band {
    padding: 58px 0;
    color: var(--white);
    background: linear-gradient(135deg, var(--neutral-900), #3f1f12 55%, var(--primary-700));
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta-inner h2 {
    margin: 0 0 8px;
    font-size: 30px;
}

.cta-inner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.page-hero,
.detail-hero {
    padding: 66px 0;
    color: var(--white);
    background: radial-gradient(circle at 18% 20%, rgba(240, 100, 31, 0.45), transparent 34%), linear-gradient(135deg, var(--neutral-900), #352018 56%, #093e38);
}

.small-hero h1,
.ranking-hero h1 {
    color: var(--white);
}

.small-hero p,
.ranking-hero p {
    color: rgba(255, 255, 255, 0.76);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: var(--white);
}

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

.category-overview-card {
    background: var(--white);
    color: var(--neutral-900);
}

.category-overview-main {
    display: block;
    padding: 24px;
    background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
}

.category-count {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--primary-100);
    color: var(--primary-700);
    font-weight: 800;
    font-size: 13px;
}

.category-overview-main h2 {
    margin: 14px 0 8px;
    font-size: 26px;
}

.category-overview-main p {
    margin: 0;
    color: var(--neutral-600);
}

.category-mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px 24px 24px;
}

.category-mini-links a {
    padding: 6px 9px;
    border-radius: 10px;
    background: var(--neutral-100);
    color: var(--neutral-700);
    font-size: 13px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 26px;
    padding: 16px;
    border: 1px solid var(--neutral-200);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.filter-search input,
.filter-controls select,
.search-bar-large input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--neutral-200);
    border-radius: 13px;
    outline: 0;
    padding: 0 14px;
    background: var(--white);
    color: var(--neutral-900);
}

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

.filter-count {
    margin: 0;
    color: var(--neutral-600);
    white-space: nowrap;
}

.filter-count strong {
    color: var(--primary-600);
}

.movie-card.is-hidden,
.ranking-row.is-hidden {
    display: none;
}

.ranking-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-row {
    overflow: hidden;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.ranking-link {
    display: grid;
    grid-template-columns: 72px minmax(160px, 1fr) minmax(240px, auto) minmax(130px, auto);
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
}

.ranking-number {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--white);
    background: var(--primary-500);
    font-weight: 900;
}

.ranking-title {
    font-weight: 900;
}

.ranking-meta {
    color: var(--neutral-600);
    font-size: 14px;
}

.ranking-score {
    color: var(--primary-700);
    font-weight: 900;
}

.search-app {
    display: grid;
    gap: 16px;
}

.search-bar-large {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--neutral-200);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.search-controls {
    justify-content: flex-start;
}

.detail-hero {
    padding: 56px 0;
}

.detail-hero-inner {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border: 10px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    box-shadow: var(--shadow-hard);
}

.detail-info h1 {
    color: var(--white);
}

.detail-one-line {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 19px;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0;
}

.detail-meta-grid span {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
}

.detail-meta-grid strong {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
}

.detail-tags .tag-chip {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
}

.player-section {
    padding: 54px 0;
    background: #0d0b0a;
}

.player-card {
    overflow: hidden;
    border-radius: 26px;
    background: #000000;
    box-shadow: var(--shadow-hard);
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(240, 100, 31, 0.18), rgba(0, 0, 0, 0.72));
    transition: opacity 0.25s ease;
}

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

.play-circle {
    display: inline-flex;
    width: 76px;
    height: 76px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary-500);
    box-shadow: 0 18px 40px rgba(240, 100, 31, 0.34);
    font-size: 28px;
}

.play-overlay strong {
    font-size: 22px;
}

.play-overlay small {
    color: rgba(255, 255, 255, 0.72);
}

.player-note {
    margin: 0;
    padding: 14px 18px;
    color: rgba(255, 255, 255, 0.72);
    background: #15110f;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.detail-article,
.detail-side-card {
    padding: 28px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.detail-article h2,
.detail-side-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.detail-article p {
    margin: 0 0 24px;
    color: var(--neutral-700);
    font-size: 17px;
}

.detail-side-card dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.detail-side-card dt {
    color: var(--neutral-500);
    font-size: 13px;
    font-weight: 800;
}

.detail-side-card dd {
    margin: -8px 0 4px;
    color: var(--neutral-900);
    font-weight: 700;
}

.detail-side-card a {
    color: var(--primary-600);
}

.site-footer {
    padding: 46px 0;
    color: rgba(255, 255, 255, 0.78);
    background: var(--neutral-900);
}

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

.footer-logo {
    color: var(--white);
}

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

.footer-links strong {
    display: block;
    margin-bottom: 12px;
    color: var(--white);
}

.footer-links div {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

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

@media (max-width: 1100px) {
    .hero-inner,
    .detail-hero-inner,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-slider,
    .hero-poster-card {
        min-height: 470px;
        height: 470px;
    }

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

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

    .detail-poster {
        max-width: 330px;
    }
}

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

    .mobile-menu-button {
        display: block;
    }

    .hero-section {
        padding: 48px 0 44px;
    }

    .hero-inner {
        gap: 30px;
    }

    .hero-search,
    .search-bar-large,
    .cta-inner,
    .section-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-search,
    .search-bar-large {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-search button,
    .search-bar-large button {
        min-height: 44px;
    }

    .hero-slider,
    .hero-poster-card {
        min-height: 410px;
        height: 410px;
    }

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

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

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

    .ranking-link {
        grid-template-columns: 54px 1fr;
    }

    .ranking-meta,
    .ranking-score {
        grid-column: 2;
    }

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

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

@media (max-width: 560px) {
    .container,
    .header-inner,
    .footer-inner,
    .mobile-nav,
    .hero-inner {
        width: min(100% - 22px, 1180px);
    }

    .brand-text small {
        display: none;
    }

    .brand-text strong {
        font-size: 17px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 31px;
    }

    .hero-copy p,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .hero-slider,
    .hero-poster-card {
        min-height: 360px;
        height: 360px;
    }

    .movie-grid,
    .large-grid,
    .featured-grid,
    .compact-featured,
    .category-grid,
    .category-overview-grid {
        gap: 14px;
    }

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

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

    .card-line,
    .tag-chip,
    .meta-pills span {
        font-size: 12px;
    }

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

    .detail-article,
    .detail-side-card {
        padding: 20px;
    }
}
