:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --red-500: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(120, 53, 15, 0.14);
    --shadow-soft: 0 10px 30px rgba(120, 53, 15, 0.1);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: linear-gradient(180deg, var(--amber-50), var(--white) 34%, var(--amber-50));
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
    border-bottom: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: 0 10px 28px rgba(146, 64, 14, 0.08);
    backdrop-filter: blur(16px);
}

.nav-shell {
    max-width: 1240px;
    height: 72px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--amber-700);
    white-space: nowrap;
}

.brand span:last-child,
.footer-brand span:last-child {
    font-size: clamp(20px, 2.1vw, 28px);
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    -webkit-background-clip: text;
    color: transparent;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    color: var(--white);
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.25);
}

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

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

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

.nav-search {
    width: 260px;
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid rgba(245, 158, 11, 0.34);
    border-radius: 999px;
    overflow: hidden;
    background: var(--white);
}

.nav-search input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 11px 14px 11px 18px;
    background: transparent;
}

.nav-search button {
    border: 0;
    padding: 11px 16px;
    background: var(--amber-600);
    color: var(--white);
    cursor: pointer;
}

.mobile-menu-btn {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 9px 12px;
    background: var(--amber-600);
    color: var(--white);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 12px 22px 20px;
    background: rgba(255, 251, 235, 0.98);
    border-top: 1px solid rgba(245, 158, 11, 0.16);
}

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

.mobile-nav form {
    display: flex;
    gap: 8px;
}

.mobile-nav input {
    flex: 1;
    border: 1px solid var(--amber-200);
    border-radius: 999px;
    padding: 10px 14px;
    outline: 0;
}

.mobile-nav button {
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    background: var(--amber-600);
    color: var(--white);
}

.hero-carousel {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500) 52%, var(--red-500));
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.32;
    background-image: radial-gradient(circle at 12px 12px, rgba(255, 255, 255, 0.35) 2px, transparent 0);
    background-size: 40px 40px;
}

.hero-shell {
    position: relative;
    max-width: 1240px;
    min-height: 680px;
    margin: 0 auto;
    padding: 70px 22px 86px;
}

.hero-slide {
    position: absolute;
    inset: 70px 22px 104px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.62fr);
    align-items: center;
    gap: 52px;
    opacity: 0;
    transform: translateY(24px) scale(0.985);
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-copy {
    color: var(--white);
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #fff7ed;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1.06;
    letter-spacing: -0.06em;
}

.hero-copy p {
    margin: 24px 0 0;
    max-width: 700px;
    color: #fff7ed;
    font-size: clamp(18px, 2vw, 25px);
}

.hero-tags,
.tag-row,
.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-tags {
    margin-top: 28px;
}

.hero-tags span,
.tag-row span,
.inline-links a {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
}

.tag-row span {
    background: var(--amber-100);
    color: var(--amber-700);
}

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

.primary-btn,
.ghost-btn,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    padding: 14px 26px;
    background: var(--white);
    color: var(--amber-700);
    box-shadow: 0 14px 30px rgba(120, 53, 15, 0.18);
}

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

.primary-btn.light {
    background: var(--white);
    color: var(--amber-700);
}

.ghost-btn {
    padding: 13px 23px;
    border: 2px solid rgba(255, 255, 255, 0.58);
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.hero-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    min-height: 470px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(120, 53, 15, 0.32);
    background: rgba(255, 255, 255, 0.14);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 54%, rgba(0, 0, 0, 0.58));
}

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

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

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    border-radius: 999px;
    padding: 8px 14px;
    background: var(--amber-600);
    color: var(--white);
    font-weight: 900;
}

.hero-controls {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.hero-controls button {
    border: 0;
    cursor: pointer;
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: var(--white);
    font-size: 30px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
}

.hero-dots button.active {
    width: 34px;
    background: var(--white);
}

.content-section,
.feature-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 72px 22px;
}

.content-section.warm,
.feature-section {
    max-width: none;
    padding-left: max(22px, calc((100vw - 1240px) / 2 + 22px));
    padding-right: max(22px, calc((100vw - 1240px) / 2 + 22px));
    background: linear-gradient(180deg, var(--white), var(--amber-50));
}

.section-head {
    margin-bottom: 34px;
}

.section-head.centered {
    text-align: center;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

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

.section-head h2,
.feature-section h2,
.story-card h2,
.ranking-side h2 {
    margin: 0 0 8px;
    color: var(--gray-900);
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-head p,
.feature-section p,
.story-card p {
    margin: 0;
    color: var(--gray-600);
}

.text-link {
    color: var(--amber-600);
    font-weight: 800;
}

.feature-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.feature-grid article,
.category-overview-card,
.story-card,
.filter-panel,
.ranking-side {
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.feature-grid article {
    padding: 32px;
    text-align: center;
    background: linear-gradient(135deg, var(--amber-50), #fff7ed);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-grid article:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-grid span {
    width: 62px;
    height: 62px;
    margin: 0 auto 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--amber-100);
    color: var(--amber-700);
    font-weight: 900;
}

.feature-grid h3 {
    margin: 0 0 8px;
    font-size: 21px;
}

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

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

.movie-card {
    min-width: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100), #fed7aa);
}

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

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

.type-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: var(--white);
    font-weight: 900;
}

.type-badge {
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    background: var(--amber-600);
    font-size: 12px;
}

.rank-badge {
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--red-500), var(--orange-600));
}

.movie-info {
    padding: 18px;
}

.movie-title {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-900);
    font-weight: 900;
    font-size: 18px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-title:hover,
.hot-title:hover,
.category-overview-card h2 a:hover {
    color: var(--amber-600);
}

.movie-info p {
    height: 44px;
    margin: 0 0 14px;
    color: var(--gray-600);
    font-size: 14px;
    overflow: hidden;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--gray-500);
    font-size: 13px;
}

.star {
    color: var(--amber-600);
    font-weight: 900;
}

.tag-row {
    min-height: 30px;
    margin-bottom: 14px;
    overflow: hidden;
}

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

.hot-grid.single {
    grid-template-columns: 1fr;
}

.hot-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    overflow: hidden;
    border-radius: var(--radius-md);
    background: linear-gradient(90deg, var(--amber-50), #fff7ed);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.hot-poster {
    display: block;
    min-height: 210px;
    overflow: hidden;
}

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

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

.hot-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.hot-topline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--amber-700);
    font-size: 13px;
    font-weight: 800;
}

.hot-index {
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--amber-600);
    color: var(--white);
}

.hot-title {
    display: block;
    color: var(--gray-900);
    font-size: 21px;
    font-weight: 900;
    line-height: 1.25;
}

.hot-body p {
    margin: 0;
    color: var(--gray-600);
    font-size: 14px;
}

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

.channel-card {
    min-height: 210px;
    padding: 24px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.channel-card span {
    color: var(--amber-600);
    font-size: 13px;
    font-weight: 900;
}

.channel-card strong {
    display: block;
    margin-top: 6px;
    color: var(--gray-900);
    font-size: 20px;
}

.channel-card p {
    color: var(--gray-600);
    font-size: 14px;
}

.channel-card em {
    color: var(--gray-500);
    font-style: normal;
    font-size: 13px;
}

.cta-section {
    padding: 84px 22px;
    text-align: center;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
}

.cta-section h2 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -0.05em;
}

.cta-section p {
    margin: 0 0 28px;
    color: var(--amber-100);
    font-size: 19px;
}

.page-main,
.detail-main {
    min-height: 70vh;
}

.page-hero {
    max-width: 1240px;
    margin: 0 auto;
    padding: 74px 22px 38px;
}

.small-hero {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.page-hero .eyebrow,
.detail-copy .eyebrow {
    color: var(--amber-700);
}

.page-hero h1 {
    color: var(--gray-900);
}

.page-hero p {
    max-width: 860px;
    margin: 18px 0 0;
    color: var(--gray-600);
    font-size: 19px;
}

.inline-links {
    margin-top: 22px;
}

.inline-links a {
    background: var(--amber-100);
    color: var(--amber-700);
}

.filter-panel {
    margin-bottom: 28px;
    padding: 22px;
}

.filter-line {
    display: grid;
    grid-template-columns: minmax(280px, 1.5fr) repeat(4, minmax(130px, 0.5fr));
    gap: 14px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 0 14px;
    background: var(--white);
}

.search-box input,
.filter-line select {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--gray-800);
    background: var(--white);
}

.search-box input,
.filter-line select {
    min-height: 48px;
}

.filter-line select {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 0 13px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
}

.category-cover {
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    min-height: 250px;
    background: var(--amber-100);
}

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

.category-cover span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    border-radius: 999px;
    padding: 7px 12px;
    background: var(--amber-600);
    color: var(--white);
    font-weight: 900;
}

.category-overview-card h2 {
    margin: 8px 0 10px;
    font-size: 25px;
}

.category-overview-card p {
    color: var(--gray-600);
}

.category-overview-card ul {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--gray-600);
}

.category-overview-card li + li {
    margin-top: 5px;
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    align-items: start;
}

.ranking-side {
    position: sticky;
    top: 96px;
    padding: 22px;
}

.ranking-side .movie-grid {
    grid-template-columns: 1fr;
    gap: 18px;
}

.ranking-side h2 {
    margin-bottom: 18px;
    font-size: 26px;
}

.detail-hero {
    position: relative;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 44px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 58px 22px 44px;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 12%;
    z-index: -1;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(249, 115, 22, 0.08));
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.detail-poster {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--amber-100);
}

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

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

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

.detail-copy {
    align-self: center;
}

.detail-copy h1 {
    color: var(--gray-900);
}

.detail-copy p {
    max-width: 820px;
    margin: 22px 0 0;
    color: var(--gray-600);
    font-size: 20px;
}

.detail-copy .hero-tags span {
    background: var(--amber-100);
    color: var(--amber-700);
}

.detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 30px;
}

.detail-stats span {
    border-radius: 999px;
    padding: 9px 14px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    color: var(--gray-700);
    font-weight: 800;
}

.detail-copy .primary-btn {
    background: var(--amber-600);
    color: var(--white);
}

.player-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 22px 56px;
}

.video-player {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 30px 80px rgba(17, 24, 39, 0.26);
}

.video-player video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.54));
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-overlay span {
    width: 88px;
    height: 88px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--amber-600);
    box-shadow: 0 16px 40px rgba(217, 119, 6, 0.42);
    font-size: 40px;
    text-indent: 5px;
}

.player-overlay strong {
    font-size: 20px;
}

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

.detail-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 22px 60px;
    display: grid;
    gap: 24px;
}

.story-card {
    padding: 28px;
}

.story-card p {
    font-size: 17px;
}

.meta-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

.meta-card div {
    padding: 16px;
    border-radius: 16px;
    background: var(--amber-50);
}

.meta-card dt {
    color: var(--amber-700);
    font-weight: 900;
}

.meta-card dd {
    margin: 5px 0 0;
    color: var(--gray-700);
}

.related-section {
    max-width: none;
}

.site-footer {
    background: linear-gradient(135deg, #78350f, #92400e 48%, #7c2d12);
    color: var(--amber-100);
}

.footer-grid {
    max-width: 1240px;
    margin: 0 auto;
    padding: 56px 22px 34px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 34px;
}

.footer-brand span:last-child {
    color: var(--amber-100);
    background: none;
    -webkit-background-clip: initial;
}

.footer-grid p,
.footer-grid a {
    color: var(--amber-200);
    font-size: 14px;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: var(--white);
}

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

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

.footer-grid a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 22px;
    border-top: 1px solid rgba(253, 230, 138, 0.22);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: var(--amber-200);
    font-size: 14px;
}

.backtop {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    z-index: 60;
    border: 0;
    border-radius: 999px;
    background: var(--amber-600);
    color: var(--white);
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.backtop.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

[data-card].is-hidden {
    display: none;
}

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

    .mobile-menu-btn {
        display: inline-flex;
        margin-left: auto;
    }

    .hero-slide,
    .detail-hero,
    .ranking-layout {
        grid-template-columns: 1fr;
    }

    .hero-slide {
        gap: 32px;
    }

    .hero-poster {
        max-width: 360px;
        min-height: 440px;
    }

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

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

    .ranking-side {
        position: static;
    }
}

@media (max-width: 760px) {
    .nav-shell {
        height: 64px;
        padding: 0 16px;
    }

    .brand span:last-child {
        font-size: 20px;
    }

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

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

    .hero-shell {
        padding: 46px 16px 96px;
    }

    .hero-slide {
        inset: 46px 16px 104px;
        align-content: start;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 40px;
    }

    .hero-copy p,
    .detail-copy p {
        font-size: 17px;
    }

    .hero-poster {
        min-height: 330px;
        max-width: 250px;
    }

    .hero-actions,
    .section-head.between,
    .footer-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .content-section,
    .feature-section,
    .content-section.warm,
    .page-hero,
    .detail-hero,
    .player-section,
    .detail-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .feature-grid,
    .movie-grid,
    .movie-grid.compact-grid,
    .hot-grid,
    .channel-grid,
    .category-overview-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hot-card,
    .category-overview-card {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .hot-poster,
    .category-cover {
        min-height: 190px;
    }

    .filter-line,
    .meta-card dl {
        grid-template-columns: 1fr;
    }

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

    .detail-poster img {
        min-height: 360px;
    }

    .player-overlay span {
        width: 68px;
        height: 68px;
        font-size: 32px;
    }
}

@media (max-width: 440px) {
    .hot-card,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .hot-poster,
    .category-cover {
        min-height: auto;
        aspect-ratio: 3 / 4;
    }
}
