:root {
    color-scheme: light;
    --bg: #f8fafc;
    --bg-soft: #f1f5f9;
    --panel: #ffffff;
    --panel-dark: #0f172a;
    --text: #1f2937;
    --muted: #64748b;
    --line: rgba(148, 163, 184, 0.28);
    --cyan: #06b6d4;
    --blue: #2563eb;
    --orange: #f97316;
    --yellow: #facc15;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
    color: #ffffff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-text {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #67e8f9, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.36);
}

.brand-mark span {
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid #ffffff;
    transform: translateX(2px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link,
.mobile-link {
    color: rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link {
    padding: 10px 16px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #67e8f9;
    background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
}

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

.mobile-link {
    display: block;
    padding: 12px 14px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.45), transparent 34%), linear-gradient(135deg, #0891b2, #1d4ed8 42%, #0f172a 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 18px 18px, rgba(255, 255, 255, 0.08) 2px, transparent 0);
    background-size: 48px 48px;
    opacity: 0.42;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    padding: 70px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: stretch;
}

.hero-slider {
    position: relative;
    min-height: 520px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: rgba(15, 23, 42, 0.7);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 34px;
    align-items: center;
    padding: 58px;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.32)), var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.12);
    transform: scale(1.04);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(103, 232, 249, 0.25), transparent 38%);
}

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

.hero-copy,
.hero-cover {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #facc15;
    background: rgba(250, 204, 21, 0.12);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-copy h1,
.page-hero h1 {
    margin: 0 0 20px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p {
    margin: 0 0 24px;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.hero-meta,
.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-meta span,
.detail-meta span,
.detail-meta a {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.86);
}

.hero-tags,
.movie-tags,
.detail-tags,
.genre-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin: 18px 0 28px;
}

.hero-tags span,
.movie-tags span,
.detail-tags span,
.genre-list span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.86);
    padding: 6px 10px;
    font-size: 13px;
}

.hero-actions,
.center-action {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

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

.primary-button,
.secondary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.24);
}

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

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-cover {
    align-self: center;
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.24), rgba(37, 99, 235, 0.24));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

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

.hero-cover:hover img {
    transform: scale(1.08);
}

.hero-cover span,
.play-hover {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 45px rgba(6, 182, 212, 0.38);
}

.hero-controls {
    position: absolute;
    z-index: 3;
    left: 58px;
    right: 58px;
    bottom: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.hero-prev,
.hero-next,
.hero-dot {
    pointer-events: auto;
    border: 0;
    cursor: pointer;
}

.hero-prev,
.hero-next {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    font-size: 28px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 28px;
    background: #67e8f9;
}

.hero-side {
    border-radius: 30px;
    padding: 24px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-side h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

.hero-side a {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-side span {
    grid-row: span 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange), #dc2626);
    font-weight: 900;
}

.hero-side strong {
    line-height: 1.35;
}

.hero-side em {
    color: rgba(255, 255, 255, 0.62);
    font-style: normal;
    font-size: 13px;
}

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

.warm-section,
.dark-section {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
}

.warm-section {
    background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

.dark-section {
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.section-heading h2 {
    margin: 0 0 6px;
    font-size: clamp(28px, 3.5vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}

.dark-section .section-heading p {
    color: rgba(255, 255, 255, 0.66);
}

.section-icon {
    margin-right: 10px;
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

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

.movie-card {
    min-width: 0;
    border-radius: 22px;
    overflow: hidden;
    background: var(--panel);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 58px rgba(15, 23, 42, 0.16);
}

.movie-card-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.movie-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.movie-poster {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(37, 99, 235, 0.24));
}

.movie-card-featured .movie-poster {
    aspect-ratio: 16 / 11;
}

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

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.78), transparent 62%);
    transition: opacity 0.28s ease;
}

.movie-card:hover .movie-poster::after {
    opacity: 1;
}

.movie-type,
.rank-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), #ef4444);
    font-size: 12px;
    font-weight: 800;
}

.rank-badge {
    left: 14px;
    right: auto;
    background: linear-gradient(135deg, #facc15, #f97316);
}

.play-hover {
    z-index: 3;
    width: 54px;
    height: 54px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.78);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

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

.movie-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px;
}

.movie-info h3 {
    margin: 0 0 10px;
    color: #0f172a;
    line-height: 1.35;
    font-size: 19px;
}

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

.movie-meta {
    margin-top: auto;
    color: #64748b;
    font-size: 13px;
}

.movie-meta span {
    position: relative;
}

.movie-tags {
    margin-top: 12px;
}

.movie-tags span {
    color: #475569;
    background: #f1f5f9;
}

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

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

.rank-row a {
    display: grid;
    grid-template-columns: 54px 88px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    min-height: 88px;
    padding: 10px 16px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-row a:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.13);
}

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

.rank-row img {
    width: 88px;
    height: 62px;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(37, 99, 235, 0.22));
}

.rank-title {
    min-width: 0;
    color: #0f172a;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-meta {
    color: var(--muted);
    font-size: 14px;
}

.center-action {
    justify-content: center;
    margin-top: 28px;
}

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

.category-tile {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 22px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.55), rgba(37, 99, 235, 0.62)), var(--tile-image);
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
    transition: transform 0.28s ease;
}

.category-tile:hover {
    transform: translateY(-5px) scale(1.01);
}

.category-tile span {
    font-size: 22px;
    font-weight: 900;
}

.category-tile strong {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    font-weight: 600;
}

.page-hero {
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.36), transparent 34%), linear-gradient(135deg, #0f172a, #1d4ed8 60%, #0891b2);
}

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

.compact-hero > div,
.category-hero > div,
.ranking-hero > div,
.search-hero > div {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.category-card {
    border-radius: 26px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 58px rgba(15, 23, 42, 0.14);
}

.category-card a {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 190px;
}

.category-posters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: #e2e8f0;
}

.category-posters img {
    width: 100%;
    height: 94px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(37, 99, 235, 0.2));
}

.category-card-body {
    padding: 28px;
}

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

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

.category-card-body span {
    color: var(--cyan);
    font-weight: 900;
}

.search-panel {
    margin: 0 0 28px;
    padding: 16px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.search-panel input {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: none;
    color: #0f172a;
    background: #f8fafc;
    transition: border 0.25s ease, box-shadow 0.25s ease;
}

.search-panel input:focus {
    border-color: rgba(6, 182, 212, 0.72);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.detail-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 76px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 14px;
}

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

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

.detail-main,
.detail-side {
    min-width: 0;
}

.player-card,
.detail-card,
.side-card {
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
}

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

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

.video-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    cursor: pointer;
}

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

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

.player-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.22), rgba(2, 6, 23, 0.68));
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-button {
    position: relative;
    z-index: 4;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 24px 62px rgba(6, 182, 212, 0.4);
    font-size: 36px;
    padding-left: 6px;
}

.detail-card {
    margin-top: 24px;
    padding: 30px;
}

.detail-card h1 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.16;
    letter-spacing: -0.04em;
}

.detail-meta {
    margin-bottom: 18px;
}

.detail-meta span,
.detail-meta a {
    color: #475569;
    background: #f1f5f9;
}

.detail-tags {
    margin: 0 0 26px;
}

.detail-tags span,
.genre-list span {
    color: #334155;
    background: #eef2ff;
}

.detail-block {
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.detail-block h2,
.side-card h2 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 22px;
}

.detail-block p {
    margin: 0;
    color: #334155;
    text-align: justify;
}

.detail-block + .detail-block {
    margin-top: 24px;
}

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

.side-related {
    display: grid;
    gap: 16px;
}

.side-related .movie-card {
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.side-related .movie-poster {
    aspect-ratio: 16 / 9;
}

.site-footer {
    color: rgba(255, 255, 255, 0.74);
    background: linear-gradient(180deg, #0f172a, #020617);
    padding: 58px max(16px, calc((100% - 1180px) / 2)) 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
}

.footer-brand {
    color: #ffffff;
    margin-bottom: 14px;
    font-size: 20px;
}

.site-footer p {
    margin: 0;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

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

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

.site-footer a:hover,
.back-top:hover {
    color: #67e8f9;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 42px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.back-top {
    border: 0;
    color: rgba(255, 255, 255, 0.74);
    background: transparent;
    cursor: pointer;
}

.is-filtered-out {
    display: none !important;
}

@media (max-width: 1080px) {
    .hero-inner,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-side,
    .detail-side {
        display: none;
    }

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

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

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

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

    .nav-toggle {
        display: flex;
    }

    .mobile-menu.is-open {
        display: block;
    }

    .hero-inner {
        min-height: auto;
        padding: 42px 0;
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .hero-cover {
        width: min(320px, 100%);
        margin: 0 auto 54px;
    }

    .hero-controls {
        left: 30px;
        right: 30px;
        bottom: 24px;
    }

    .featured-grid,
    .normal-grid,
    .compact-grid,
    .rank-grid,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .movie-card-featured {
        grid-column: span 2;
    }

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

    .category-posters {
        min-height: 180px;
    }

    .rank-row a {
        grid-template-columns: 44px 76px minmax(0, 1fr);
    }

    .rank-meta {
        grid-column: 3;
    }
}

@media (max-width: 560px) {
    .site-nav,
    .mobile-menu,
    .content-section,
    .detail-shell,
    .page-hero > div,
    .hero-inner {
        width: min(100% - 24px, 1180px);
    }

    .brand-text {
        font-size: 20px;
    }

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

    .hero-slider {
        min-height: 760px;
        border-radius: 22px;
    }

    .hero-slide {
        padding: 24px;
    }

    .featured-grid,
    .normal-grid,
    .compact-grid,
    .rank-grid,
    .category-grid,
    .category-overview-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-featured {
        grid-column: span 1;
    }

    .rank-row a {
        grid-template-columns: 42px 70px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-row img {
        width: 70px;
        height: 52px;
    }

    .rank-meta {
        font-size: 12px;
    }

    .detail-card {
        padding: 22px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}
