:root {
    --red: #dc2626;
    --red-dark: #b91c1c;
    --orange: #f97316;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --surface: #ffffff;
    --soft: #f9fafb;
    --dark: #0f172a;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    --radius: 18px;
}

* {
    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", Arial, sans-serif;
    color: var(--text);
    background: var(--soft);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    max-width: 1280px;
    margin: 0 auto;
    height: 68px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--red), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-light {
    color: #ffffff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.28);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    flex: 1;
}

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

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

.nav-group {
    position: relative;
    padding: 22px 0;
}

.nav-dropdown {
    position: absolute;
    top: 62px;
    left: -18px;
    min-width: 180px;
    padding: 10px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.nav-group:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    color: #374151;
    font-size: 14px;
}

.nav-dropdown a:hover {
    color: var(--red);
    background: #fef2f2;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.header-search input,
.mobile-panel input,
.cta-search input,
.wide-search input,
.filter-search input,
.filter-panel select {
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--text);
    border-radius: 999px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 250px;
    padding: 10px 16px;
}

.header-search input:focus,
.mobile-panel input:focus,
.cta-search input:focus,
.wide-search input:focus,
.filter-search input:focus,
.filter-panel select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.header-search button,
.mobile-panel button,
.cta-search button,
.wide-search button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #f3f4f6;
    color: #111827;
}

.mobile-panel {
    display: none;
    padding: 16px 24px 22px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

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

.mobile-panel form {
    display: flex;
    gap: 8px;
}

.mobile-panel input {
    min-width: 0;
    flex: 1;
    padding: 10px 14px;
}

.mobile-panel a {
    padding: 9px 0;
    color: #374151;
    font-weight: 650;
}

.hero {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: #020617;
}

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

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

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

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 20%, rgba(249, 115, 22, 0.22), transparent 28%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.06)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 45%);
}

.hero-content {
    position: absolute;
    left: calc((100vw - min(1280px, 100vw)) / 2 + 24px);
    top: 50%;
    width: min(680px, calc(100% - 48px));
    transform: translateY(-50%);
    color: #ffffff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    font-weight: 800;
    box-shadow: 0 16px 30px rgba(220, 38, 38, 0.25);
}

.hero-content h1 {
    margin: 22px 0 16px;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-content p {
    margin: 0;
    max-width: 640px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
}

.hero-meta,
.movie-meta,
.detail-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.hero-meta {
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 650;
}

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

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

.primary-action {
    padding: 13px 28px;
    color: #ffffff;
    background: var(--blue);
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.28);
}

.primary-action:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}

.secondary-action {
    padding: 13px 24px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(14px);
}

.secondary-action:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    font-size: 38px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    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.52);
    transition: all 0.2s ease;
}

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

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 58px 24px;
}

.content-section.compact {
    padding-top: 54px;
    padding-bottom: 54px;
}

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

.section-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--red);
    font-weight: 900;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.035em;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-thumb {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111827;
}

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

.movie-card:hover .movie-thumb img,
.category-overview-card:hover img,
.rank-row:hover .rank-poster img {
    transform: scale(1.08);
}

.movie-score,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
}

.movie-score {
    right: 12px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
    left: 12px;
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.movie-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.88);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.84);
    transition: all 0.22s ease;
}

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

.movie-body {
    padding: 16px;
}

.movie-title,
.rank-title {
    display: -webkit-box;
    overflow: hidden;
    color: #111827;
    font-weight: 850;
    line-height: 1.35;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.movie-title:hover,
.rank-title:hover {
    color: var(--red);
}

.movie-desc {
    display: -webkit-box;
    min-height: 44px;
    margin: 8px 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    color: #6b7280;
    font-size: 13px;
}

.movie-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.movie-tags span,
.detail-tags span,
.category-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: var(--red);
    background: #fef2f2;
    font-size: 12px;
    font-weight: 750;
    padding: 5px 9px;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 130px 1fr;
    min-height: 188px;
}

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

.movie-card-horizontal .movie-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.soft-section {
    background: #ffffff;
}

.soft-blue {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.soft-green {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

.dark-section {
    background: linear-gradient(135deg, #111827, #030712);
    color: #ffffff;
}

.dark-section .section-heading p,
.dark-section .movie-meta {
    color: rgba(255, 255, 255, 0.7);
}

.dark-section .movie-card {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.dark-section .movie-title {
    color: #ffffff;
}

.dark-section .movie-desc {
    color: rgba(255, 255, 255, 0.72);
}

.feature-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}

.feature-strip .movie-card:nth-child(n + 7) {
    display: none;
}

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

.channel-card {
    display: grid;
    gap: 8px;
    min-height: 116px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, background 0.2s ease;
}

.channel-card:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-4px);
}

.channel-card span {
    font-size: 20px;
    font-weight: 900;
}

.channel-card small {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
}

.editor-layout {
    display: grid;
    grid-template-columns: minmax(260px, 420px) 1fr;
    gap: 24px;
}

.editor-list {
    display: grid;
    gap: 16px;
}

.cta-section {
    max-width: 1280px;
    margin: 10px auto 68px;
    padding: 42px;
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    gap: 24px;
    align-items: center;
    border-radius: 32px;
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    box-shadow: var(--shadow);
}

.cta-section h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
}

.cta-section p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
}

.cta-search,
.wide-search {
    display: flex;
    gap: 10px;
}

.cta-search input,
.wide-search input {
    min-width: 0;
    flex: 1;
    padding: 14px 18px;
}

.page-hero {
    padding: 88px 24px;
    text-align: center;
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 10%, rgba(249, 115, 22, 0.26), transparent 28%),
        linear-gradient(135deg, #111827, #1f2937);
}

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

.page-hero h1 {
    max-width: 980px;
    margin: 18px auto 12px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.045em;
}

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

.category-hero.red { background: linear-gradient(135deg, #991b1b, #f97316); }
.category-hero.pink { background: linear-gradient(135deg, #9d174d, #f472b6); }
.category-hero.purple { background: linear-gradient(135deg, #581c87, #8b5cf6); }
.category-hero.amber { background: linear-gradient(135deg, #92400e, #f59e0b); }
.category-hero.green { background: linear-gradient(135deg, #14532d, #22c55e); }
.category-hero.blue { background: linear-gradient(135deg, #1e3a8a, #38bdf8); }
.category-hero.orange { background: linear-gradient(135deg, #9a3412, #fb923c); }
.category-hero.slate { background: linear-gradient(135deg, #0f172a, #64748b); }
.category-hero.cyan { background: linear-gradient(135deg, #164e63, #06b6d4); }
.category-hero.indigo { background: linear-gradient(135deg, #312e81, #818cf8); }

.ranking-hero {
    background:
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.32), transparent 26%),
        linear-gradient(135deg, #111827, #7f1d1d);
}

.search-hero {
    background:
        radial-gradient(circle at 18% 20%, rgba(56, 189, 248, 0.24), transparent 28%),
        linear-gradient(135deg, #0f172a, #1e40af);
}

.wide-search {
    max-width: 720px;
    margin: 30px auto 0;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(140px, 190px));
    gap: 12px;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.filter-search input,
.filter-panel select {
    width: 100%;
    padding: 12px 14px;
}

.empty-state {
    margin: 30px 0;
    padding: 20px;
    border-radius: 18px;
    color: #6b7280;
    background: #ffffff;
    text-align: center;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    align-items: center;
    padding: 22px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    overflow: hidden;
    border-radius: 18px;
}

.category-covers img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.24s ease;
}

.category-overview-card h2 {
    margin: 12px 0 8px;
    font-size: 28px;
    line-height: 1.1;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 72px 92px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-number {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-weight: 900;
}

.rank-poster {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 2 / 3;
    background: #111827;
}

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

.rank-info p {
    display: -webkit-box;
    margin: 6px 0 10px;
    overflow: hidden;
    color: var(--muted);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.small-action {
    padding: 10px 18px;
    color: #ffffff;
    background: var(--blue);
    white-space: nowrap;
}

.small-action:hover {
    background: var(--blue-dark);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    background: #020617;
}

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

.detail-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 16%, rgba(249, 115, 22, 0.24), transparent 28%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.52));
}

.detail-inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 24px 62px;
    color: #ffffff;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

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

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

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.36);
}

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

.detail-copy h1 {
    max-width: 860px;
    margin: 18px 0 14px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.06;
    font-weight: 900;
    letter-spacing: -0.045em;
}

.detail-copy p {
    max-width: 830px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
}

.detail-stats {
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.82);
}

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

.detail-section {
    padding-top: 36px;
}

.watch-panel {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
    aspect-ratio: 16 / 9;
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.28), rgba(0, 0, 0, 0.42));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 22px 46px rgba(220, 38, 38, 0.32);
    font-size: 32px;
}

.play-overlay strong {
    font-size: 24px;
}

.play-overlay small {
    color: rgba(255, 255, 255, 0.76);
}

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

.player-status {
    position: absolute;
    left: 18px;
    bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(0, 0, 0, 0.5);
    font-size: 13px;
    pointer-events: none;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    margin-top: 28px;
}

.text-panel,
.info-panel {
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.text-panel h2,
.info-panel h2 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 900;
}

.text-panel h2:not(:first-child) {
    margin-top: 28px;
}

.text-panel p {
    margin: 0;
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
}

.info-panel dl {
    display: grid;
    gap: 14px;
    margin: 0;
}

.info-panel div {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

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

.info-panel dd {
    margin: 0;
    color: #111827;
    font-weight: 700;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(180deg, #111827, #020617);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 52px 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 38px;
}

.footer-inner h3 {
    margin: 0 0 16px;
    color: #ffffff;
}

.footer-inner p,
.footer-inner a {
    color: #9ca3af;
}

.footer-inner a:hover {
    color: #ffffff;
}

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

.footer-brand p {
    max-width: 460px;
    margin: 16px 0 0;
}

.footer-bottom {
    padding: 18px 24px 28px;
    text-align: center;
    color: #6b7280;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 14px 28px rgba(220, 38, 38, 0.22);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: all 0.2s ease;
}

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

[hidden],
.is-filter-hidden {
    display: none !important;
}

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

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

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

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

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

    .nav-wrap {
        height: 64px;
    }

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .hero {
        height: 560px;
    }

    .hero-arrow {
        display: none;
    }

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

    .editor-layout,
    .cta-section,
    .detail-layout,
    .detail-content-grid,
    .footer-inner,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: 220px;
    }

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

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

    .rank-row .small-action {
        grid-column: 2 / -1;
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .brand {
        font-size: 20px;
    }

    .brand-icon {
        width: 32px;
        height: 32px;
        border-radius: 12px;
    }

    .nav-wrap {
        padding: 0 16px;
    }

    .hero {
        height: 520px;
    }

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

    .hero-content p,
    .page-hero p,
    .detail-copy p {
        font-size: 16px;
    }

    .content-section {
        padding: 42px 16px;
    }

    .movie-grid,
    .movie-grid.three,
    .movie-grid.four,
    .feature-strip,
    .channel-grid {
        grid-template-columns: 1fr;
    }

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

    .cta-section {
        margin: 0 16px 46px;
        padding: 28px;
    }

    .cta-search,
    .wide-search,
    .mobile-panel form {
        flex-direction: column;
    }

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

    .category-covers img {
        height: 150px;
    }

    .page-hero {
        padding: 64px 18px;
    }

    .detail-inner {
        padding: 24px 16px 44px;
    }

    .detail-poster {
        width: 170px;
    }

    .watch-panel {
        border-radius: 18px;
    }

    .play-overlay span {
        width: 66px;
        height: 66px;
        font-size: 24px;
    }

    .rank-row {
        grid-template-columns: 44px 64px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .rank-number {
        width: 40px;
        height: 40px;
        border-radius: 14px;
        font-size: 14px;
    }
}
