:root {
    --bg: #fff8f1;
    --text: #1f2937;
    --muted: #6b7280;
    --card: #ffffff;
    --line: #f1dfce;
    --brand: #f59e0b;
    --brand-2: #ea580c;
    --brand-3: #dc2626;
    --shadow: 0 20px 45px rgba(124, 45, 18, 0.12);
    --soft-shadow: 0 12px 28px rgba(124, 45, 18, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(245, 158, 11, 0.16);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 30px rgba(124, 45, 18, 0.08);
}

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

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

.brand {
    font-size: 24px;
    white-space: nowrap;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 12px 22px rgba(234, 88, 12, 0.24);
}

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

.main-nav > a,
.nav-dropdown > button,
.mobile-nav a {
    color: #4b5563;
    font-weight: 700;
    transition: color 0.2s ease;
}

.main-nav > a:hover,
.main-nav > a.active,
.nav-dropdown > button:hover,
.mobile-nav a:hover {
    color: var(--brand-2);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown button {
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    width: 220px;
    padding: 12px;
    display: grid;
    gap: 4px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-panel a {
    padding: 9px 12px;
    border-radius: 12px;
    color: #4b5563;
}

.nav-dropdown-panel a:hover {
    background: #fff7ed;
    color: var(--brand-2);
}

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

.header-search input {
    width: 100%;
    min-width: 0;
    padding: 10px 14px;
    border: 0;
    outline: 0;
}

.header-search button,
.big-search button,
.search-page-form button {
    border: 0;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.header-search button {
    align-self: stretch;
    padding: 0 16px;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: #9a3412;
    background: #ffedd5;
}

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    border-radius: 16px;
    background: #fff7ed;
}

.mobile-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    background: #ffffff;
}

.hero-section {
    position: relative;
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    width: min(1240px, calc(100% - 32px));
    margin: 34px auto 0;
}

.hero-slider {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    border-radius: 34px;
    background: linear-gradient(135deg, #ffedd5, #fee2e2);
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08);
}

.hero-slide img.image-missing,
.movie-card img.image-missing,
.category-preview-grid img.image-missing,
.detail-title-row img.image-missing,
.ranking-row img.image-missing,
.hero-mini-card img.image-missing {
    opacity: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.44), rgba(17, 24, 39, 0.14)),
        radial-gradient(circle at 20% 15%, rgba(245, 158, 11, 0.44), transparent 36%);
}

.hero-content {
    position: absolute;
    left: clamp(24px, 6vw, 76px);
    bottom: clamp(32px, 8vw, 92px);
    max-width: 650px;
    color: #ffffff;
}

.hero-kicker,
.page-hero span,
.section-heading span {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 7px 12px;
    color: #fff7ed;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.86);
}

.hero-content h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-content p {
    margin: 0;
    max-width: 58ch;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
}

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

.primary-button,
.secondary-button,
.category-enter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 16px 32px rgba(234, 88, 12, 0.28);
}

.secondary-button {
    color: #9a3412;
    background: #ffffff;
}

.secondary-button.dark {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.primary-button:hover,
.secondary-button:hover,
.category-enter:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(124, 45, 18, 0.18);
}

.hero-dots {
    position: absolute;
    left: clamp(24px, 6vw, 76px);
    bottom: 34px;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.hero-dots button.active {
    width: 34px;
    background: #ffffff;
}

.hero-side-panel {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 20px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(16px);
}

.hero-side-title {
    color: #9a3412;
    font-size: 20px;
    font-weight: 900;
}

.hero-mini-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #fff7ed;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-mini-card:hover {
    transform: translateX(-4px);
    background: #ffedd5;
}

.hero-mini-card img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 14px;
    background: linear-gradient(135deg, #fed7aa, #fecaca);
}

.hero-mini-card strong,
.hero-mini-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-mini-card strong {
    color: #111827;
    font-size: 15px;
}

.hero-mini-card small {
    color: var(--muted);
}

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

.quick-search-panel {
    margin-top: 34px;
    padding: 30px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

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

.section-heading.compact {
    margin-bottom: 18px;
}

.section-heading.light {
    color: #ffffff;
}

.section-heading span {
    color: #9a3412;
    background: #ffedd5;
}

.section-heading.light span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.section-heading h2,
.page-hero h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.section-heading.light h2,
.section-heading.light p {
    color: #ffffff;
}

.section-heading p,
.page-hero p {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.big-search,
.search-page-form {
    display: flex;
    gap: 12px;
}

.big-search input,
.search-page-form input,
.filter-toolbar input,
.filter-toolbar select {
    min-height: 50px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    background: #fffaf5;
    outline: 0;
}

.big-search input,
.search-page-form input {
    flex: 1;
    padding: 0 18px;
}

.big-search input:focus,
.search-page-form input:focus,
.filter-toolbar input:focus,
.filter-toolbar select:focus {
    border-color: var(--brand-2);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.big-search button,
.search-page-form button {
    min-width: 138px;
    border-radius: 999px;
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.category-chips a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #9a3412;
    font-weight: 800;
    border-radius: 999px;
    background: #fff7ed;
}

.category-chips span {
    min-width: 28px;
    padding: 2px 8px;
    color: #ffffff;
    text-align: center;
    border-radius: 999px;
    background: var(--brand-2);
}

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

.content-section.narrow {
    max-width: 1040px;
}

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

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

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

.poster-wrap {
    position: relative;
    height: 280px;
    margin: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fecaca);
}

.movie-card-compact .poster-wrap {
    height: 220px;
}

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

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

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(17, 24, 39, 0.74));
}

.poster-badge,
.poster-meta,
.poster-play {
    position: absolute;
    z-index: 2;
}

.poster-badge {
    top: 14px;
    right: 14px;
    padding: 6px 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.92);
}

.poster-meta {
    left: 14px;
    bottom: 14px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.poster-play {
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(234, 88, 12, 0.9);
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
    transition: all 0.25s ease;
}

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

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

.movie-card-body h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 19px;
    line-height: 1.3;
}

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

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span,
.detail-tags span {
    padding: 4px 8px;
    color: #c2410c;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    background: #ffedd5;
}

.ranking-section {
    margin-top: 76px;
    padding: 70px max(16px, calc((100vw - 1240px) / 2));
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2), transparent 26%),
        linear-gradient(135deg, #f59e0b, #ea580c 52%, #b91c1c);
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 46px 72px minmax(0, 1fr) 54px;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease;
}

.ranking-row:hover {
    transform: translateX(5px);
}

.ranking-number {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-3), var(--brand-2));
}

.ranking-row img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 14px;
    background: linear-gradient(135deg, #fed7aa, #fecaca);
}

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

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

.ranking-info small {
    color: var(--muted);
}

.ranking-score {
    color: #ea580c;
    font-size: 18px;
    font-weight: 900;
    text-align: right;
}

.center-action {
    margin-top: 26px;
    text-align: center;
}

.horizontal-scroll {
    display: grid;
    grid-auto-columns: 250px;
    grid-auto-flow: column;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x proximity;
}

.horizontal-scroll .movie-card {
    scroll-snap-align: start;
}

.page-hero {
    margin: 34px auto 0;
    width: min(1240px, calc(100% - 32px));
    min-height: 330px;
    display: flex;
    align-items: center;
    padding: clamp(30px, 6vw, 70px);
    border-radius: 34px;
    background:
        radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.55), transparent 24%),
        linear-gradient(135deg, #ffedd5, #fed7aa 45%, #fecaca);
    box-shadow: var(--shadow);
}

.page-hero.small {
    min-height: 280px;
}

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

.category-overview-card {
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.category-card-head span {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 4px 9px;
    color: #c2410c;
    font-size: 12px;
    font-weight: 900;
    border-radius: 999px;
    background: #ffedd5;
}

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

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

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

.category-preview-grid a {
    position: relative;
    overflow: hidden;
    height: 92px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fed7aa, #fecaca);
}

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

.category-preview-grid span {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 16px 8px 8px;
    overflow: hidden;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.76));
}

.category-enter {
    justify-self: start;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.filter-toolbar {
    position: sticky;
    top: 88px;
    z-index: 10;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    padding: 14px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(12px);
}

.filter-toolbar input,
.filter-toolbar select {
    width: 100%;
    padding: 0 16px;
}

.filter-toolbar span {
    color: #9a3412;
    font-weight: 900;
    white-space: nowrap;
}

.search-summary {
    margin: 20px 0;
    color: #9a3412;
    font-weight: 900;
}

.detail-hero {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.68)),
        var(--detail-poster) center / cover;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: -20px;
    background: var(--detail-poster) center / cover;
    filter: blur(20px) saturate(1.1);
    transform: scale(1.05);
    opacity: 0.45;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.28), transparent 28%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 56px;
    color: #ffffff;
}

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

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

.detail-title-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
}

.detail-title-row img {
    width: 220px;
    height: 320px;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.24);
    border-radius: 24px;
    background: linear-gradient(135deg, #fed7aa, #fecaca);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.detail-title-row h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.detail-title-row p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 360px;
    gap: 28px;
    align-items: start;
    padding-top: 44px;
}

.player-card,
.article-card,
.info-card {
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.player-card {
    overflow: hidden;
    margin-bottom: 24px;
    background: #111827;
}

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

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

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.72));
}

.player-shell.is-playing .player-start {
    opacity: 0;
    pointer-events: none;
}

.player-start-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 18px 42px rgba(234, 88, 12, 0.4);
}

.player-start strong {
    font-size: 22px;
}

.player-start small {
    color: rgba(255, 255, 255, 0.78);
}

.player-message {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
    text-align: center;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(10px);
}

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

.player-shell.is-error .player-message {
    color: #fee2e2;
    background: rgba(127, 29, 29, 0.8);
}

.article-card {
    margin-bottom: 24px;
    padding: 28px;
}

.article-card h2,
.info-card h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 24px;
}

.article-card p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

.article-card p + p {
    margin-top: 16px;
}

.lead-text {
    color: #9a3412 !important;
    font-weight: 800;
}

.detail-sidebar {
    position: sticky;
    top: 104px;
}

.info-card {
    padding: 24px;
}

.info-card dl {
    display: grid;
    gap: 14px;
    margin: 0 0 18px;
}

.info-card dl div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
}

.info-card dt {
    color: var(--muted);
}

.info-card dd {
    margin: 0;
    color: #111827;
    font-weight: 800;
}

.info-card a {
    color: var(--brand-2);
}

.site-footer {
    margin-top: 84px;
    color: #ffedd5;
    background: #7c2d12;
}

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 40px;
}

.footer-brand {
    color: #ffffff;
    font-size: 24px;
}

.footer-inner p {
    margin: 12px 0 0;
    color: #fed7aa;
}

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

.footer-links a {
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.18);
}

.footer-bottom {
    padding: 18px 16px;
    color: #fed7aa;
    text-align: center;
    border-top: 1px solid rgba(255, 237, 213, 0.18);
}

[hidden],
.is-hidden {
    display: none !important;
}

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

    .hero-section {
        grid-template-columns: 1fr;
    }

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

    .hero-side-title {
        grid-column: 1 / -1;
    }

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

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

    .detail-sidebar {
        position: static;
    }
}

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

    .main-nav {
        display: none;
    }

    .mobile-menu-button {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
    }

    .hero-section,
    .hero-slider {
        min-height: 560px;
    }

    .hero-section {
        width: calc(100% - 20px);
        margin-top: 16px;
    }

    .hero-content {
        left: 22px;
        right: 22px;
        bottom: 74px;
    }

    .hero-dots {
        left: 22px;
    }

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

    .quick-search-panel,
    .content-section,
    .detail-layout,
    .page-hero,
    .detail-hero-inner {
        width: calc(100% - 20px);
    }

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

    .big-search,
    .search-page-form,
    .filter-toolbar {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .big-search button,
    .search-page-form button {
        min-height: 48px;
    }

    .detail-title-row {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 18px;
        align-items: center;
    }

    .detail-title-row img {
        width: 120px;
        height: 178px;
        border-radius: 18px;
    }

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

@media (max-width: 540px) {
    .brand {
        font-size: 20px;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
    }

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

    .horizontal-scroll {
        grid-auto-columns: 82%;
    }

    .poster-wrap,
    .movie-card-compact .poster-wrap {
        height: 260px;
    }

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

    .ranking-score {
        display: none;
    }

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

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