:root {
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-line: #e5e7eb;
    --color-soft: #f8fafc;
    --color-white: #ffffff;
    --color-red: #dc2626;
    --color-red-dark: #b91c1c;
    --color-mint: #0d9668;
    --color-mint-light: #ccfbef;
    --color-cool: #06b6d4;
    --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 8px 28px rgba(15, 23, 42, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: min(1280px, calc(100vw - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-text);
    background:
        radial-gradient(circle at top left, rgba(204, 251, 239, 0.65), transparent 34rem),
        linear-gradient(135deg, #f9fafb 0%, #f0fdf9 48%, #ffffff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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;
    border-bottom: 1px solid rgba(229, 231, 235, 0.86);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: var(--container);
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-red), #ec4899 48%, var(--color-cool));
    box-shadow: 0 12px 26px rgba(220, 38, 38, 0.24);
}

.brand-text {
    font-size: 20px;
    letter-spacing: -0.02em;
}

.desktop-nav,
.category-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.category-nav {
    max-width: 380px;
    overflow: hidden;
}

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

.nav-link:hover,
.nav-link.is-active {
    color: var(--color-red);
    background: #fef2f2;
    transform: translateY(-1px);
}

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

.top-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select,
.search-panel input {
    border: 1px solid var(--color-line);
    outline: 0;
    background: #ffffff;
    color: var(--color-text);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.top-search input {
    width: 230px;
    padding: 11px 16px;
    border-radius: 999px;
}

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

.top-search button,
.mobile-search button {
    border: 0;
    border-radius: 999px;
    padding: 11px 16px;
    color: #ffffff;
    background: var(--color-red);
    font-weight: 800;
}

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

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #111827;
}

.mobile-menu {
    display: none;
    width: var(--container);
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-search {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.mobile-search input {
    flex: 1;
    padding: 12px 14px;
    border-radius: 14px;
}

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

.mobile-link-grid a {
    padding: 12px 14px;
    border-radius: 14px;
    background: #ffffff;
    color: #374151;
    font-weight: 700;
}

.hero-carousel {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.hero-slides {
    position: relative;
    min-height: 640px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-bg-image,
.detail-backdrop,
.category-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay,
.detail-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.72) 42%, rgba(17, 24, 39, 0.12)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.18) 44%, rgba(17, 24, 39, 0.62));
}

.hero-content {
    position: relative;
    width: var(--container);
    min-height: 640px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(270px, 390px);
    align-items: center;
    gap: 56px;
    padding: 86px 0 116px;
}

.hero-kicker,
.section-kicker,
.sub-hero span,
.category-hero-content span {
    display: inline-flex;
    width: max-content;
    padding: 8px 12px;
    border-radius: 999px;
    color: #0f766e;
    background: rgba(204, 251, 239, 0.92);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 820px;
    margin: 18px 0 18px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero-copy p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.85;
}

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

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.primary-button,
.ghost-button,
.text-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.primary-button {
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-red), #ec4899);
    box-shadow: 0 16px 34px rgba(220, 38, 38, 0.28);
}

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

.ghost-button {
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
}

.ghost-button.light {
    color: #ffffff;
}

.hero-poster,
.detail-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--color-red), var(--color-cool));
}

.hero-poster img,
.detail-poster img,
.poster-frame img,
.compact-thumb img,
.category-tile img,
.category-overview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.2s ease;
}

.hero-poster span,
.detail-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 12px 16px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    text-align: center;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 30px;
    line-height: 1;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
}

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

.hero-mini-list {
    position: absolute;
    right: max(16px, calc((100vw - 1280px) / 2));
    bottom: 32px;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, 150px);
    gap: 10px;
}

.hero-mini {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 8px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(12px);
}

.hero-mini.is-active {
    border-color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.18);
}

.hero-mini img {
    width: 42px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
}

.hero-mini span {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: left;
    font-size: 12px;
    font-weight: 800;
}

.stats-strip {
    width: var(--container);
    margin: -34px auto 0;
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.stats-strip a {
    min-height: 94px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(229, 231, 235, 0.85);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.stats-strip strong {
    color: var(--color-red);
    font-size: 28px;
    line-height: 1;
}

.stats-strip span {
    color: var(--color-muted);
    font-weight: 700;
}

.content-section {
    width: var(--container);
    margin: 0 auto;
    padding: 74px 0 0;
}

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

.section-heading h2,
.sub-hero h1,
.category-hero-content h1 {
    margin: 12px 0 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-heading p,
.sub-hero p,
.category-hero-content p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--color-muted);
    line-height: 1.8;
}

.section-more,
.text-button {
    color: var(--color-red);
}

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

.category-tile {
    position: relative;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 20px;
    color: #ffffff;
    background: #111827;
    box-shadow: var(--shadow-soft);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.18));
}

.category-tile img {
    position: absolute;
    inset: 0;
}

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

.category-count {
    width: max-content;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

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

.category-tile em {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.6;
    font-style: normal;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.82);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(220, 38, 38, 0.24);
    box-shadow: var(--shadow-card);
}

.poster-frame {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fef2f2, #ccfbef);
}

.poster-frame::after,
.compact-thumb::after,
.category-cover-stack::after,
.detail-poster::after,
.hero-poster::after {
    content: attr(data-title);
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-red), var(--color-mint), var(--color-cool));
    text-align: center;
    font-weight: 900;
    line-height: 1.45;
}

.poster-frame.is-missing::after,
.compact-thumb.is-missing::after,
.detail-poster.is-missing::after,
.hero-poster.is-missing::after {
    display: flex;
}

.poster-frame.is-missing img,
.compact-thumb.is-missing img,
.detail-poster.is-missing img,
.hero-poster.is-missing img {
    opacity: 0;
}

.movie-card:hover .poster-frame img,
.category-tile:hover img,
.hero-poster:hover img {
    transform: scale(1.06);
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 3;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 7px 11px;
    background: rgba(220, 38, 38, 0.92);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.28);
}

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

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

.movie-meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 800;
}

.movie-meta-line a {
    color: var(--color-mint);
}

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

.movie-card h3 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.tag-row span,
.detail-tags span {
    color: #0f766e;
    background: #ecfdf5;
}

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

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

.ranking-panel,
.text-card,
.search-panel,
.filter-bar,
.category-overview-card {
    border: 1px solid rgba(229, 231, 235, 0.88);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.ranking-panel {
    padding: 20px;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.panel-heading span {
    font-size: 20px;
    font-weight: 900;
}

.panel-heading a {
    color: var(--color-red);
    font-size: 14px;
    font-weight: 800;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 16px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
    background: #f9fafb;
    transform: translateX(3px);
}

.compact-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    width: 76px;
    height: 54px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fef2f2, #ccfbef);
}

.compact-info {
    min-width: 0;
}

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

.compact-info strong {
    font-size: 14px;
}

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

.small-rank {
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--color-red);
    background: #fef2f2;
    font-size: 12px;
    font-weight: 900;
}

.sub-hero {
    width: var(--container);
    margin: 0 auto;
    padding: 86px 0 18px;
}

.sub-hero h1 {
    max-width: 900px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    overflow: hidden;
    border-radius: 18px;
    background: #111827;
}

.category-cover-stack img {
    height: 108px;
    object-fit: cover;
}

.category-overview-card span {
    color: var(--color-mint);
    font-weight: 900;
    font-size: 13px;
}

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

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

.category-hero {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.category-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.46)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.06));
}

.category-hero-content {
    position: relative;
    z-index: 2;
    width: var(--container);
    min-height: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.category-hero-content p {
    color: rgba(255, 255, 255, 0.84);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
    padding: 14px;
}

.filter-bar input,
.filter-bar select {
    min-height: 46px;
    border-radius: 14px;
    padding: 0 14px;
}

.filter-count {
    color: var(--color-muted);
    font-weight: 800;
    white-space: nowrap;
}

.filter-count strong {
    color: var(--color-red);
}

.search-panel {
    padding: 22px;
    margin-bottom: 28px;
}

.search-panel form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.search-panel input {
    min-height: 54px;
    border-radius: 999px;
    padding: 0 20px;
}

.hot-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hot-searches button {
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    color: #0f766e;
    background: #ecfdf5;
    font-weight: 800;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.detail-shell {
    position: relative;
    z-index: 3;
    width: var(--container);
    min-height: 560px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
    padding: 58px 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 800;
}

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

.detail-info h1 {
    max-width: 900px;
    margin: 18px 0 16px;
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.detail-one-line {
    max-width: 840px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.detail-meta span {
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 13px;
    font-weight: 900;
}

.detail-tags {
    margin-top: 18px;
}

.muted-tags span {
    color: #374151;
    background: #f3f4f6;
}

.detail-main {
    display: grid;
    gap: 20px;
}

.player-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at center, rgba(220, 38, 38, 0.22), transparent 32%),
        #050505;
    box-shadow: var(--shadow-card);
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.20));
}

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

.play-icon {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-red), #ec4899);
    box-shadow: 0 20px 38px rgba(220, 38, 38, 0.28);
    font-size: 32px;
    text-indent: 4px;
}

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

.player-start em {
    color: rgba(255, 255, 255, 0.72);
    font-style: normal;
}

.player-status {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.55);
    font-size: 12px;
    font-weight: 900;
    pointer-events: none;
}

.text-card {
    padding: 24px;
}

.text-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.text-card p {
    margin: 0;
    color: #374151;
    line-height: 1.95;
}

.meta-card dl {
    margin: 0;
    display: grid;
    gap: 12px;
}

.meta-card dl div {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.meta-card dt {
    color: var(--color-muted);
    font-weight: 900;
}

.meta-card dd {
    margin: 0;
}

.sticky-panel {
    position: sticky;
    top: 96px;
}

.site-footer {
    margin-top: 86px;
    color: #d1d5db;
    background: #111827;
}

.footer-shell {
    width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 220px minmax(0, 1.2fr);
    gap: 38px;
    padding: 56px 0;
}

.brand-footer {
    color: #ffffff;
}

.footer-brand p {
    max-width: 520px;
    color: #9ca3af;
    line-height: 1.8;
}

.footer-total {
    margin-top: 14px;
}

.footer-column h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.footer-column a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    color: #9ca3af;
    font-weight: 700;
}

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

.footer-categories div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}

.copyright {
    width: var(--container);
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #6b7280;
}

[data-filter-grid] .movie-card.is-hidden {
    display: none;
}

@media (max-width: 1180px) {
    .desktop-nav,
    .category-nav,
    .top-search {
        display: none;
    }

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

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

    .hero-mini-list {
        display: none;
    }

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

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

@media (max-width: 960px) {
    .hero-content,
    .detail-shell,
    .split-section,
    .ranking-layout,
    .detail-layout,
    .footer-shell,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .hero-content {
        gap: 28px;
        padding-top: 66px;
    }

    .hero-poster,
    .detail-poster {
        max-width: 320px;
    }

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

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

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

    .footer-categories div {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    :root {
        --container: min(100vw - 24px, 1280px);
    }

    .nav-shell {
        min-height: 64px;
    }

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

    .hero-carousel,
    .hero-slides,
    .hero-content {
        min-height: 760px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        padding: 44px 0 96px;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .hero-copy p,
    .detail-one-line {
        font-size: 16px;
    }

    .hero-controls {
        bottom: 20px;
    }

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

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

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

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

    .movie-card h3 {
        font-size: 16px;
    }

    .movie-card p {
        font-size: 13px;
    }

    .detail-shell {
        gap: 22px;
        padding: 38px 0;
    }

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

    .detail-info h1 {
        font-size: 40px;
    }

    .filter-bar,
    .search-panel form {
        grid-template-columns: 1fr;
    }

    .player-card {
        border-radius: 18px;
    }

    .text-card {
        padding: 18px;
    }
}

@media (max-width: 430px) {
    .category-grid,
    .category-overview-grid,
    .movie-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }

    .stats-strip {
        grid-template-columns: 1fr;
    }
}
