:root {
    --rose: #f43f5e;
    --rose-dark: #be123c;
    --pink: #db2777;
    --blue: #2563eb;
    --green: #059669;
    --amber: #d97706;
    --purple: #7c3aed;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f9fafb;
    --white: #ffffff;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background: #f3f4f6;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.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.85);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: white;
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 12px 28px rgba(244, 63, 94, 0.32);
}

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

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

.nav-link {
    padding: 10px 14px;
    color: #374151;
    border-radius: 999px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--rose-dark);
    background: #fff1f2;
}

.header-search {
    display: flex;
    align-items: center;
    width: min(310px, 30vw);
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: white;
}

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

.header-search button,
.hero-search button {
    border: 0;
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    padding: 10px 18px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 700;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #fff1f2;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    background: var(--rose-dark);
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    padding: 8px 20px 18px;
    border-top: 1px solid var(--line);
    background: white;
}

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

.mobile-nav-link {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f9fafb;
    font-weight: 700;
}

.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #881337, #9d174d, #be123c);
}

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

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.05));
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: min(1180px, calc(100% - 40px));
    transform: translate(-50%, -50%);
    color: white;
}

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

.hero-content p {
    max-width: 680px;
    color: #e5e7eb;
    font-size: 19px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 15px;
    border-radius: 999px;
    color: white;
    background: var(--rose);
    font-size: 14px;
    font-weight: 800;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 14px 32px rgba(244, 63, 94, 0.32);
}

.ghost-button {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

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

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

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

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

.hero-dot.active {
    width: 34px;
    background: white;
}

.hero-search-section {
    position: relative;
    z-index: 4;
    max-width: 980px;
    margin: -34px auto 0;
    padding: 0 20px;
}

.hero-search {
    display: flex;
    overflow: hidden;
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow);
}

.hero-search input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 22px 24px;
    font-size: 16px;
}

.hero-search button {
    padding: 0 34px;
}

.stats-section,
.section-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 20px 0;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-card {
    min-height: 128px;
    padding: 26px;
    border-radius: 22px;
    color: white;
    box-shadow: var(--shadow);
}

.stat-card strong {
    display: block;
    font-size: 36px;
    line-height: 1;
}

.stat-card span {
    display: block;
    margin-top: 12px;
    opacity: 0.88;
}

.stat-card.blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.stat-card.green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.stat-card.amber {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-card.purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.section-wrap.compact {
    padding-top: 0;
}

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

.section-heading.center {
    justify-content: center;
    text-align: center;
}

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

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

.section-heading a {
    color: var(--rose-dark);
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #881337);
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

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

.movie-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12));
    transition: opacity 0.25s ease;
}

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

.movie-badge,
.movie-year {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 800;
}

.movie-badge {
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    background: var(--rose);
}

.movie-year {
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
    background: rgba(0, 0, 0, 0.74);
}

.movie-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    background: rgba(244, 63, 94, 0.88);
    transform: translate(-50%, -50%) scale(0.82);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.movie-info {
    padding: 18px;
}

.movie-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

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

.movie-info p {
    min-height: 46px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
}

.movie-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.movie-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f3f4f6;
}

.category-section,
.light-section {
    margin-top: 76px;
    padding: 76px 0;
    background: linear-gradient(135deg, #eef2ff, #faf5ff, #fff1f2);
}

.light-section {
    background: white;
}

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

.category-tile {
    position: relative;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 24px;
    color: white;
    text-align: center;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, var(--rose), var(--pink));
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.category-tile span {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.75), rgba(124, 58, 237, 0.72));
}

.category-tile strong,
.category-tile em {
    position: relative;
    z-index: 2;
}

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

.category-tile em {
    margin-top: 6px;
    font-style: normal;
    opacity: 0.88;
}

.category-tile:hover img {
    opacity: 0.56;
    transform: scale(1.08);
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: auto 150px 1fr;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
}

.rank-number {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--rose), var(--pink));
}

.rank-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: #111827;
}

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

.rank-content h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-content p {
    margin: 0 0 10px;
    color: var(--muted);
}

.page-hero {
    color: white;
    background: linear-gradient(135deg, #be123c, #db2777, #7c3aed);
    padding: 82px 20px;
    text-align: center;
}

.page-hero > div {
    max-width: 920px;
    margin: 0 auto;
}

.page-hero span {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 800;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 60px);
    line-height: 1.08;
}

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

.category-hero {
    background: linear-gradient(135deg, #be123c, #9333ea);
}

.ranking-hero {
    background: linear-gradient(135deg, #7c2d12, #be123c, #7c3aed);
}

.search-hero {
    background: linear-gradient(135deg, #1d4ed8, #7c3aed);
}

.sitemap-hero {
    background: linear-gradient(135deg, #0f172a, #881337);
}

.about-hero,
.service-hero,
.copyright-hero {
    background: linear-gradient(135deg, #111827, #be123c);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 26px;
    padding: 16px;
    border-radius: 22px;
    background: white;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.filter-search input,
.filter-controls select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: 0;
    background: #f9fafb;
    padding: 12px 16px;
}

.filter-controls {
    display: flex;
    gap: 10px;
}

.filter-count {
    min-width: 100px;
    color: var(--muted);
    font-size: 14px;
    text-align: right;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    padding: 18px;
    border-radius: 24px;
    background: white;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.category-overview-cover {
    overflow: hidden;
    border-radius: 18px;
    background: #111827;
    aspect-ratio: 16 / 10;
}

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

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

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

.category-overview-card strong {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--rose-dark);
}

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

.category-preview-links a,
.sitemap-categories a {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff1f2;
    color: var(--rose-dark);
    font-size: 13px;
    font-weight: 700;
}

.detail-top {
    padding: 28px 20px 72px;
    color: white;
    background: radial-gradient(circle at 20% 20%, rgba(244, 63, 94, 0.8), transparent 26%), linear-gradient(135deg, #0f172a, #831843 58%, #111827);
}

.breadcrumb {
    max-width: 1280px;
    margin: 0 auto 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: white;
}

.detail-layout {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
    background: #111827;
    aspect-ratio: 3 / 4;
}

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

.detail-info h1 {
    margin: 16px 0 16px;
    font-size: clamp(36px, 7vw, 70px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-info p {
    max-width: 830px;
    color: #e5e7eb;
    font-size: 18px;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0;
}

.detail-meta-grid span {
    min-height: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.detail-meta-grid strong {
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.tag-list span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #fecdd3;
    background: rgba(255, 255, 255, 0.1);
}

.player-section {
    padding: 70px 20px;
    color: white;
    background: #050505;
}

.player-section .section-heading {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.inverted p {
    color: rgba(255, 255, 255, 0.72);
}

.video-shell {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 26px;
    aspect-ratio: 16 / 9;
    background: black;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

.video-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: black;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: white;
    background: #111827;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.32), rgba(0, 0, 0, 0.68));
}

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

.big-play,
.player-state {
    position: relative;
    z-index: 2;
}

.big-play {
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 20px 54px rgba(244, 63, 94, 0.42);
    font-size: 42px;
    padding-left: 5px;
}

.player-state {
    font-weight: 800;
    font-size: 18px;
}

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

.content-card {
    padding: 28px;
    border-radius: 24px;
    background: white;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.content-card h2 {
    margin: 0 0 14px;
}

.content-card p {
    margin: 0;
    color: #374151;
    font-size: 16px;
}

.sitemap-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.sitemap-block {
    margin-bottom: 20px;
    padding: 22px;
    border-radius: 22px;
    background: white;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.sitemap-block h2 {
    margin: 0 0 14px;
    color: var(--rose-dark);
}

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

.sitemap-block a {
    color: #374151;
    font-size: 14px;
}

.sitemap-block a:hover {
    color: var(--rose-dark);
}

.site-footer {
    margin-top: 86px;
    color: white;
    background: linear-gradient(135deg, #111827, #1f2937, #111827);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 20px 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 32px;
}

.footer-grid p,
.footer-grid a,
.footer-grid span {
    display: block;
    color: #9ca3af;
    font-size: 14px;
}

.footer-grid a,
.footer-grid span {
    margin-top: 8px;
}

.footer-grid a:hover {
    color: white;
}

.footer-grid h3 {
    margin: 0 0 14px;
}

.footer-brand {
    margin-bottom: 14px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 38px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #9ca3af;
    font-size: 14px;
}

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

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

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

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

    .category-overview-card {
        grid-template-columns: 180px 1fr;
    }

    .detail-layout {
        grid-template-columns: 280px 1fr;
    }

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

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

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

    .mobile-menu-button {
        display: inline-flex;
        margin-left: auto;
    }

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

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

    .hero-carousel {
        height: 520px;
    }

    .hero-content {
        width: calc(100% - 46px);
    }

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

    .hero-arrow {
        display: none;
    }

    .hero-search {
        flex-direction: column;
        border-radius: 20px;
    }

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

    .stats-section,
    .movie-grid,
    .movie-grid.four,
    .category-grid {
        grid-template-columns: 1fr;
    }

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

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

    .filter-controls {
        flex-direction: column;
    }

    .filter-count {
        text-align: left;
    }

    .rank-row {
        grid-template-columns: auto 112px 1fr;
        gap: 12px;
    }

    .rank-content p {
        display: none;
    }

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

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

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

    .player-section {
        padding: 44px 14px;
    }

    .video-shell {
        border-radius: 18px;
    }

    .footer-grid,
    .footer-bottom,
    .sitemap-block div {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .page-hero {
        padding: 58px 18px;
    }

    .rank-row {
        grid-template-columns: 1fr;
    }

    .rank-number {
        width: 36px;
        height: 36px;
    }

    .rank-thumb {
        width: 100%;
    }

    .detail-meta-grid {
        grid-template-columns: 1fr;
    }
}
