:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --orange-700: #c2410c;
    --orange-800: #9a3412;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --radius-xl: 1.25rem;
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 14px 30px rgba(15, 23, 42, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 35%, #f9fafb 100%);
    color: var(--gray-900);
    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,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber-900), var(--orange-800), var(--amber-900));
    box-shadow: 0 12px 25px rgba(120, 53, 15, 0.28);
}

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

.brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--amber-900);
    background: linear-gradient(135deg, var(--amber-200), var(--amber-500));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 18px rgba(0, 0, 0, 0.18);
    font-size: 14px;
}

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

.brand-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-subtitle {
    color: var(--amber-200);
    font-size: 12px;
}

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

.desktop-nav > a,
.nav-dropdown > button {
    color: rgba(255, 255, 255, 0.92);
    border: 0;
    padding: 8px 0;
    background: transparent;
    font-weight: 700;
    transition: color 0.2s ease;
}

.desktop-nav > a:hover,
.desktop-nav > a.active,
.nav-dropdown > button:hover {
    color: var(--amber-200);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    width: 230px;
    padding: 10px;
    border-radius: 16px;
    background: #ffffff;
    color: var(--gray-800);
    box-shadow: var(--shadow-soft);
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.dropdown-panel a {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    font-weight: 700;
}

.dropdown-panel a:hover {
    color: var(--amber-700);
    background: var(--amber-50);
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 285px;
}

.header-search input,
.hero-search input,
.search-page-form input,
.catalog-tools input,
.catalog-tools select,
.search-filters select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    outline: 0;
    border-radius: 999px;
    padding: 10px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.header-search input::placeholder {
    color: var(--amber-200);
}

.header-search button,
.hero-search button,
.search-page-form button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    color: var(--amber-900);
    background: var(--amber-300);
    font-weight: 800;
    white-space: nowrap;
    transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.hero-search button:hover,
.search-page-form button:hover {
    background: var(--amber-200);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.10);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 2px;
}

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

.mobile-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 700;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--amber-200);
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    display: flex;
    align-items: center;
    color: #ffffff;
    background: radial-gradient(circle at 18% 20%, rgba(251, 191, 36, 0.35), transparent 26%), linear-gradient(120deg, var(--amber-900), var(--orange-800) 46%, #451a03);
}

.hero-glow {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 999px;
    filter: blur(26px);
    opacity: 0.45;
    pointer-events: none;
}

.hero-glow-left {
    left: -120px;
    top: 60px;
    background: var(--amber-400);
}

.hero-glow-right {
    right: -90px;
    bottom: 80px;
    background: #fb923c;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    gap: 48px;
    align-items: center;
    padding: 72px 0;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 12px 0 18px;
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
    max-width: 660px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 6px 12px;
    color: var(--amber-900);
    background: var(--amber-300);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hero-search {
    display: flex;
    max-width: 620px;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-search input {
    border: 0;
    color: #ffffff;
    background: transparent;
}

.hero-search input::placeholder {
    color: var(--amber-100);
}

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

.primary-button,
.ghost-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 11px 20px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
    color: var(--amber-950, #451a03);
    background: var(--amber-300);
    box-shadow: 0 14px 26px rgba(245, 158, 11, 0.28);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.10);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
    transform: translateY(-2px);
}

.hero-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: end;
}

.hero-card {
    position: relative;
    min-height: 465px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    background: var(--gray-900);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.35);
    transform: translateY(18px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:nth-child(2) {
    min-height: 525px;
    transform: translateY(0);
}

.hero-card:hover,
.hero-card.active {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

.hero-card:nth-child(2):hover,
.hero-card:nth-child(2).active {
    transform: translateY(-10px) scale(1.02);
}

.hero-card img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.hero-card-shade,
.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.82) 100%);
}

.hero-badge {
    position: absolute;
    left: 18px;
    top: 18px;
    z-index: 2;
    border-radius: 999px;
    padding: 6px 11px;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.92);
    font-size: 13px;
    font-weight: 900;
}

.hero-card-content {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 20px;
    z-index: 2;
}

.hero-card-content strong,
.hero-card-content em,
.hero-card-content span {
    display: block;
}

.hero-card-content strong {
    margin-bottom: 8px;
    font-size: 24px;
    line-height: 1.18;
}

.hero-card-content em {
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
    font-size: 14px;
}

.hero-card-content span {
    margin-top: 10px;
    color: var(--amber-200);
    font-size: 13px;
    font-weight: 800;
}

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

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

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

.section-title-row.compact {
    align-items: start;
    margin-bottom: 18px;
}

.section-title-row h2,
.section-title-row h3 {
    margin: 8px 0 0;
    color: var(--gray-900);
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
}

.section-title-row h3 {
    font-size: 24px;
}

.section-title-row p {
    margin: 8px 0 0;
    color: var(--gray-600);
}

.section-kicker {
    color: var(--orange-800);
    background: var(--amber-100);
}

.section-link,
.category-showcase-card .section-title-row a {
    color: var(--orange-800);
    border: 1px solid var(--amber-200);
    background: var(--amber-50);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--gray-200);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    border-color: var(--amber-200);
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(120, 53, 15, 0.16);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--gray-200);
}

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

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

.poster-year,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.68);
    font-size: 12px;
    font-weight: 900;
}

.rank-badge {
    right: auto;
    left: 12px;
    background: rgba(245, 158, 11, 0.94);
}

.poster-play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--amber-900);
    background: rgba(255, 255, 255, 0.88);
    transform: translate(-50%, -50%) scale(0.82);
    opacity: 0;
    transition: opacity 0.25s ease, transform 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;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card-body h3 a:hover {
    color: var(--orange-700);
}

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

.movie-card-small .movie-card-body p {
    display: none;
}

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

.card-meta span,
.detail-meta span {
    border-radius: 999px;
    padding: 4px 9px;
    background: var(--gray-100);
}

.card-tags,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.card-tags span,
.tag-cloud span {
    border-radius: 999px;
    padding: 4px 9px;
    color: var(--gray-700);
    background: var(--amber-50);
    font-size: 12px;
    font-weight: 700;
}

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

.category-showcase-card,
.category-card-large {
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    padding: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

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

.mini-card {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    border-radius: 16px;
    background: var(--gray-900);
}

.mini-card img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    opacity: 0.92;
    transition: transform 0.3s ease;
}

.mini-card span {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    color: #ffffff;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.mini-card::after,
.category-card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.70));
}

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

.rank-section,
.rank-page-section {
    border-radius: 32px;
    padding-left: 28px;
    padding-right: 28px;
    background: linear-gradient(180deg, #ffffff, var(--amber-50));
}

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

.wide-rank-list {
    grid-template-columns: 1fr;
}

.rank-item {
    display: grid;
    grid-template-columns: 58px 112px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 12px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.rank-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    color: var(--amber-900);
    background: var(--amber-200);
    font-weight: 900;
}

.rank-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    background: var(--gray-100);
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.rank-info h3 a:hover {
    color: var(--orange-700);
}

.rank-info p {
    margin: 0 0 8px;
    color: var(--gray-600);
    font-size: 14px;
}

.page-main {
    min-height: 68vh;
}

.page-hero {
    color: #ffffff;
    background: radial-gradient(circle at 75% 0%, rgba(252, 211, 77, 0.25), transparent 22%), linear-gradient(120deg, var(--amber-900), var(--orange-800));
}

.page-hero > div {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 58px 0;
}

.slim-hero > div {
    padding: 54px 0;
}

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

.category-card-large {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
}

.category-card-cover {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    border-radius: 20px;
    background: var(--gray-900);
}

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

.category-card-cover span {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.category-card-body h2 {
    margin: 0 0 10px;
}

.category-card-body p {
    margin: 0 0 16px;
    color: var(--gray-600);
}

.category-preview-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-preview-links a {
    color: var(--orange-800);
    font-weight: 700;
}

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

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

.catalog-tools,
.search-filters {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 28px;
    border: 1px solid var(--gray-200);
    border-radius: 22px;
    padding: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.catalog-tools label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 800;
}

.catalog-tools input,
.catalog-tools select,
.search-filters select,
.search-page-form input {
    color: var(--gray-900);
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.catalog-tools input:focus,
.catalog-tools select:focus,
.search-page-form input:focus,
.search-filters select:focus {
    border-color: var(--amber-400);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.movie-card.hidden {
    display: none;
}

.search-page-form {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.search-page-form input {
    border: 0;
    background: transparent;
}

.search-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    box-shadow: none;
}

.search-status {
    min-height: 24px;
    margin-bottom: 22px;
    color: var(--gray-600);
    font-weight: 700;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #451a03;
}

.detail-hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: saturate(1.08);
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0 58px;
}

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

.detail-poster {
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, 0.18);
    border-radius: 26px;
    box-shadow: 0 28px 50px rgba(0, 0, 0, 0.34);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-meta span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.watch-section {
    padding-top: 40px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    background: #050505;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
}

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

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.65));
    font-size: 18px;
    font-weight: 900;
}

.play-layer.is-hidden {
    display: none;
}

.play-circle {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--amber-900);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.26);
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
}

.detail-article,
.detail-sidebar {
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    padding: 26px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.detail-article h2,
.detail-sidebar h2 {
    margin: 0 0 14px;
    color: var(--gray-900);
    font-size: 24px;
}

.detail-article h2:not(:first-child) {
    margin-top: 28px;
}

.detail-article p {
    margin: 0;
    color: var(--gray-700);
    font-size: 16px;
}

.info-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.info-table div {
    border-radius: 16px;
    padding: 12px 14px;
    background: var(--gray-50);
}

.info-table span,
.info-table strong {
    display: block;
}

.info-table span {
    color: var(--gray-500);
    font-size: 13px;
}

.info-table strong {
    margin-top: 4px;
    color: var(--gray-900);
}

.side-related-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.side-related-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border-radius: 16px;
    padding: 8px;
    transition: background 0.2s ease;
}

.side-related-card:hover {
    background: var(--amber-50);
}

.side-related-card img {
    width: 112px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
}

.side-related-card strong,
.side-related-card em {
    display: block;
}

.side-related-card strong {
    color: var(--gray-900);
    line-height: 1.35;
}

.side-related-card em {
    margin-top: 6px;
    color: var(--gray-500);
    font-size: 13px;
    font-style: normal;
}

.site-footer {
    margin-top: 48px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber-900), var(--orange-800), var(--amber-900));
}

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

.footer-logo {
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 900;
}

.footer-brand p,
.footer-note p {
    margin: 0;
    color: var(--amber-100);
}

.footer-links h2,
.footer-note h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li + li {
    margin-top: 8px;
}

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

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 18px 16px;
    color: var(--amber-100);
    text-align: center;
}

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

    .hero-inner,
    .detail-content-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-feature-grid {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
        overflow-x: auto;
        padding-bottom: 12px;
    }

    .hero-card,
    .hero-card:nth-child(2) {
        min-height: 430px;
        transform: none;
    }

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

    .category-large-grid,
    .category-showcase-grid,
    .rank-list {
        grid-template-columns: 1fr;
    }

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

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

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

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

    .hero-section {
        min-height: auto;
    }

    .hero-inner {
        padding: 46px 0;
    }

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

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

    .category-card-large,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(260px, 80vw);
    }

    .catalog-tools,
    .search-filters {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 46px 92px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-info p {
        display: none;
    }

    .section-title-row {
        align-items: start;
        flex-direction: column;
    }

    .info-table {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .header-inner {
        width: min(100% - 22px, 1180px);
        height: 64px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .brand-title {
        font-size: 17px;
    }

    .brand-subtitle {
        display: none;
    }

    .hero-feature-grid {
        grid-template-columns: repeat(3, 82vw);
    }

    .hero-card,
    .hero-card:nth-child(2) {
        min-height: 390px;
    }

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

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

    .rank-item {
        grid-template-columns: 42px 78px minmax(0, 1fr);
    }

    .player-frame {
        border-radius: 18px;
    }

    .detail-article,
    .detail-sidebar,
    .category-showcase-card,
    .category-card-large {
        padding: 18px;
    }
}
