:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --pink: #ec4899;
    --red: #ef4444;
    --amber: #f59e0b;
    --text: #111827;
    --muted: #6b7280;
    --soft: #f9fafb;
    --line: #e5e7eb;
    --dark: #111827;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

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

.logo-mark {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.34);
}

.logo-text {
    font-size: 22px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-weight: 700;
    color: #374151;
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--orange);
}

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

.header-search input,
.mobile-search input,
.filter-bar input,
.search-panel input {
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 11px 18px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-search input {
    width: 190px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.search-panel input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.header-search button,
.mobile-search button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 800;
    cursor: pointer;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: #fff7ed;
    border-radius: 12px;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--orange);
}

.mobile-nav-panel {
    border-top: 1px solid var(--line);
    padding: 14px 16px 18px;
    background: #ffffff;
}

.mobile-nav-link {
    display: block;
    padding: 12px 0;
    font-weight: 800;
    color: #374151;
}

.mobile-nav-link.active {
    color: var(--orange);
}

.mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 8px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c 0%, #ec4899 48%, #ef4444 100%);
}

.hero-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    background: linear-gradient(to top, #f9fafb, rgba(249, 250, 251, 0));
    pointer-events: none;
}

.hero-noise {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.45) 0 2px, transparent 3px), radial-gradient(circle at 70% 40%, rgba(255,255,255,0.25) 0 2px, transparent 3px);
    background-size: 90px 90px;
}

.hero-slider {
    position: relative;
    min-height: 620px;
    padding: 76px 0 90px;
}

.hero-slide {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
    gap: 56px;
    align-items: center;
    min-height: 460px;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    position: absolute;
    inset: 76px 0 90px;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
    inset: auto;
}

.hero-badge,
.page-hero span,
.section-heading span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 16px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
}

.hero-copy h1 {
    margin: 22px 0;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero-copy h1 span {
    color: #fef3c7;
}

.hero-lead {
    max-width: 720px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(18px, 2.2vw, 25px);
}

.hero-tags,
.detail-tags,
.tag-list,
.genre-chips,
.search-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.detail-tags span,
.tag-list span,
.genre-chips a,
.search-shortcuts button {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 700;
}

.hero-tags span {
    padding: 8px 13px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

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

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

.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn-light {
    color: var(--orange);
    background: #ffffff;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.18);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.85);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
    color: var(--orange);
    background: #ffffff;
}

.btn-gradient {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 16px 35px rgba(236, 72, 153, 0.22);
}

.hero-poster {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: end;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.38);
    transform: rotate(2deg);
}

.hero-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0.04) 65%);
}

.hero-poster div {
    position: relative;
    z-index: 1;
    padding: 28px;
}

.hero-poster strong,
.hero-poster span {
    display: block;
}

.hero-poster strong {
    font-size: 28px;
    line-height: 1.2;
}

.hero-poster span {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.82);
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 44px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 34px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dot.active {
    background: #ffffff;
}

.feature-section {
    background: #ffffff;
    padding: 62px 0;
}

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

.feature-card {
    text-align: center;
    padding: 26px 20px;
    border: 1px solid #fff0e5;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(249, 115, 22, 0.08);
}

.feature-icon {
    width: 58px;
    height: 58px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 14px;
    color: var(--orange);
    background: linear-gradient(135deg, #ffedd5, #fce7f3);
    border-radius: 999px;
    font-weight: 900;
    font-size: 22px;
}

.feature-card h3,
.movie-card h3,
.category-overview-card h2,
.content-card h2 {
    margin: 0;
}

.feature-card p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section {
    padding: 74px 0;
}

.bg-soft {
    background: #f9fafb;
}

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

.section-heading {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.section-heading span {
    margin: 0 auto 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 18px;
}

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

.category-card,
.category-overview-card,
.movie-card,
.content-card,
.search-panel {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.85);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.category-card {
    position: relative;
    min-height: 190px;
    padding: 24px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card strong,
.category-card em,
.category-card p {
    position: relative;
    z-index: 1;
    display: block;
}

.category-card strong {
    font-size: 22px;
}

.category-card em {
    margin: 8px 0 16px;
    color: var(--orange);
    font-style: normal;
    font-weight: 900;
}

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

.category-gradient {
    position: absolute;
    right: -34px;
    bottom: -34px;
    width: 120px;
    height: 120px;
    opacity: 0.2;
    border-radius: 999px;
}

.from-orange-500.to-pink-500 {
    background: linear-gradient(135deg, #f97316, #ec4899);
}

.from-amber-500.to-orange-500 {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.from-pink-500.to-rose-500 {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.from-red-500.to-orange-500 {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.from-cyan-500.to-blue-500 {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.from-violet-500.to-fuchsia-500 {
    background: linear-gradient(135deg, #8b5cf6, #d946ef);
}

.from-emerald-500.to-teal-500 {
    background: linear-gradient(135deg, #10b981, #14b8a6);
}

.from-slate-700.to-slate-900 {
    background: linear-gradient(135deg, #334155, #0f172a);
}

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

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

.movie-card {
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card a {
    display: block;
    height: 100%;
}

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.compact .poster-wrap,
.compact-grid .poster-wrap {
    aspect-ratio: 16 / 10;
}

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

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

.year-badge,
.rank-badge,
.poster-meta {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
}

.year-badge {
    top: 10px;
    right: 10px;
    color: #ffffff;
    background: var(--orange);
    padding: 5px 9px;
}

.rank-badge {
    top: 10px;
    left: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #ef4444);
    padding: 5px 9px;
}

.poster-meta {
    left: 0;
    right: 0;
    bottom: 0;
    color: #ffffff;
    border-radius: 0;
    padding: 26px 12px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
}

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

.movie-card h3 {
    font-size: 16px;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.movie-genre,
.movie-one-line {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.movie-genre {
    -webkit-line-clamp: 1;
}

.movie-one-line {
    -webkit-line-clamp: 2;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #ec4899 56%, #ef4444);
}

.page-hero .container {
    padding: 82px 0 74px;
}

.page-hero span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.page-hero h1 {
    max-width: 780px;
    margin: 18px 0 14px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
}

.page-hero-meta {
    margin-top: 18px;
    font-weight: 900;
}

.category-overview-card {
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-cover {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #fff7ed;
}

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

.category-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.48), transparent 70%);
}

.category-overview-body {
    padding: 22px;
}

.category-overview-body p {
    color: var(--muted);
}

.category-overview-body strong {
    color: var(--orange);
}

.genre-chip-panel {
    margin-top: 42px;
    padding: 28px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

.genre-chip-panel h2 {
    margin: 0 0 16px;
}

.genre-chips a,
.search-shortcuts button {
    padding: 8px 14px;
    border: 0;
    color: #9a3412;
    background: #ffedd5;
    cursor: pointer;
}

.filter-bar,
.search-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
    padding: 18px;
}

.filter-bar input,
.search-panel input {
    width: min(620px, 100%);
    background: #ffffff;
}

.filter-count {
    color: var(--muted);
    font-weight: 800;
}

.search-panel {
    flex-direction: column;
    align-items: stretch;
}

.search-shortcuts {
    margin-top: 2px;
}

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

.ranking-row {
    overflow: hidden;
}

.ranking-row-link {
    display: grid;
    grid-template-columns: 58px 88px minmax(0, 1fr) 110px;
    gap: 18px;
    align-items: center;
    padding: 14px 18px;
}

.ranking-number {
    font-size: 26px;
    font-weight: 950;
    color: var(--orange);
    text-align: center;
}

.ranking-row img {
    width: 88px;
    height: 118px;
    border-radius: 14px;
    object-fit: cover;
}

.ranking-info h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.ranking-info p {
    margin: 0;
    color: var(--muted);
}

.ranking-desc {
    margin-top: 6px !important;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-list.small {
    margin-top: 10px;
}

.tag-list.small span {
    padding: 4px 8px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
}

.ranking-score {
    text-align: right;
}

.ranking-score strong,
.ranking-score span {
    display: block;
}

.ranking-score strong {
    color: var(--orange);
    font-size: 28px;
}

.ranking-score span {
    color: var(--muted);
    font-size: 12px;
}

.detail-hero {
    min-height: 560px;
    background: #111827;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.32;
    filter: blur(6px);
    transform: scale(1.04);
}

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

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(249, 115, 22, 0.52), rgba(236, 72, 153, 0.58));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 34px 0 68px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

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

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

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

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

.detail-kicker {
    color: #fed7aa;
    font-weight: 900;
}

.detail-info h1 {
    margin: 10px 0 16px;
    max-width: 820px;
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1.06;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
}

.detail-tags span {
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.detail-stats span {
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
}

.detail-stats strong {
    color: #ffffff;
}

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

.video-player {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(0,0,0,0.18), rgba(0,0,0,0.66));
    cursor: pointer;
}

.player-start span {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    padding-left: 4px;
    color: var(--orange);
    background: #ffffff;
    border-radius: 999px;
    font-size: 30px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

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

.video-player.is-loaded .player-start {
    opacity: 0;
    pointer-events: none;
}

.content-card {
    padding: 26px;
    margin-top: 22px;
}

.content-card p {
    margin: 12px 0 0;
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
}

.meta-card {
    margin-top: 0;
    position: sticky;
    top: 92px;
}

.meta-card dl {
    margin: 14px 0 0;
}

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

.meta-card dd {
    margin: 4px 0 14px;
    font-weight: 800;
}

.cta-section {
    padding: 72px 0;
    background: #ffffff;
}

.cta-card {
    padding: 46px 24px;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    border-radius: 34px;
    box-shadow: var(--shadow);
}

.cta-card h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
}

.cta-card p {
    margin: 10px 0 24px;
    color: rgba(255, 255, 255, 0.9);
}

.site-footer {
    color: #d1d5db;
    background: #111827;
    padding: 54px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 0.9fr;
    gap: 36px;
}

.footer-logo .logo-text {
    color: #ffffff;
}

.site-footer p {
    max-width: 460px;
    color: #cbd5e1;
}

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

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

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

.site-footer a:hover {
    color: #fb923c;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 14px;
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    display: none;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    border-radius: 999px;
    box-shadow: var(--shadow);
    cursor: pointer;
    z-index: 40;
}

.back-to-top.visible {
    display: grid;
}

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

@media (max-width: 1100px) {
    .movie-grid,
    .ranking-top-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

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

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

    .mobile-menu-button {
        display: block;
    }

    .hero-slider {
        min-height: 760px;
        padding-top: 52px;
    }

    .hero-slide {
        inset: 52px 0 90px;
        gap: 34px;
    }

    .hero-copy h1 {
        font-size: 44px;
    }

    .hero-poster {
        min-height: 320px;
        transform: none;
    }

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

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

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

    .meta-card {
        position: static;
    }

    .ranking-row-link {
        grid-template-columns: 42px 70px minmax(0, 1fr);
    }

    .ranking-score {
        display: none;
    }

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

@media (max-width: 620px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .logo-text {
        font-size: 18px;
    }

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

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

    .hero-lead,
    .page-hero p,
    .detail-one-line {
        font-size: 17px;
    }

    .hero-actions,
    .detail-stats,
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-dot {
        width: 24px;
    }

    .feature-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

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

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

    .detail-hero-inner {
        padding-bottom: 42px;
    }

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

    .ranking-row-link {
        grid-template-columns: 36px 62px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .ranking-row img {
        width: 62px;
        height: 84px;
    }

    .ranking-info h3 {
        font-size: 16px;
    }

    .ranking-desc,
    .tag-list.small {
        display: none;
    }
}
