:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.72);
    --bg-card-solid: #111827;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --cyan: #06b6d4;
    --cyan-strong: #0891b2;
    --blue: #2563eb;
    --yellow: #facc15;
    --radius: 18px;
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.site-body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(6, 182, 212, 0.18), transparent 32rem),
        radial-gradient(circle at 82% 12%, rgba(37, 99, 235, 0.16), transparent 30rem),
        linear-gradient(135deg, #020617 0%, #0f172a 48%, #020617 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1280px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.logo-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 28px rgba(6, 182, 212, 0.3);
}

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

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

.nav-link {
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--muted-strong);
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(6, 182, 212, 0.14);
}

.header-search {
    position: relative;
    margin-left: auto;
    width: min(360px, 38vw);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.74);
}

.header-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    padding: 8px 10px 8px 14px;
}

.header-search button {
    border: 0;
    border-radius: 999px;
    padding: 8px 16px;
    color: white;
    background: var(--cyan);
    transition: 0.2s ease;
}

.header-search button:hover {
    background: var(--cyan-strong);
}

.search-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: none;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
}

.search-panel.open {
    display: block;
}

.search-result {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--line);
}

.search-result:last-child {
    border-bottom: 0;
}

.search-result:hover {
    background: rgba(6, 182, 212, 0.12);
}

.search-result img {
    width: 46px;
    height: 62px;
    object-fit: cover;
    border-radius: 10px;
}

.search-result strong,
.search-result em,
.search-result b {
    display: block;
}

.search-result strong {
    font-size: 14px;
}

.search-result em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.search-result b {
    color: var(--yellow);
    font-size: 14px;
}

.empty-result {
    padding: 16px;
    color: var(--muted);
    text-align: center;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.78);
}

.mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: white;
}

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.94);
}

.mobile-nav a {
    display: block;
    padding: 12px;
    color: var(--muted-strong);
}

.hero {
    position: relative;
    height: min(760px, 72vh);
    min-height: 520px;
    overflow: hidden;
}

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

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

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 46%, rgba(2, 6, 23, 0.24) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.1) 42%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1280px) / 2));
    bottom: 88px;
    width: min(700px, calc(100% - 48px));
}

.hero-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
}

.hero-kicker span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 12px;
    border: 1px solid rgba(103, 232, 249, 0.24);
    border-radius: 999px;
    color: #cffafe;
    background: rgba(6, 182, 212, 0.2);
    font-size: 13px;
}

.hero-content h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 66px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-content p {
    margin: 0;
    max-width: 660px;
    color: var(--muted-strong);
    font-size: 17px;
    line-height: 1.75;
}

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

.primary-btn,
.ghost-btn,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.2s ease;
}

.primary-btn {
    color: white;
    background: var(--cyan);
    box-shadow: 0 16px 36px rgba(6, 182, 212, 0.24);
}

.primary-btn:hover {
    background: var(--cyan-strong);
    transform: translateY(-1px);
}

.ghost-btn,
.section-more {
    border: 1px solid var(--line);
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.72);
}

.ghost-btn:hover,
.section-more:hover {
    color: white;
    border-color: rgba(6, 182, 212, 0.42);
    background: rgba(6, 182, 212, 0.14);
}

.hero-score {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    color: var(--muted);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: white;
    background: rgba(2, 6, 23, 0.56);
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
    transition: 0.2s ease;
    font-size: 30px;
    line-height: 1;
}

.hero-arrow:hover {
    background: rgba(6, 182, 212, 0.4);
}

.hero-arrow.prev {
    left: 24px;
}

.hero-arrow.next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    transition: 0.2s ease;
}

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

.quick-cats,
.content-section,
.rank-section,
.page-hero,
.category-overview,
.detail-content,
.player-section {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.quick-cats {
    position: relative;
    z-index: 2;
    margin-top: -42px;
}

.quick-cats-inner {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.category-card {
    position: relative;
    min-height: 150px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-card-solid);
    box-shadow: var(--shadow);
}

.category-card img,
.category-card span {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card span {
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.18));
}

.category-card strong,
.category-card em {
    position: absolute;
    left: 16px;
    right: 16px;
    z-index: 1;
}

.category-card strong {
    bottom: 42px;
    font-size: 18px;
}

.category-card em {
    bottom: 16px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.content-section,
.rank-section {
    padding: 72px 0 0;
}

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

.section-head h2 {
    margin: 0 0 8px;
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.03em;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: 0 12px 36px rgba(2, 6, 23, 0.22);
    transition: 0.22s ease;
}

.movie-card:hover {
    border-color: rgba(6, 182, 212, 0.45);
    transform: translateY(-4px);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0f172a;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.8), transparent 52%);
}

.card-rating,
.play-badge {
    position: absolute;
    z-index: 1;
    border-radius: 999px;
    font-weight: 800;
}

.card-rating {
    top: 10px;
    right: 10px;
    padding: 5px 9px;
    color: #111827;
    background: var(--yellow);
    font-size: 12px;
}

.play-badge {
    left: 10px;
    bottom: 10px;
    padding: 6px 10px;
    color: white;
    background: rgba(6, 182, 212, 0.88);
    font-size: 12px;
}

.card-info {
    padding: 14px;
}

.card-title {
    display: block;
    overflow: hidden;
    color: white;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.card-info p {
    display: -webkit-box;
    min-height: 42px;
    margin: 8px 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.62;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.card-meta span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
}

.card-meta span {
    color: var(--muted-strong);
}

.tag-row span {
    padding: 4px 8px;
    color: #bae6fd;
    background: rgba(6, 182, 212, 0.14);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 42px 56px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.68);
    transition: 0.2s ease;
}

.rank-item:hover {
    border-color: rgba(6, 182, 212, 0.42);
    background: rgba(6, 182, 212, 0.1);
}

.rank-item span {
    color: var(--cyan);
    font-weight: 900;
}

.rank-item img {
    width: 56px;
    height: 76px;
    border-radius: 10px;
    object-fit: cover;
}

.rank-item strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-item em,
.ranking-score {
    color: var(--yellow);
    font-style: normal;
    font-weight: 900;
}

.page-hero {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 380px);
    gap: 28px;
    align-items: center;
    margin-top: 38px;
    padding: 44px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.24), transparent 28rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.86));
    box-shadow: var(--shadow);
}

.small-hero {
    display: block;
}

.page-hero span {
    color: #67e8f9;
    font-weight: 800;
}

.page-hero h1 {
    margin: 12px 0;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: var(--muted-strong);
    font-size: 17px;
    line-height: 1.75;
}

.category-hot-links {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(2, 6, 23, 0.38);
}

.category-hot-links strong {
    color: white;
    font-size: 18px;
}

.category-hot-links a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    color: var(--muted-strong);
}

.category-hot-links span {
    color: var(--yellow);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 20px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--bg-card);
}

.category-cover-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.category-cover-strip img {
    height: 116px;
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.category-overview-card h2 {
    margin: 0 0 10px;
}

.category-overview-card p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.7;
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-links a {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(148, 163, 184, 0.12);
    font-size: 13px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.58);
}

.filter-search input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: 0;
    padding: 0 14px;
    color: var(--text);
    background: rgba(2, 6, 23, 0.42);
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-group button {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 14px;
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.6);
}

.filter-group button.active,
.filter-group button:hover {
    border-color: rgba(6, 182, 212, 0.48);
    color: white;
    background: rgba(6, 182, 212, 0.2);
}

.ranking-list-section {
    padding-top: 42px;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 70px 86px 1fr 80px;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--bg-card);
}

.ranking-index {
    color: var(--cyan);
    font-weight: 900;
    font-size: 22px;
}

.ranking-poster img {
    width: 86px;
    height: 116px;
    border-radius: 12px;
    object-fit: cover;
}

.ranking-info h2 {
    margin: 0 0 8px;
    font-size: 21px;
}

.ranking-info p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.65;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 36px 0 42px;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.26;
    filter: blur(16px);
    transform: scale(1.08);
}

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

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.55), #020617 94%);
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

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

.breadcrumb a:hover {
    color: #67e8f9;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 34px;
    align-items: end;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    border: 1px solid var(--line);
    border-radius: 24px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.detail-intro h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 4.4vw, 66px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-intro p {
    max-width: 820px;
    margin: 0;
    color: var(--muted-strong);
    font-size: 18px;
    line-height: 1.75;
}

.detail-score {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin: 24px 0;
}

.detail-score strong {
    color: var(--yellow);
    font-size: 34px;
}

.detail-score span,
.detail-score em {
    color: var(--muted);
    font-style: normal;
}

.big-tags span {
    padding: 7px 12px;
    font-size: 13px;
}

.player-section {
    padding: 0 0 52px;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.62));
    transition: 0.2s ease;
}

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

.player-overlay span {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 44px rgba(6, 182, 212, 0.42);
    position: relative;
}

.player-overlay span::after {
    content: "";
    position: absolute;
    left: 34px;
    top: 25px;
    border-left: 24px solid white;
    border-top: 17px solid transparent;
    border-bottom: 17px solid transparent;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
}

.detail-main,
.detail-side {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--bg-card);
    padding: 26px;
}

.detail-main h2,
.detail-side h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.detail-main p {
    margin: 0 0 24px;
    color: var(--muted-strong);
    line-height: 1.9;
    white-space: pre-wrap;
}

.detail-side dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px 16px;
    margin: 0;
}

.detail-side dt {
    color: var(--muted);
}

.detail-side dd {
    margin: 0;
    color: white;
}

.detail-side a {
    color: #67e8f9;
}

.related-section {
    padding-bottom: 80px;
}

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

.movie-card.compact .card-info p {
    min-height: auto;
}

.site-footer {
    margin-top: 80px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.82);
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
    padding: 34px 0;
}

.footer-logo {
    margin-bottom: 12px;
    font-size: 20px;
}

.footer-inner p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    align-content: flex-start;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(148, 163, 184, 0.1);
}

[hidden] {
    display: none !important;
}

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

    .quick-cats-inner {
        grid-template-columns: repeat(4, 1fr);
    }

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

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

    .mobile-toggle {
        display: block;
        margin-left: auto;
    }

    .mobile-nav.open {
        display: block;
    }

    .hero {
        min-height: 560px;
        height: 68vh;
    }

    .hero-content {
        bottom: 72px;
    }

    .hero-arrow {
        display: none;
    }

    .quick-cats-inner,
    .category-overview,
    .page-hero,
    .detail-content,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .category-overview-card,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

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

    .ranking-row {
        grid-template-columns: 48px 76px 1fr;
    }

    .ranking-score {
        grid-column: 3;
        justify-self: start;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .header-inner {
        width: min(100% - 20px, 1280px);
    }

    .hero {
        min-height: 560px;
    }

    .hero-content {
        left: 16px;
        width: calc(100% - 32px);
    }

    .hero-content p {
        font-size: 15px;
    }

    .quick-cats,
    .content-section,
    .rank-section,
    .page-hero,
    .category-overview,
    .detail-content,
    .player-section,
    .detail-hero-inner {
        width: min(100% - 20px, 1280px);
    }

    .quick-cats-inner,
    .movie-grid,
    .catalog-grid,
    .related-grid,
    .rank-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .category-card {
        min-height: 128px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-hero {
        padding: 26px;
        border-radius: 22px;
    }

    .category-cover-strip {
        grid-template-columns: repeat(4, 1fr);
    }

    .category-cover-strip img {
        height: 94px;
    }

    .card-info {
        padding: 11px;
    }

    .card-info p {
        display: none;
    }

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

    .detail-intro p {
        font-size: 15px;
    }

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

    .player-overlay span::after {
        left: 27px;
        top: 20px;
        border-left-width: 20px;
        border-top-width: 14px;
        border-bottom-width: 14px;
    }
}
