:root {
    color-scheme: light;
    --color-rose: #f43f5e;
    --color-pink: #ec4899;
    --color-purple: #8b5cf6;
    --color-blue: #3b82f6;
    --color-cyan: #06b6d4;
    --color-green: #10b981;
    --color-ink: #111827;
    --color-muted: #6b7280;
    --color-soft: #f8fafc;
    --color-line: #e5e7eb;
    --shadow-card: 0 22px 55px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-ink);
    background: linear-gradient(180deg, #fff1f2 0%, #ffffff 34%, #eff6ff 100%);
    min-height: 100vh;
}

body.no-scroll {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-ink);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.brand-icon {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-rose), var(--color-pink));
    box-shadow: 0 10px 20px rgba(244, 63, 94, 0.35);
    font-size: 14px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #374151;
    font-size: 15px;
    font-weight: 700;
}

.desktop-nav a,
.mobile-nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

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

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

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

.header-search button {
    border: 0;
    padding: 10px 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-rose), var(--color-pink));
    cursor: pointer;
}

.mobile-menu-button {
    display: none;
    border: 0;
    background: transparent;
    color: var(--color-ink);
    font-size: 26px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0 20px;
    border-top: 1px solid var(--color-line);
}

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

.mobile-nav form {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    background: #ffffff;
}

.mobile-nav input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 11px 14px;
}

.mobile-nav button {
    border: 0;
    color: #ffffff;
    background: var(--color-rose);
    padding: 0 16px;
}

.hero-section {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: #111827;
}

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

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
}

.hero-slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px) saturate(1.1);
    transform: scale(1.08);
    opacity: 0.55;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(244, 63, 94, 0.56), transparent 30%),
        radial-gradient(circle at 86% 18%, rgba(139, 92, 246, 0.48), transparent 32%),
        linear-gradient(135deg, rgba(244, 63, 94, 0.84), rgba(236, 72, 153, 0.68), rgba(88, 28, 135, 0.78));
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.58));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 390px;
    gap: 54px;
    align-items: center;
    min-height: 650px;
    padding: 72px 0;
    color: #ffffff;
}

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

.hero-copy p {
    max-width: 740px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.65;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 8px 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.17);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.eyebrow.dark {
    color: var(--color-rose);
    background: #fff1f2;
    box-shadow: none;
}

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

.hero-tags span {
    border-radius: 999px;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

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

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-rose), var(--color-pink));
    box-shadow: 0 16px 28px rgba(244, 63, 94, 0.30);
}

.btn-secondary {
    color: var(--color-rose);
    background: #ffffff;
}

.btn-secondary.dark {
    color: #ffffff;
    background: #111827;
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.btn.full {
    width: 100%;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border: 12px solid rgba(255, 255, 255, 0.24);
    border-radius: 34px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.45);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 5;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: #ffffff;
}

.floating-search-panel {
    position: relative;
    z-index: 12;
    margin-top: -42px;
    padding: 24px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
}

.large-search {
    display: grid;
    grid-template-columns: 1fr auto;
    overflow: hidden;
    border: 1px solid #fecdd3;
    border-radius: 999px;
    background: #ffffff;
}

.large-search input {
    border: 0;
    outline: 0;
    min-height: 58px;
    padding: 0 22px;
    font-size: 17px;
}

.large-search button {
    border: 0;
    padding: 0 28px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-rose), var(--color-pink));
    cursor: pointer;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.quick-links a {
    border-radius: 999px;
    padding: 8px 12px;
    color: #be123c;
    background: #fff1f2;
    font-weight: 700;
}

.section-block {
    padding: 74px 0;
}

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

.section-heading.compact {
    align-items: center;
}

.section-heading h2 {
    margin: 12px 0 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

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

.section-more {
    color: var(--color-rose);
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.88);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.movie-card-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.movie-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-rose), var(--color-pink));
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.16);
}

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

.movie-card-meta {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 800;
}

.movie-card-meta span {
    border-radius: 999px;
    padding: 4px 8px;
    background: #f3f4f6;
}

.movie-card h3 {
    margin: 12px 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--color-rose);
}

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

.movie-card-stats {
    justify-content: space-between;
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 132px 1fr;
}

.movie-card-horizontal .movie-card-cover img {
    height: 100%;
    aspect-ratio: auto;
}

.feature-band {
    padding: 82px 0;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.feature-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 36px;
    align-items: start;
}

.feature-grid h2 {
    margin: 18px 0;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.feature-grid p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.8;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    transition: transform 0.2s ease, background 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.24);
}

.category-tile h3 {
    margin: 8px 0 8px;
    font-size: 24px;
}

.category-tile p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.category-count {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 10px;
    color: #0f172a;
    background: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.category-preview-images {
    position: absolute;
    right: 16px;
    bottom: -18px;
    display: flex;
    gap: 8px;
    opacity: 0.48;
}

.category-preview-images img {
    width: 48px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
    transform: rotate(7deg);
}

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

.horizontal-list {
    display: grid;
    gap: 18px;
}

.hot-rank-panel,
.content-card,
.side-card,
.player-card,
.category-overview-block {
    border: 1px solid rgba(229, 231, 235, 0.88);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.hot-rank-panel {
    position: sticky;
    top: 92px;
    padding: 24px;
}

.rank-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 22px 0;
    list-style: none;
}

.rank-list li {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    background: #f9fafb;
}

.rank-index {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-rose), var(--color-pink));
    font-weight: 900;
}

.page-hero {
    color: #ffffff;
    padding: 74px 0 84px;
}

.gradient-rose {
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.2), transparent 28%),
        linear-gradient(135deg, var(--color-rose), var(--color-pink), var(--color-purple));
}

.gradient-blue {
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.2), transparent 28%),
        linear-gradient(135deg, #2563eb, #06b6d4);
}

.page-hero h1 {
    margin: 16px 0;
    font-size: clamp(42px, 6vw, 70px);
    line-height: 1;
    letter-spacing: -0.05em;
}

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

.back-link {
    display: inline-flex;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 900;
}

.filter-panel {
    display: grid;
    gap: 16px;
    margin-bottom: 28px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.filter-panel div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-panel strong {
    margin-right: 6px;
}

.filter-panel button {
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    color: #4b5563;
    background: #f3f4f6;
    cursor: pointer;
}

.filter-panel button.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-rose), var(--color-pink));
}

.categories-overview {
    display: grid;
    gap: 26px;
}

.category-overview-block {
    padding: 24px;
}

.category-overview-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 22px;
}

.category-overview-title h2 {
    margin: 12px 0 8px;
    font-size: 34px;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 18px;
    align-items: stretch;
}

.rank-number {
    display: grid;
    place-items: center;
    min-height: 152px;
    border-radius: var(--radius-lg);
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-rose), var(--color-pink));
    font-weight: 950;
    box-shadow: var(--shadow-soft);
}

.rank-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

.rank-card-content {
    padding: 20px;
}

.rank-card-content h3 {
    margin: 12px 0 8px;
    font-size: 26px;
}

.rank-card-content p {
    color: var(--color-muted);
    line-height: 1.7;
}

.search-summary {
    margin: 22px 0;
    color: var(--color-muted);
    font-weight: 800;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 440px;
    color: #ffffff;
    background: #111827;
}

.detail-hero-bg {
    position: absolute;
    inset: 0;
}

.detail-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    filter: blur(7px) saturate(1.15);
    transform: scale(1.06);
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 20%, rgba(244, 63, 94, 0.5), transparent 34%),
        linear-gradient(135deg, rgba(17, 24, 39, 0.78), rgba(88, 28, 135, 0.62), rgba(17, 24, 39, 0.84));
}

.detail-hero-content {
    position: relative;
    z-index: 2;
    padding: 74px 0 88px;
}

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

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

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

.detail-hero p {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 20px;
    line-height: 1.7;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
    align-items: start;
    margin-top: -62px;
    position: relative;
    z-index: 5;
}

.detail-main {
    display: grid;
    gap: 24px;
}

.player-card {
    overflow: hidden;
    padding: 0;
}

.video-shell {
    position: relative;
    background: #050816;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 8px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.22), rgba(15, 23, 42, 0.3));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-overlay span {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-rose), var(--color-pink));
    box-shadow: 0 20px 40px rgba(244, 63, 94, 0.35);
    font-size: 30px;
}

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

.content-card {
    padding: 28px;
}

.movie-content h2,
.content-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 28px;
}

.movie-content h2:not(:first-child) {
    margin-top: 32px;
}

.movie-content p,
.content-card p {
    color: #374151;
    line-height: 1.9;
    font-size: 16px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--color-line);
}

.tag-list span {
    border-radius: 999px;
    padding: 7px 12px;
    color: #be123c;
    background: #fff1f2;
    font-weight: 800;
}

.detail-sidebar {
    display: grid;
    gap: 20px;
    position: sticky;
    top: 92px;
}

.side-card {
    padding: 22px;
}

.poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 18px;
}

.info-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--color-line);
}

.info-list div:last-child {
    border-bottom: 0;
}

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

.info-list dd {
    margin: 0;
    font-weight: 800;
    text-align: right;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 34px;
    padding: 52px 0;
}

.footer-brand {
    color: #ffffff;
    margin-bottom: 16px;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 18px;
}

.site-footer p {
    color: #9ca3af;
    line-height: 1.8;
}

.site-footer ul {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 14px;
}

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

.back-to-top.is-visible {
    display: block;
}

.content-page {
    display: grid;
    gap: 24px;
    max-width: 900px;
}

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

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

    .header-search {
        min-width: 220px;
    }

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

    .hero-content,
    .feature-grid,
    .two-column-layout,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        max-width: 380px;
        transform: none;
    }

    .detail-sidebar,
    .hot-rank-panel {
        position: static;
    }
}

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

    .header-inner {
        min-height: 64px;
    }

    .brand {
        font-size: 19px;
    }

    .header-search {
        display: none;
    }

    .hero-section,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        gap: 24px;
        padding: 42px 0 84px;
    }

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

    .hero-poster img {
        height: 360px;
    }

    .floating-search-panel {
        margin-top: -28px;
        padding: 16px;
    }

    .large-search {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .large-search button {
        min-height: 50px;
    }

    .section-block {
        padding: 50px 0;
    }

    .section-heading,
    .category-overview-title,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .movie-card-horizontal,
    .rank-card,
    .rank-row {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal .movie-card-cover img,
    .rank-card-cover img {
        aspect-ratio: 16 / 10;
        height: auto;
    }

    .rank-number {
        min-height: auto;
        padding: 12px;
    }

    .page-hero,
    .detail-hero-content {
        padding: 52px 0 64px;
    }

    .detail-layout {
        margin-top: -34px;
    }
}
