* {
    box-sizing: border-box;
}

:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --rose-50: #fff1f2;
    --rose-400: #fb7185;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: rgba(217, 119, 6, 0.18);
    --card: rgba(255, 255, 255, 0.88);
    --shadow: 0 20px 45px rgba(120, 53, 15, 0.13);
    --radius: 22px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, var(--amber-50) 0%, #ffffff 46%, var(--rose-50) 100%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

.image-missing {
    opacity: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 28px rgba(146, 64, 14, 0.08);
}

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

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

.logo-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: white;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
    box-shadow: 0 12px 24px rgba(244, 63, 94, 0.22);
}

.logo-text {
    font-size: 22px;
    background: linear-gradient(90deg, var(--amber-600), var(--rose-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    position: relative;
    font-weight: 650;
    color: #374151;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--amber-600);
    transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--amber-600);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: var(--ink);
    background: var(--amber-100);
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    gap: 10px;
    flex-wrap: wrap;
}

.mobile-nav.open {
    display: flex;
}

.mobile-link {
    padding: 10px 14px;
    border-radius: 999px;
    background: white;
    color: #4b5563;
    box-shadow: 0 6px 18px rgba(120, 53, 15, 0.08);
}

.mobile-link.active {
    color: white;
    background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
}

.silk-shine {
    position: relative;
    overflow: hidden;
}

.silk-shine::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    z-index: 2;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    animation: silk-shine-animation 3s infinite;
}

.silk-overlay {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(251, 113, 133, 0.3), rgba(251, 191, 36, 0.3));
    background-size: 400% 400%;
    animation: silk-gradient-flow 8s ease infinite;
}

.hero {
    height: 640px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(255, 255, 255, 0.5), rgba(251, 113, 133, 0.2));
}

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

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(22px) saturate(1.15);
    transform: scale(1.08);
    opacity: 0.35;
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.72), rgba(255, 241, 242, 0.88));
}

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

.hero-copy {
    animation: fadeIn 0.9s ease both;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--amber-700, #b45309);
    font-size: 14px;
    font-weight: 750;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(217, 119, 6, 0.16);
    box-shadow: 0 8px 24px rgba(146, 64, 14, 0.08);
}

.hero h1,
.page-hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.05em;
    background: linear-gradient(90deg, var(--amber-600), var(--rose-500), var(--amber-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p,
.page-hero p,
.intro-block p {
    max-width: 760px;
    color: #4b5563;
    font-size: clamp(18px, 2.5vw, 24px);
    line-height: 1.75;
}

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

.hero-tags span,
.detail-tags span,
.card-tags span {
    padding: 6px 10px;
    border-radius: 999px;
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
    background: var(--amber-100);
}

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

.btn,
.home-search button,
.filter-panel button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover,
.home-search button:hover {
    transform: translateY(-2px);
}

.btn.primary,
.home-search button {
    color: white;
    background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
    box-shadow: 0 14px 30px rgba(244, 63, 94, 0.22);
}

.btn.secondary {
    color: var(--amber-700, #b45309);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
}

.btn.ghost {
    color: #be123c;
    background: rgba(255, 241, 242, 0.85);
}

.btn.small {
    min-height: 38px;
    padding: 0 16px;
    font-size: 14px;
}

.btn.full {
    width: 100%;
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.72);
    border-radius: 34px;
    background: linear-gradient(135deg, var(--amber-200, #fde68a), var(--rose-50));
    box-shadow: 0 30px 70px rgba(120, 53, 15, 0.26);
    transform: rotate(2deg);
}

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

.hero-poster:hover img {
    transform: scale(1.08);
}

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 10px 18px;
    border-radius: 999px;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
}

.hero-control.prev {
    left: 24px;
}

.hero-control.next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.28);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
    width: 34px;
    background: linear-gradient(90deg, var(--amber-500), var(--rose-500));
}

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

.section {
    padding: 54px 0;
}

.section-narrow {
    max-width: 920px;
    text-align: center;
}

.intro-block h2,
.section-head h2,
.detail-panel h1,
.detail-panel h2 {
    margin: 0;
    color: #1f2937;
}

.intro-block h2,
.section-head h2 {
    font-size: clamp(26px, 4vw, 38px);
}

.home-search {
    width: min(720px, 100%);
    margin: 28px auto 0;
    padding: 8px;
    display: flex;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.home-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(217, 119, 6, 0.15);
    border-radius: 999px;
    padding: 0 18px;
    color: #374151;
    background: white;
    outline: none;
}

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

.section-head a {
    color: var(--amber-600);
    font-weight: 800;
}

.compact-head {
    align-items: center;
    margin-bottom: 18px;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 14px 36px rgba(146, 64, 14, 0.1);
    transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 54px rgba(146, 64, 14, 0.18);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100), var(--rose-50));
}

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.34), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .card-cover::after {
    opacity: 1;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

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

.card-type,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 800;
    background: rgba(245, 158, 11, 0.92);
}

.card-type {
    left: 12px;
}

.rank-badge {
    right: 12px;
    background: rgba(244, 63, 94, 0.92);
}

.card-body {
    padding: 18px;
}

.card-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-title:hover {
    color: var(--amber-600);
}

.card-line {
    display: -webkit-box;
    min-height: 45px;
    margin: 10px 0 14px;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 14px;
    color: #6b7280;
    font-size: 13px;
}

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

.movie-card.compact .card-cover {
    height: 100%;
    aspect-ratio: auto;
}

.movie-card.compact .card-title {
    min-height: auto;
    font-size: 16px;
}

.movie-card.compact .card-line {
    min-height: 42px;
    margin-bottom: 10px;
}

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

.split-section,
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
}

.rank-board,
.detail-panel,
.player-card,
.poster-card,
.category-panel,
.category-overview-card,
.filter-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.rank-board {
    padding: 22px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 34px 74px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 251, 235, 0.6);
    transition: background 0.25s ease, transform 0.25s ease;
}

.rank-row:hover {
    background: white;
    transform: translateX(4px);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
}

.rank-row img {
    width: 74px;
    height: 52px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--amber-100);
}

.rank-info {
    min-width: 0;
}

.rank-info strong,
.rank-info em {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-info strong {
    font-size: 14px;
}

.rank-info em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.rank-hot {
    color: var(--rose-600);
    font-weight: 900;
    font-size: 13px;
}

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

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

.category-panel {
    padding: 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-panel:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 52px rgba(146, 64, 14, 0.16);
}

.category-title {
    display: inline-block;
    margin-bottom: 12px;
    color: #111827;
    font-size: 22px;
    font-weight: 900;
}

.category-title:hover {
    color: var(--amber-600);
}

.category-panel p,
.category-overview-card p {
    color: var(--muted);
    line-height: 1.65;
}

.category-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.category-mini a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #92400e;
    font-size: 12px;
    font-weight: 750;
    background: var(--amber-100);
}

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

.page-hero {
    position: relative;
    margin: 42px auto 10px;
    padding: 64px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(255, 255, 255, 0.9), rgba(251, 113, 133, 0.18));
    box-shadow: var(--shadow);
}

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

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

.category-overview-card {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    overflow: hidden;
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 250px;
    background: var(--amber-100);
}

.category-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overview-body {
    padding: 28px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px 180px;
    gap: 12px;
    padding: 14px;
    margin-bottom: 24px;
}

.inline-filter {
    grid-template-columns: 1fr 180px;
}

.detail-main {
    padding-top: 30px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--amber-600);
    font-weight: 750;
}

.detail-content {
    min-width: 0;
}

.player-card {
    padding: 12px;
    margin-bottom: 24px;
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    background: #050505;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: white;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.68));
    cursor: pointer;
}

.player-overlay.is-hidden {
    display: none;
}

.play-icon {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: white;
    font-size: 28px;
    background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.32);
}

.player-overlay strong {
    max-width: min(580px, calc(100% - 32px));
    font-size: clamp(20px, 3vw, 34px);
    text-align: center;
}

.detail-panel {
    padding: 30px;
    margin-bottom: 24px;
}

.detail-panel h1 {
    margin: 18px 0 12px;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.12;
}

.detail-one-line {
    color: #4b5563;
    font-size: 20px;
    line-height: 1.75;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #4b5563;
    background: #fff7ed;
}

.detail-tags {
    margin-bottom: 24px;
}

.detail-panel h2 {
    margin-top: 30px;
    margin-bottom: 12px;
    font-size: 24px;
}

.text-block p {
    margin: 0 0 16px;
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
}

.detail-side {
    min-width: 0;
}

.poster-card {
    padding: 16px;
    margin-bottom: 24px;
}

.poster-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 14px;
    background: var(--amber-100);
}

.sticky-board {
    position: sticky;
    top: 96px;
}

.related-section {
    width: 100%;
    padding-top: 18px;
}

.site-footer {
    margin-top: 40px;
    background: linear-gradient(135deg, #78350f, #881337);
    color: #fffbeb;
}

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

.footer-logo {
    color: white;
    font-size: 24px;
}

.site-footer p {
    max-width: 540px;
    color: #fde68a;
    line-height: 1.75;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: white;
    font-size: 18px;
}

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

.footer-links a {
    padding: 7px 11px;
    border-radius: 999px;
    color: #fffbeb;
    background: rgba(255, 255, 255, 0.11);
}

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

@keyframes silk-shine-animation {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

@keyframes silk-gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(22px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--amber-50);
}

::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--amber-300);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--amber-400);
}

@media (max-width: 1080px) {
    .movie-grid,
    .featured-grid,
    .ranking-grid,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .sticky-board {
        position: static;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 50px 0;
    }

    .hero {
        height: auto;
        min-height: 720px;
    }

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

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

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

    .hero h1,
    .page-hero h1 {
        letter-spacing: -0.03em;
    }

    .hero-control {
        display: none;
    }

    .movie-grid,
    .featured-grid,
    .ranking-grid,
    .category-grid,
    .list-grid,
    .wide-rank-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-overview-card {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 560px) {
    .header-inner,
    .section,
    .page-main,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 22px, 1180px);
    }

    .hero {
        min-height: 680px;
    }

    .hero-content {
        width: min(100% - 22px, 1180px);
    }

    .hero p,
    .page-hero p,
    .intro-block p {
        font-size: 16px;
    }

    .hero-actions,
    .page-actions,
    .home-search {
        flex-direction: column;
        border-radius: 24px;
    }

    .home-search input,
    .home-search button,
    .btn {
        width: 100%;
    }

    .page-hero {
        padding: 34px 22px;
        border-radius: 24px;
    }

    .movie-grid,
    .featured-grid,
    .ranking-grid,
    .category-grid,
    .list-grid,
    .wide-rank-list {
        grid-template-columns: 1fr;
    }

    .movie-card.compact {
        grid-template-columns: 130px minmax(0, 1fr);
    }

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

    .rank-hot {
        display: none;
    }

    .detail-panel {
        padding: 22px;
    }
}
