@charset "UTF-8";

:root {
    --cyan-50: #ecfeff;
    --cyan-100: #cffafe;
    --cyan-200: #a5f3fc;
    --cyan-500: #06b6d4;
    --cyan-600: #0891b2;
    --cyan-700: #0e7490;
    --teal-500: #14b8a6;
    --emerald-500: #10b981;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.14);
    --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-800);
    background: var(--white);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

main {
    min-height: 60vh;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 18px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

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

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

.brand {
    color: var(--cyan-700);
    font-size: 22px;
}

.brand-icon {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-600), var(--teal-500));
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(8, 145, 178, 0.28);
    font-size: 16px;
}

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

.nav-link,
.mobile-link {
    padding: 10px 16px;
    border-radius: 12px;
    color: var(--gray-700);
    font-weight: 700;
    transition: 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover {
    background: var(--gray-100);
    color: var(--cyan-700);
}

.nav-link.active,
.mobile-link.active {
    color: var(--white);
    background: var(--cyan-600);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    color: var(--gray-700);
    background: var(--gray-100);
    border-radius: 12px;
    font-size: 22px;
}

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

.mobile-menu.is-open {
    display: grid;
    gap: 6px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, #0891b2 0%, #0f766e 52%, #059669 100%);
    padding: 86px 0 96px;
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(12px);
    opacity: 0.32;
    pointer-events: none;
}

.hero-glow-one {
    top: -120px;
    right: -90px;
    width: 360px;
    height: 360px;
    background: var(--cyan-200);
}

.hero-glow-two {
    bottom: -160px;
    left: -80px;
    width: 380px;
    height: 380px;
    background: var(--emerald-500);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
    align-items: center;
    gap: 48px;
}

.eyebrow,
.section-heading span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan-600);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-text .eyebrow,
.detail-info .eyebrow,
.page-hero .eyebrow {
    color: var(--cyan-100);
}

.hero-text h1,
.page-hero h1,
.detail-info h1 {
    margin: 16px 0 20px;
    font-size: clamp(38px, 7vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-text p,
.page-hero p,
.detail-info p {
    max-width: 720px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
}

.hero-search {
    display: flex;
    max-width: 560px;
    padding: 8px;
    margin: 0 0 22px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 18px;
    backdrop-filter: blur(12px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--white);
    background: transparent;
    padding: 12px 14px;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.hero-search button,
.primary-btn,
.wide-btn {
    border: 0;
    color: var(--cyan-700);
    background: var(--white);
    border-radius: 13px;
    padding: 12px 22px;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
    transition: 0.2s ease;
}

.hero-search button:hover,
.primary-btn:hover,
.wide-btn:hover {
    transform: translateY(-2px);
    background: var(--cyan-50);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ghost-btn,
.outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.46);
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    padding: 12px 22px;
    font-weight: 800;
    transition: 0.2s ease;
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.hero-panel {
    position: relative;
    min-height: 560px;
    padding: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
}

.hero-slider {
    position: relative;
    height: 100%;
    min-height: 498px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: end;
    overflow: hidden;
    border-radius: 24px;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}

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

.hero-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-image::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.86));
}

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

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

.hero-kicker {
    display: inline-flex;
    padding: 6px 12px;
    margin-bottom: 12px;
    color: var(--cyan-100);
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-copy h2 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.16;
}

.hero-copy p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.82);
}

.light-link {
    display: inline-flex;
    align-items: center;
    color: var(--white);
    font-weight: 800;
}

.hero-controls {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-controls button,
.hero-dot {
    border: 0;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.hero-controls > button {
    width: 38px;
    height: 38px;
    font-size: 24px;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
}

.hero-dot.is-active {
    width: 28px;
    background: var(--white);
}

.section {
    padding: 72px 0;
}

.section-soft {
    background: var(--gray-50);
}

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

.section-heading h2 {
    margin: 8px 0 10px;
    color: var(--gray-800);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.16;
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 720px;
    margin: 0;
    color: var(--gray-600);
}

.centered {
    text-align: center;
}

.centered p {
    margin: 0 auto;
}

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

.row-heading > a {
    color: var(--cyan-700);
    font-weight: 800;
}

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

.category-card {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    color: var(--white);
    background: var(--gray-900);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    transition: 0.22s ease;
}

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

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    transition: transform 0.35s ease;
}

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

.category-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.84));
}

.category-card > div,
.category-card .category-icon {
    position: relative;
    z-index: 1;
}

.category-card > div {
    display: grid;
    align-content: end;
    min-height: 260px;
    padding: 22px;
}

.category-icon {
    position: absolute;
    top: 18px;
    left: 18px;
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    font-size: 24px;
    backdrop-filter: blur(8px);
}

.category-icon.large {
    position: static;
    margin-bottom: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-600), var(--teal-500));
}

.category-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.category-card p {
    display: -webkit-box;
    margin: 0 0 12px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.category-card strong {
    color: var(--cyan-100);
}

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

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
    transition: 0.22s ease;
}

.poster-wrap {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: var(--gray-100);
}

.small-grid .poster-wrap {
    height: 210px;
}

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

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

.year-badge,
.play-badge {
    position: absolute;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.year-badge {
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    color: var(--white);
    background: var(--cyan-600);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.play-badge {
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    color: var(--cyan-700);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.meta-line {
    margin-bottom: 8px;
    color: var(--cyan-700);
    font-size: 13px;
    font-weight: 800;
}

.card-title {
    display: -webkit-box;
    min-height: 52px;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--gray-800);
    font-size: 18px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-title.compact {
    min-height: 45px;
    font-size: 16px;
}

.card-desc {
    display: -webkit-box;
    flex: 1;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--gray-600);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    color: var(--cyan-700);
    background: var(--cyan-50);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

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

.rank-panel,
.article-card,
.detail-side,
.category-overview-block {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 26px;
    box-shadow: var(--shadow-sm);
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 42px 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    transition: 0.2s ease;
}

.rank-item:hover {
    background: var(--gray-50);
}

.rank-item img {
    width: 58px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-num {
    color: var(--cyan-700);
    font-size: 18px;
    font-weight: 900;
}

.rank-info {
    display: grid;
    min-width: 0;
}

.rank-info strong,
.rank-info em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info strong {
    color: var(--gray-800);
}

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

.wide-btn {
    display: flex;
    justify-content: center;
    margin-top: 18px;
    color: var(--white);
    background: var(--cyan-600);
}

.wide-btn:hover {
    color: var(--cyan-700);
}

.page-hero {
    color: var(--white);
    background: linear-gradient(135deg, #0891b2, #0f766e 55%, #059669);
}

.compact-hero {
    padding: 70px 0;
}

.compact-hero h1 {
    font-size: clamp(36px, 6vw, 58px);
}

.category-overview-list {
    display: grid;
    gap: 28px;
}

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

.category-overview-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.category-overview-head h2 {
    margin: 0 0 8px;
    color: var(--gray-800);
    font-size: 28px;
}

.category-overview-head p {
    max-width: 760px;
    margin: 0;
    color: var(--gray-600);
}

.outline-btn {
    align-self: flex-start;
    color: var(--cyan-700);
    background: var(--cyan-50);
    border-color: var(--cyan-100);
}

.outline-btn:hover {
    background: var(--cyan-100);
    transform: translateY(-2px);
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.7fr repeat(3, minmax(150px, 0.6fr));
    gap: 14px;
    padding: 18px;
    margin-bottom: 28px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select,
.search-page-box input {
    width: 100%;
    border: 1px solid var(--gray-200);
    outline: 0;
    color: var(--gray-800);
    background: var(--gray-50);
    border-radius: 14px;
    padding: 12px 14px;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-page-box input:focus {
    border-color: var(--cyan-500);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.empty-state {
    display: none;
    padding: 32px;
    margin-bottom: 28px;
    color: var(--gray-600);
    text-align: center;
    background: var(--gray-50);
    border-radius: 22px;
}

.empty-state.is-visible {
    display: block;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--gray-900);
    padding: 78px 0;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0.24;
    filter: blur(1px);
}

.detail-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0.88));
}

.detail-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.detail-poster img {
    width: 300px;
    height: 430px;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
}

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

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

.detail-tags {
    margin-bottom: 22px;
}

.detail-tags span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
}

.detail-actions .ghost-btn {
    border-color: rgba(255, 255, 255, 0.42);
}

.player-section {
    background: var(--gray-900);
}

.player-section .section-heading h2,
.player-section .section-heading span {
    color: var(--white);
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 14px;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.74));
    text-align: center;
    transition: 0.2s ease;
}

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

.player-icon {
    display: inline-grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 0 auto;
    color: var(--cyan-700);
    background: var(--white);
    border-radius: 999px;
    box-shadow: var(--shadow-md);
    font-size: 28px;
}

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

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

.article-card,
.detail-side {
    padding: 28px;
}

.article-card h2,
.detail-side h2 {
    margin: 0 0 16px;
    color: var(--gray-800);
    font-size: 26px;
}

.article-card p {
    margin: 0 0 26px;
    color: var(--gray-700);
    font-size: 17px;
    line-height: 1.9;
}

.article-card p:last-child {
    margin-bottom: 0;
}

.detail-side dl {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px 16px;
    margin: 0;
}

.detail-side dt {
    color: var(--gray-500);
    font-weight: 800;
}

.detail-side dd {
    margin: 0;
    color: var(--gray-800);
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 70px 78px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
    transition: 0.2s ease;
}

.ranking-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.ranking-number {
    color: var(--cyan-700);
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

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

.ranking-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.ranking-main strong {
    color: var(--gray-800);
    font-size: 18px;
}

.ranking-main em,
.ranking-main small {
    overflow: hidden;
    color: var(--gray-600);
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-go {
    padding: 8px 14px;
    color: var(--white);
    background: var(--cyan-600);
    border-radius: 999px;
    font-weight: 800;
}

.search-page-box {
    display: flex;
    gap: 12px;
    padding: 18px;
    margin-bottom: 26px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
}

.search-page-box button {
    border: 0;
    color: var(--white);
    background: var(--cyan-600);
    border-radius: 14px;
    padding: 0 26px;
    font-weight: 800;
}

.site-footer {
    color: var(--gray-300);
    background: var(--gray-900);
}

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

.footer-brand {
    margin-bottom: 14px;
    color: var(--white);
    font-size: 21px;
}

.site-footer p {
    margin: 0;
    color: #9ca3af;
}

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

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

.site-footer a {
    color: #9ca3af;
    transition: 0.2s ease;
}

.site-footer a:hover {
    color: var(--cyan-200);
}

.footer-bottom {
    padding: 20px 16px;
    color: #9ca3af;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 80;
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    color: var(--white);
    background: var(--cyan-600);
    border-radius: 999px;
    box-shadow: var(--shadow-md);
    font-size: 22px;
}

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

@media (max-width: 1100px) {
    .hero-grid,
    .detail-grid,
    .split-layout,
    .content-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        min-height: 460px;
    }

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

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

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

    .rank-panel {
        position: static;
    }
}

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .hero-section,
    .compact-hero,
    .detail-hero {
        padding: 52px 0;
    }

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

    .hero-panel {
        min-height: 420px;
        border-radius: 24px;
    }

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

    .hero-copy h2 {
        font-size: 26px;
    }

    .hero-search,
    .search-page-box,
    .category-overview-head,
    .row-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }

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

    .detail-poster img {
        width: 220px;
        height: 316px;
    }

    .ranking-row {
        grid-template-columns: 48px 68px minmax(0, 1fr);
    }

    .ranking-go {
        display: none;
    }
}

@media (max-width: 560px) {
    .container,
    .nav-shell,
    .mobile-menu {
        width: min(100% - 22px, 1180px);
    }

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

    .hero-text h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 36px;
    }

    .hero-text p,
    .page-hero p,
    .detail-info p {
        font-size: 16px;
    }

    .hero-actions,
    .hero-search,
    .search-page-box {
        display: grid;
    }

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

    .poster-wrap,
    .small-grid .poster-wrap {
        height: 320px;
    }

    .hero-controls {
        right: 18px;
        bottom: 18px;
    }

    .content-layout,
    .detail-grid {
        gap: 22px;
    }

    .article-card,
    .detail-side,
    .category-overview-block,
    .rank-panel {
        padding: 20px;
        border-radius: 20px;
    }

    .ranking-row {
        gap: 12px;
        padding: 10px;
    }
}
