:root {
    --bg: #f9fafb;
    --surface: #ffffff;
    --surface-strong: #111827;
    --text: #111827;
    --muted: #6b7280;
    --soft: #f3f4f6;
    --line: #e5e7eb;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-soft: #fef3c7;
    --danger: #ef4444;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
    --max: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 34rem),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #ffffff 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
    display: block;
    width: 100%;
    height: auto;
}

button,
input,
select {
    font: inherit;
}

.content-wrap {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.site-logo__icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), #ef4444);
    box-shadow: 0 14px 24px rgba(245, 158, 11, 0.28);
    font-size: 15px;
}

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

.nav-link,
.mobile-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 15px;
    border-radius: 999px;
    color: #374151;
    font-weight: 700;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #111827;
    background: var(--accent-soft);
    transform: translateY(-1px);
}

.header-search {
    width: 300px;
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    overflow: hidden;
}

.header-search input,
.mobile-search input,
.quick-search-form input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
}

.header-search input {
    padding: 11px 14px;
}

.header-search button,
.mobile-search button,
.quick-search-form button {
    border: 0;
    color: #ffffff;
    background: var(--surface-strong);
    padding: 11px 18px;
    font-weight: 800;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    place-items: center;
    gap: 4px;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #111827;
    border-radius: 999px;
}

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

.mobile-search {
    display: flex;
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.mobile-search input {
    padding: 12px;
}

.hero-carousel {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #111827;
}

.hero-title-panel {
    position: absolute;
    z-index: 5;
    top: 92px;
    left: max(32px, calc((100% - var(--max)) / 2));
    width: min(560px, calc(100% - 64px));
    color: #ffffff;
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.hero-title-panel span,
.page-hero span,
.section-heading span,
.player-card__head span,
.category-preview__head span {
    display: inline-flex;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-title-panel h1 {
    margin: 14px 0 12px;
    font-size: clamp(34px, 5vw, 66px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-title-panel p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.8;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.7s ease, transform 0.9s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

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

.hero-slide__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 7, 18, 0.88) 0%, rgba(3, 7, 18, 0.56) 46%, rgba(3, 7, 18, 0.12) 100%),
        linear-gradient(0deg, rgba(3, 7, 18, 0.86) 0%, rgba(3, 7, 18, 0.06) 60%);
}

.hero-slide__content {
    position: absolute;
    z-index: 6;
    left: max(32px, calc((100% - var(--max)) / 2));
    bottom: 72px;
    width: min(660px, calc(100% - 64px));
    color: #ffffff;
}

.hero-eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.hero-eyebrow span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.hero-eyebrow--dark span {
    color: #111827;
    background: #f3f4f6;
}

.hero-slide__content h2 {
    margin: 0 0 14px;
    font-size: clamp(34px, 6vw, 72px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-slide__content p {
    width: min(620px, 100%);
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.75;
}

.tag-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 12px;
    font-weight: 800;
}

.tag-list--light span {
    background: rgba(245, 158, 11, 0.22);
    color: #fff7ed;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.button--primary {
    color: #111827;
    background: linear-gradient(135deg, var(--accent), #facc15);
    box-shadow: 0 18px 34px rgba(245, 158, 11, 0.34);
}

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

.button--ghost-dark {
    color: #111827;
    border: 1px solid var(--line);
    background: #ffffff;
}

.hero-controls {
    position: absolute;
    z-index: 7;
    right: max(32px, calc((100% - var(--max)) / 2));
    bottom: 76px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-controls button {
    width: 42px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-controls button.is-active {
    width: 68px;
    background: var(--accent);
}

.quick-search-section {
    margin-top: -48px;
    position: relative;
    z-index: 10;
}

.quick-search-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1fr);
    gap: 24px;
    align-items: center;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    border: 1px solid rgba(229, 231, 235, 0.82);
}

.quick-search-card h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.quick-search-card p {
    color: var(--muted);
    line-height: 1.7;
}

.quick-search-form {
    display: flex;
    min-height: 54px;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
}

.quick-search-form input {
    padding: 0 18px;
}

.quick-search-form button {
    padding: 0 26px;
    background: var(--accent);
    color: #111827;
}

.category-chips {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-chips a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-weight: 800;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.category-chips a:hover {
    color: #111827;
    background: var(--accent-soft);
    transform: translateY(-2px);
}

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

.content-section--soft {
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

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

.section-heading h2 {
    margin: 8px 0 10px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.section-heading p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 17px;
}

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

.movie-grid--small {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(229, 231, 235, 0.86);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
    border-color: rgba(245, 158, 11, 0.5);
}

.movie-card__poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #111827;
}

.movie-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.35s ease;
}

.movie-card:hover .movie-card__poster img {
    transform: scale(1.08);
    opacity: 0.86;
}

.movie-card__poster::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.78), transparent);
}

.movie-card__score,
.movie-card__rank {
    position: absolute;
    z-index: 3;
    top: 12px;
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.movie-card__score {
    right: 12px;
    min-width: 46px;
    color: #111827;
    background: var(--accent);
}

.movie-card__rank {
    left: 12px;
    min-width: 34px;
    padding: 0 10px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.76);
    backdrop-filter: blur(10px);
}

.movie-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    flex: 1;
}

.movie-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    display: -webkit-box;
    min-height: 56px;
    margin: 0;
    overflow: hidden;
    color: #111827;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 950;
    letter-spacing: -0.03em;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card p {
    display: -webkit-box;
    min-height: 54px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card--compact .movie-card__body {
    padding: 15px;
}

.movie-card--compact h3 {
    min-height: 48px;
    font-size: 17px;
}

.movie-card--compact p {
    min-height: 44px;
    font-size: 13px;
}

.split-layout {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: 42px;
    align-items: start;
}

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

.ranking-row,
.ranking-table__row {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ranking-row:hover,
.ranking-table__row:hover {
    transform: translateX(4px);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.ranking-row span,
.ranking-table__row span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #111827;
    background: var(--accent-soft);
    font-weight: 950;
}

.ranking-row strong,
.ranking-table__row strong {
    font-weight: 950;
    line-height: 1.35;
}

.ranking-row em,
.ranking-table__row em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.ranking-row b,
.ranking-table__row b {
    color: var(--accent-dark);
    font-size: 18px;
}

.ranking-table__row {
    grid-template-columns: 48px 1fr minmax(210px, 0.8fr) 60px;
}

.section-more {
    display: inline-flex;
    margin-top: 18px;
    color: var(--accent-dark);
    font-weight: 900;
}

.category-preview {
    padding: 24px;
    margin-bottom: 22px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.category-preview__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.category-preview__head h3 {
    margin: 6px 0 0;
    font-size: 28px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.category-preview__head a {
    color: var(--accent-dark);
    font-weight: 900;
    white-space: nowrap;
}

.page-hero {
    padding: 84px 0 70px;
    background:
        radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.22), transparent 30rem),
        linear-gradient(135deg, #111827, #1f2937 54%, #020617);
    color: #ffffff;
}

.page-hero--compact {
    padding-top: 72px;
}

.page-hero--category {
    padding: 62px 0 66px;
}

.page-hero h1 {
    max-width: 800px;
    margin: 12px 0;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.8;
}

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

.breadcrumb a:hover {
    color: var(--accent);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 210px 210px;
    gap: 14px;
    padding: 18px;
    margin-bottom: 26px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #374151;
    font-weight: 900;
    font-size: 13px;
}

.filter-panel input,
.filter-panel select {
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f9fafb;
    color: #111827;
}

.empty-state {
    display: none;
    margin-top: 24px;
    padding: 26px;
    border-radius: 22px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
    border: 1px solid var(--line);
}

.empty-state.is-visible {
    display: block;
}

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

.category-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 251, 235, 0.94)),
        #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.category-card > span {
    color: var(--accent-dark);
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 12px;
}

.category-card h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

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

.category-card__links a {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: #ffffff;
    color: #374151;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid var(--line);
}

.detail-hero {
    padding: 52px 0 60px;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 34rem),
        linear-gradient(180deg, #ffffff, #f9fafb);
}

.detail-hero .breadcrumb {
    color: var(--muted);
}

.detail-hero .breadcrumb strong {
    color: #111827;
}

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

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    box-shadow: var(--shadow);
    aspect-ratio: 3 / 4;
}

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

.detail-info h1 {
    max-width: 880px;
    margin: 16px 0 16px;
    font-size: clamp(34px, 6vw, 68px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.detail-one-line {
    max-width: 820px;
    margin-bottom: 20px;
    color: #4b5563;
    font-size: 19px;
    line-height: 1.85;
}

.player-card {
    overflow: hidden;
    border-radius: 30px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.player-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    color: #ffffff;
}

.player-card__head h2 {
    margin: 6px 0 0;
    font-size: 26px;
    font-weight: 950;
}

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

.movie-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #020617;
    z-index: 1;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 0;
    padding: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    cursor: pointer;
    background: #020617;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
    filter: saturate(1.08);
}

.player-cover__shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.26), rgba(2, 6, 23, 0.86));
}

.player-cover__button {
    position: relative;
    z-index: 2;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #111827;
    background: var(--accent);
    font-size: 34px;
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.36);
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 34px;
    align-items: start;
}

.movie-article,
.detail-side {
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
}

.movie-article {
    padding: 32px;
}

.movie-article h2,
.detail-side h2 {
    margin: 0 0 14px;
    font-size: 28px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.movie-article p {
    margin: 0 0 28px;
    color: #374151;
    font-size: 17px;
    line-height: 2;
}

.movie-article p:last-child {
    margin-bottom: 0;
}

.detail-side {
    padding: 26px;
    position: sticky;
    top: 96px;
}

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

.detail-side dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.detail-side dd {
    margin: -8px 0 8px;
    color: #111827;
    font-weight: 800;
    line-height: 1.55;
}

.detail-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
}

.detail-pager a {
    min-height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #f3f4f6;
    color: #111827;
    font-weight: 900;
}

.site-footer {
    background: #111827;
    color: rgba(255, 255, 255, 0.78);
    padding: 54px 0;
}

.site-footer__inner {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(260px, 1.1fr);
    gap: 30px;
}

.site-logo--footer {
    color: #ffffff;
    margin-bottom: 16px;
}

.site-footer p {
    max-width: 560px;
    line-height: 1.8;
}

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

.footer-links a {
    display: inline-flex;
    padding: 9px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.08);
    font-weight: 800;
}

@media (max-width: 1180px) {
    .header-search {
        display: none;
    }

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

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

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

    .menu-toggle {
        display: grid;
        margin-left: auto;
    }

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

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

    .hero-title-panel {
        top: 56px;
    }

    .hero-slide__content {
        bottom: 108px;
    }

    .hero-controls {
        left: 32px;
        right: auto;
        bottom: 50px;
    }

    .quick-search-card,
    .split-layout,
    .detail-layout,
    .article-layout,
    .site-footer__inner {
        grid-template-columns: 1fr;
    }

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

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

    .detail-side {
        position: static;
    }
}

@media (max-width: 640px) {
    .content-wrap,
    .site-header__inner,
    .site-footer__inner,
    .mobile-nav {
        width: min(100% - 22px, var(--max));
    }

    .site-logo {
        font-size: 19px;
    }

    .site-logo__icon {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

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

    .hero-title-panel,
    .hero-slide__content {
        left: 18px;
        width: calc(100% - 36px);
    }

    .hero-title-panel h1 {
        font-size: 32px;
    }

    .hero-slide__content h2 {
        font-size: 38px;
    }

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

    .hero-controls {
        left: 18px;
    }

    .quick-search-section {
        margin-top: -30px;
    }

    .quick-search-card {
        padding: 20px;
        border-radius: 22px;
    }

    .quick-search-form {
        display: grid;
    }

    .quick-search-form input,
    .quick-search-form button {
        min-height: 50px;
    }

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

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

    .ranking-table__row,
    .ranking-row {
        grid-template-columns: 38px 1fr;
    }

    .ranking-table__row em,
    .ranking-row em,
    .ranking-table__row b,
    .ranking-row b {
        grid-column: 2;
    }

    .page-hero,
    .detail-hero {
        padding: 44px 0;
    }

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

    .movie-article,
    .detail-side {
        padding: 22px;
    }

    .player-card__head {
        padding: 18px;
    }

    .player-cover__button {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }

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