* {
    box-sizing: border-box;
}

:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-900: #78350f;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 4px 14px rgba(120, 53, 15, 0.08);
    --shadow-md: 0 14px 30px rgba(120, 53, 15, 0.12);
    --shadow-lg: 0 26px 60px rgba(120, 53, 15, 0.18);
    --radius-lg: 18px;
    --radius-xl: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: linear-gradient(180deg, #ffffff 0%, #fff7ed 42%, #ffffff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--amber-200);
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.96), rgba(255, 251, 235, 0.96));
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber-600), var(--amber-700));
    box-shadow: 0 10px 22px rgba(217, 119, 6, 0.28);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    color: var(--amber-900);
    font-size: 20px;
    letter-spacing: 0.02em;
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

.desktop-nav a {
    color: var(--gray-700);
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--amber-700);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--amber-900);
    background: var(--amber-100);
    cursor: pointer;
}

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

.mobile-nav a {
    display: block;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--gray-700);
    font-weight: 650;
}

.mobile-nav a:hover {
    background: var(--amber-100);
    color: var(--amber-700);
}

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

.hero {
    position: relative;
    height: 560px;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.hero-stage,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 900ms ease;
}

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.50) 45%, rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #ffffff;
    max-width: 1180px;
}

.hero-content h1,
.hero-content h2 {
    max-width: 720px;
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.hero-content h2 + p,
.hero-content h1 + h2 + p,
.hero-content h1 + p {
    max-width: 680px;
}

.hero-content p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: var(--amber-600);
    color: #ffffff;
    font-size: 14px;
    font-weight: 750;
    box-shadow: 0 10px 24px rgba(217, 119, 6, 0.28);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.hero-meta span {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 650;
    backdrop-filter: blur(12px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.primary-button,
.ghost-button {
    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;
}

.primary-button {
    color: #ffffff;
    background: var(--amber-600);
    box-shadow: 0 14px 30px rgba(217, 119, 6, 0.32);
}

.primary-button:hover {
    background: var(--amber-700);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(217, 119, 6, 0.42);
}

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

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.26);
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.24);
    cursor: pointer;
    font-size: 38px;
    line-height: 1;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.42);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: #ffffff;
}

.sub-hero {
    padding: 72px 0;
    color: #ffffff;
    background: linear-gradient(135deg, #92400e, #d97706 56%, #f59e0b);
}

.sub-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.1;
}

.sub-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.sub-hero.tone-blue {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
}

.sub-hero.tone-rose {
    background: linear-gradient(135deg, #9f1239, #e11d48);
}

.sub-hero.tone-green {
    background: linear-gradient(135deg, #14532d, #16a34a);
}

.sub-hero.tone-violet {
    background: linear-gradient(135deg, #4c1d95, #7c3aed);
}

.sub-hero.tone-orange {
    background: linear-gradient(135deg, #9a3412, #ea580c);
}

.sub-hero.tone-slate {
    background: linear-gradient(135deg, #0f172a, #475569);
}

.sub-hero.tone-cyan {
    background: linear-gradient(135deg, #164e63, #0891b2);
}

.rank-hero {
    background: linear-gradient(135deg, #431407, #b45309, #f59e0b);
}

.page-stack {
    display: grid;
    gap: 34px;
    padding: 46px 0 34px;
}

.search-panel,
.section-card {
    border: 1px solid rgba(253, 230, 138, 0.70);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-md);
}

.search-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 28px;
}

.search-panel h2,
.section-heading h2 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.02em;
}

.search-panel p {
    margin: 6px 0 0;
    color: var(--gray-600);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(430px, 100%);
    padding: 0 16px;
    border: 1px solid var(--amber-200);
    border-radius: 15px;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.search-box.wide {
    width: min(620px, 100%);
}

.search-box span {
    color: var(--amber-700);
    font-size: 20px;
}

.search-box input {
    width: 100%;
    min-height: 48px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--gray-900);
}

.section-card {
    padding: 30px;
}

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

.section-heading > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--amber-700);
    background: var(--amber-100);
    font-size: 20px;
}

.section-more {
    color: var(--amber-700);
    font-weight: 800;
}

.section-more:hover {
    color: var(--amber-900);
}

.amber-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 251, 235, 0.96));
}

.blue-panel {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.green-panel {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

.rose-panel {
    background: linear-gradient(135deg, #fff1f2, #fdf2f8);
}

.latest-panel {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
}

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

.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 {
    min-width: 0;
}

.movie-card-link {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.78);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card-link:hover {
    border-color: var(--amber-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.poster-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f5f4;
}

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

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

.poster-year,
.poster-duration {
    position: absolute;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(8px);
}

.poster-year {
    top: 10px;
    left: 10px;
}

.poster-duration {
    right: 10px;
    bottom: 10px;
}

.movie-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.movie-card-body h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-body p {
    flex: 1;
    margin: 0 0 14px;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 700;
}

.movie-card-meta span:first-child {
    color: var(--amber-700);
}

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

.tag-row span {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--amber-900);
    background: var(--amber-100);
    font-size: 12px;
    font-weight: 700;
}

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

.category-tile {
    min-height: 142px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    padding: 22px;
    border-radius: 20px;
    color: #ffffff;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile::before {
    content: "";
    position: absolute;
    inset: -60% -20% auto auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.category-tile strong {
    font-size: 22px;
}

.category-tile span {
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
}

.tone-amber {
    background: linear-gradient(135deg, #b45309, #f59e0b);
}

.tone-blue {
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
}

.tone-rose {
    background: linear-gradient(135deg, #be123c, #f43f5e);
}

.tone-green {
    background: linear-gradient(135deg, #15803d, #10b981);
}

.tone-violet {
    background: linear-gradient(135deg, #6d28d9, #a855f7);
}

.tone-orange {
    background: linear-gradient(135deg, #c2410c, #fb923c);
}

.tone-slate {
    background: linear-gradient(135deg, #1e293b, #64748b);
}

.tone-cyan {
    background: linear-gradient(135deg, #0e7490, #22d3ee);
}

.latest-list,
.rank-list {
    display: grid;
    gap: 14px;
}

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

.rank-link {
    display: grid;
    grid-template-columns: 54px 132px 1fr;
    gap: 16px;
    align-items: center;
    min-height: 118px;
    padding: 12px;
    border: 1px solid rgba(229, 231, 235, 0.85);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-link:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.rank-number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-600), var(--amber-700));
    font-weight: 900;
}

.rank-link img {
    width: 132px;
    height: 86px;
    border-radius: 12px;
    object-fit: cover;
    background: #f5f5f4;
}

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

.rank-info h3 {
    margin: 0 0 7px;
    font-size: 18px;
}

.rank-info p {
    margin: 0 0 8px;
    color: var(--gray-600);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 650;
}

.rank-meta span:first-child {
    color: var(--amber-700);
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 26px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chips button {
    border: 1px solid var(--amber-200);
    border-radius: 999px;
    padding: 8px 13px;
    color: var(--amber-900);
    background: var(--amber-50);
    cursor: pointer;
    font-weight: 750;
}

.filter-chips button.is-active,
.filter-chips button:hover {
    color: #ffffff;
    background: var(--amber-600);
}

.empty-state {
    margin: 24px 0 0;
    padding: 20px;
    border-radius: 16px;
    color: var(--gray-600);
    background: var(--gray-50);
    text-align: center;
}

.detail-wrap {
    padding: 34px 0 40px;
    background: linear-gradient(180deg, #f9fafb, #ffffff);
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--gray-600);
    font-size: 14px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.95fr);
    gap: 28px;
}

.detail-main {
    display: grid;
    gap: 22px;
}

.player-card,
.detail-card,
.side-card,
.related-section {
    border: 1px solid rgba(229, 231, 235, 0.86);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

.player-card {
    overflow: hidden;
    background: #0f172a;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.62));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 999px;
    padding: 16px 24px;
    color: #ffffff;
    background: var(--amber-600);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
    cursor: pointer;
    font-weight: 900;
}

.play-toggle:hover {
    background: var(--amber-700);
}

.play-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--amber-700);
    background: #ffffff;
}

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

.detail-card h1 {
    margin: 0 0 18px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

.detail-card h2,
.side-card h2 {
    margin: 24px 0 12px;
    color: var(--gray-900);
    font-size: 22px;
}

.detail-card p {
    margin: 0 0 12px;
    color: var(--gray-700);
    font-size: 16px;
    line-height: 1.85;
}

.detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.detail-meta-row span {
    padding: 8px 11px;
    border-radius: 12px;
    color: var(--amber-900);
    background: var(--amber-50);
    font-weight: 750;
}

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

.detail-side {
    display: grid;
    align-content: start;
    gap: 18px;
}

.poster-side {
    display: grid;
    gap: 18px;
}

.poster-side img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    object-fit: cover;
    background: #f5f5f4;
}

.poster-side h2 {
    margin-top: 0;
}

.poster-side p {
    margin: 0;
    color: var(--gray-600);
}

.info-list {
    margin: 0;
    display: grid;
    gap: 12px;
}

.info-list div {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: var(--gray-50);
}

.info-list dt {
    color: var(--gray-500);
    font-weight: 750;
}

.info-list dd {
    margin: 0;
    color: var(--gray-900);
    font-weight: 750;
}

.related-section {
    margin-top: 32px;
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid var(--amber-200);
    background: linear-gradient(180deg, var(--amber-50), var(--amber-100));
}

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

.footer-logo {
    color: var(--amber-900);
    font-size: 22px;
    font-weight: 900;
}

.footer-main p {
    margin: 10px 0 0;
    color: var(--gray-600);
}

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

.footer-links a {
    color: var(--gray-600);
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--amber-700);
}

.footer-bottom {
    border-top: 1px solid rgba(217, 119, 6, 0.16);
    padding: 16px;
    color: var(--gray-600);
    text-align: center;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .desktop-nav {
        gap: 14px;
        font-size: 14px;
    }

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

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

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

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

    .hero {
        height: 620px;
    }

    .hero-content {
        padding: 64px 0 70px;
        justify-content: flex-end;
    }

    .hero-shade {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.78));
    }

    .hero-arrow {
        top: auto;
        bottom: 22px;
        width: 42px;
        height: 42px;
        font-size: 32px;
    }

    .hero-prev {
        left: 22px;
    }

    .hero-next {
        right: 22px;
    }

    .search-panel,
    .section-heading,
    .catalog-toolbar,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-inner {
        display: flex;
    }

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

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

@media (max-width: 640px) {
    .container,
    .top-nav,
    .mobile-nav,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

    .brand {
        min-width: 0;
    }

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

    .hero-content p {
        font-size: 16px;
    }

    .hero-meta {
        gap: 8px;
    }

    .hero-meta span {
        font-size: 13px;
    }

    .section-card,
    .search-panel {
        padding: 20px;
        border-radius: 20px;
    }

    .movie-grid,
    .catalog-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .rank-link {
        grid-template-columns: 42px 92px 1fr;
        gap: 10px;
    }

    .rank-link img {
        width: 92px;
        height: 70px;
    }

    .rank-info p {
        -webkit-line-clamp: 1;
    }

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

    .play-toggle {
        padding: 13px 18px;
    }
}
