
:root {
    --color-rose: #f43f5e;
    --color-rose-dark: #e11d48;
    --color-pink: #ec4899;
    --color-orange: #fb923c;
    --color-yellow: #f59e0b;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-soft: #f8fafc;
    --color-line: #e5e7eb;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.10);
    --shadow-card: 0 10px 28px rgba(15, 23, 42, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.72);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.header-inner {
    width: min(100% - 32px, var(--max-width));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    background: linear-gradient(135deg, var(--color-rose), var(--color-pink));
    box-shadow: 0 10px 18px rgba(244, 63, 94, 0.28);
}

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

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

.nav-link,
.mobile-nav-link {
    color: #374151;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: var(--color-rose);
}

.header-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-line);
    background: #ffffff;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.header-search input {
    width: 150px;
    border: 0;
    outline: 0;
    padding: 9px 12px 9px 16px;
}

.header-search button,
.mobile-search button,
.big-search button {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-rose), var(--color-pink));
    font-weight: 700;
}

.header-search button {
    padding: 9px 15px;
}

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

.mobile-menu-button span {
    width: 18px;
    height: 2px;
    background: #111827;
    border-radius: 999px;
}

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

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

.mobile-nav-link {
    display: block;
    padding: 12px 4px;
}

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

.mobile-search input {
    min-width: 0;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    padding: 10px 12px;
}

.mobile-search button {
    border-radius: 12px;
    padding: 10px 14px;
}

.page {
    min-height: 100vh;
}

.section-inner {
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
}

.hero {
    position: relative;
    height: 640px;
    overflow: hidden;
    background: #111827;
}

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

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 40%, rgba(244, 63, 94, 0.18), transparent 35%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding-top: 68px;
}

.hero-text {
    width: min(100%, 680px);
    color: #ffffff;
}

.hero-pill,
.category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--color-rose);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero-pill {
    padding: 6px 14px;
    margin-bottom: 18px;
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

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

.hero-meta,
.detail-meta-list,
.hero-stat-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta span,
.hero-stat-row span {
    color: rgba(255, 255, 255, 0.86);
}

.hero-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.56);
}

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

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

.primary-button {
    padding: 13px 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-rose), var(--color-pink));
    box-shadow: 0 14px 30px rgba(244, 63, 94, 0.28);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(244, 63, 94, 0.35);
}

.ghost-button {
    padding: 12px 22px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.20);
}

.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 34px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

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

.quick-search-panel {
    margin-top: -36px;
    position: relative;
    z-index: 5;
}

.big-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.big-search input {
    min-width: 0;
    border: 1px solid var(--color-line);
    border-radius: 16px;
    outline: 0;
    padding: 14px 18px;
    background: #f9fafb;
}

.big-search button {
    border-radius: 16px;
    padding: 0 26px;
}

.section {
    padding: 72px 0;
}

.white-section {
    background: #ffffff;
}

.soft-section,
.standard-page {
    background: linear-gradient(180deg, #f9fafb, #ffffff);
}

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

.section-heading h2,
.section-heading h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p {
    margin: 10px 0 0;
    color: var(--color-muted);
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--color-rose);
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.centered-heading {
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.compact-heading {
    margin-bottom: 18px;
}

.text-link {
    color: var(--color-rose);
}

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

.category-card,
.category-overview-card,
.content-card,
.sidebar-card,
.player-card,
.ranking-panel,
.filter-panel,
.search-page-panel {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.82);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

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

.category-card::after {
    content: "";
    position: absolute;
    inset: auto -30px -55px auto;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.18), rgba(236, 72, 153, 0.12));
}

.category-card:hover,
.movie-card:hover,
.horizontal-card:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.13);
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-rose), var(--color-pink));
    font-weight: 900;
    box-shadow: 0 12px 22px rgba(244, 63, 94, 0.22);
}

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

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

.category-card span {
    color: var(--color-rose);
    font-weight: 800;
}

.category-covers {
    position: absolute;
    right: 18px;
    bottom: 16px;
    display: flex;
    isolation: isolate;
}

.category-covers img {
    width: 48px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid #ffffff;
    margin-left: -14px;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.18);
}

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

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

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

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

.movie-poster {
    position: relative;
    display: block;
    height: 250px;
    overflow: hidden;
    background: #111827;
}

.card-compact .movie-poster {
    height: 210px;
}

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

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.58));
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.category-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-rose);
    backdrop-filter: blur(8px);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-yellow), var(--color-rose));
    font-weight: 900;
    font-size: 12px;
}

.play-float {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(8px);
    transform: translate(-50%, -50%) scale(0.82);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

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

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

.movie-card-body p {
    margin: 0 0 12px;
    color: var(--color-muted);
    font-size: 14px;
}

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

.movie-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: #cbd5e1;
}

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

.ranking-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: grid;
    gap: 8px;
}

.ranking-list a {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.ranking-list a:hover {
    background: #fff1f2;
}

.rank-number {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--color-rose);
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.rank-score {
    color: var(--color-yellow);
    font-weight: 900;
}

.full-button {
    width: 100%;
}

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

.horizontal-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    padding: 12px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #ffffff, #f9fafb);
    border: 1px solid rgba(229, 231, 235, 0.82);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.horizontal-thumb {
    position: relative;
    height: 86px;
    overflow: hidden;
    border-radius: 14px;
    background: #111827;
}

.horizontal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.horizontal-thumb span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.20);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.horizontal-card:hover .horizontal-thumb span {
    opacity: 1;
}

.horizontal-card strong {
    display: block;
    line-height: 1.35;
}

.horizontal-card strong a:hover {
    color: var(--color-rose);
}

.horizontal-card p {
    margin: 6px 0;
    color: var(--color-muted);
    font-size: 14px;
}

.horizontal-card small {
    color: #9ca3af;
}

.page-hero {
    padding: 136px 0 68px;
    color: #ffffff;
    background:
        radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.18), transparent 25%),
        linear-gradient(135deg, #111827 0%, #881337 48%, #be185d 100%);
}

.slim-hero p,
.category-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.84);
}

.hero-stat-row {
    margin-top: 18px;
}

.hero-stat-row span {
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
}

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

.category-overview-cover {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 168px;
    background: #111827;
}

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

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

.category-overview-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 800;
}

.category-overview-meta span {
    color: var(--color-muted);
}

.category-overview-meta a {
    color: var(--color-rose);
}

.filter-panel,
.search-page-panel {
    padding: 18px;
    margin-bottom: 26px;
}

.filter-row,
.search-page-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

.search-page-panel {
    grid-template-columns: 1fr 180px 160px;
}

.filter-row input,
.search-page-panel input,
.search-page-panel select {
    min-width: 0;
    width: 100%;
    border: 1px solid var(--color-line);
    border-radius: 14px;
    outline: 0;
    padding: 12px 14px;
    background: #f9fafb;
}

.filter-row input:focus,
.search-page-panel input:focus,
.search-page-panel select:focus {
    border-color: rgba(244, 63, 94, 0.45);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.10);
}

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

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.filter-chip {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    color: #4b5563;
    background: #f3f4f6;
    cursor: pointer;
    font-weight: 800;
}

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

.search-status {
    margin: 0 0 22px;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    padding: 118px 0 64px;
    overflow: hidden;
    background: #111827;
}

.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px);
    transform: scale(1.08);
    opacity: 0.48;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 25%, rgba(244, 63, 94, 0.28), transparent 32%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(17, 24, 39, 0.72));
}

.detail-hero-content {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
    color: rgba(255, 255, 255, 0.74);
}

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

.detail-hero-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-cover {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.detail-intro {
    color: #ffffff;
}

.detail-intro h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-intro p {
    max-width: 830px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
}

.detail-meta-list span {
    padding: 7px 12px;
    color: rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 22px 0 28px;
}

.tag {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--color-rose);
    background: #fff1f2;
    font-weight: 800;
    font-size: 13px;
}

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

.detail-main,
.detail-sidebar {
    min-width: 0;
}

.player-card {
    overflow: hidden;
    margin-bottom: 26px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #000000;
    border-radius: var(--radius-xl);
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58));
    cursor: pointer;
    transition: opacity 0.25s ease;
}

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

.player-start span {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-rose), var(--color-pink));
    box-shadow: 0 18px 40px rgba(244, 63, 94, 0.32);
    font-size: 26px;
}

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

.player-message {
    position: absolute;
    left: 16px;
    bottom: 16px;
    max-width: calc(100% - 32px);
    color: #ffffff;
    background: rgba(0, 0, 0, 0.56);
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 14px;
    display: none;
}

.player-message.is-visible {
    display: block;
}

.detail-section,
.content-card,
.sidebar-card {
    padding: 28px;
}

.detail-section {
    margin-bottom: 24px;
    background: #ffffff;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(229, 231, 235, 0.82);
    box-shadow: var(--shadow-card);
}

.detail-section h2,
.content-card h2,
.sidebar-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.detail-section p,
.content-card p {
    margin: 0 0 16px;
    color: #374151;
    line-height: 1.9;
}

.detail-sidebar {
    position: sticky;
    top: 92px;
}

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

.sidebar-list .horizontal-card {
    grid-template-columns: 108px 1fr;
    box-shadow: none;
    background: #f9fafb;
}

.sidebar-list .horizontal-thumb {
    height: 76px;
}

.content-layout {
    max-width: 920px;
}

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

.sitemap-group {
    padding: 24px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-line);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.sitemap-group h2 {
    margin: 0 0 14px;
}

.sitemap-group h2 a:hover,
.sitemap-group li a:hover {
    color: var(--color-rose);
}

.sitemap-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 20px;
}

.sitemap-group li {
    break-inside: avoid;
    margin: 0 0 8px;
}

.sitemap-group span {
    color: #9ca3af;
    font-size: 12px;
}

.site-footer {
    background: linear-gradient(180deg, #f9fafb, #f3f4f6);
    border-top: 1px solid var(--color-line);
}

.footer-inner {
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 1fr 1fr;
    gap: 30px;
}

.footer-brand p,
.footer-column a,
.footer-bottom {
    color: var(--color-muted);
}

.footer-brand p {
    max-width: 430px;
}

.footer-column h3 {
    margin: 0 0 12px;
}

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

.footer-column a:hover {
    color: var(--color-rose);
}

.footer-bottom {
    border-top: 1px solid var(--color-line);
    padding: 18px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-rose), var(--color-pink));
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(244, 63, 94, 0.30);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

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

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

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

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

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

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

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

@media (max-width: 760px) {
    .header-inner {
        height: 64px;
    }

    .hero {
        height: 620px;
    }

    .hero-content {
        padding-top: 64px;
    }

    .hero-actions,
    .split-heading,
    .filter-row,
    .search-page-panel,
    .big-search {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .primary-button,
    .ghost-button,
    .big-search button {
        width: 100%;
    }

    .category-grid,
    .category-overview-grid,
    .movie-grid,
    .catalog-grid,
    .horizontal-grid,
    .footer-inner,
    .sitemap-layout {
        grid-template-columns: 1fr;
    }

    .detail-hero {
        padding-top: 100px;
    }

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

    .detail-cover {
        max-width: 240px;
    }

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

    .horizontal-card,
    .sidebar-list .horizontal-card {
        grid-template-columns: 110px 1fr;
    }

    .sitemap-group ul {
        columns: 1;
    }
}

@media (max-width: 480px) {
    .section-inner,
    .header-inner,
    .mobile-nav,
    .footer-inner {
        width: min(100% - 24px, var(--max-width));
    }

    .hero {
        height: 590px;
    }

    .hero h1,
    .detail-intro h1 {
        font-size: 34px;
    }

    .movie-poster {
        height: 230px;
    }
}
