:root {
    --color-bg: #0c0a09;
    --color-bg-soft: #1c1917;
    --color-panel: rgba(41, 37, 36, 0.82);
    --color-panel-strong: rgba(28, 25, 23, 0.95);
    --color-border: rgba(180, 83, 9, 0.35);
    --color-text: #fafaf9;
    --color-muted: #a8a29e;
    --color-dim: #78716c;
    --color-amber: #f59e0b;
    --color-amber-soft: #fcd34d;
    --color-red: #b91c1c;
    --shadow-card: 0 20px 45px rgba(0, 0, 0, 0.34);
    --shadow-amber: 0 20px 40px rgba(120, 53, 15, 0.38);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --site-width: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--color-text);
    background:
        radial-gradient(circle at top left, rgba(180, 83, 9, 0.26), transparent 28rem),
        radial-gradient(circle at top right, rgba(127, 29, 29, 0.28), transparent 26rem),
        linear-gradient(135deg, #0c0a09 0%, #1c1917 45%, #0c0a09 100%);
}

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(180, 83, 9, 0.3);
    background: rgba(120, 53, 15, 0.95);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-amber), var(--color-red));
    box-shadow: 0 10px 26px rgba(185, 28, 28, 0.36);
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-text strong {
    color: #fffbeb;
    font-size: 20px;
    letter-spacing: 0.03em;
}

.brand-text em {
    color: rgba(253, 230, 138, 0.84);
    font-style: normal;
    font-size: 12px;
}

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

.nav-link,
.mobile-nav-link {
    border-radius: 12px;
    color: #fffbeb;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 14px;
    font-weight: 650;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(146, 64, 14, 0.72);
    color: #fcd34d;
}

.header-search,
.mobile-search,
.large-search {
    display: flex;
    align-items: center;
    border: 1px solid rgba(180, 83, 9, 0.5);
    border-radius: 14px;
    background: rgba(146, 64, 14, 0.32);
    overflow: hidden;
}

.header-search input,
.mobile-search input,
.large-search input {
    min-width: 0;
    color: #fffbeb;
    border: 0;
    outline: 0;
    background: transparent;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.large-search input::placeholder {
    color: rgba(252, 211, 77, 0.62);
}

.header-search input {
    width: 220px;
    padding: 10px 12px;
}

.header-search button,
.mobile-search button,
.large-search button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-amber), var(--color-red));
}

.header-search button {
    align-self: stretch;
    min-width: 44px;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(253, 230, 138, 0.32);
    border-radius: 12px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.18);
}

.mobile-nav-panel {
    display: none;
    width: min(var(--site-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-nav-panel nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.mobile-nav-link {
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.16);
}

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

.mobile-search button {
    align-self: stretch;
    padding: 0 18px;
}

main,
.page-main,
.detail-main {
    width: min(var(--site-width), calc(100% - 32px));
    margin: 0 auto;
}

.hero-carousel {
    position: relative;
    min-height: 650px;
    margin: 24px auto 44px;
    border: 1px solid rgba(180, 83, 9, 0.35);
    border-radius: 32px;
    overflow: hidden;
    background: #000000;
    box-shadow: var(--shadow-card);
}

.hero-stage,
.hero-slide {
    position: absolute;
    inset: 0;
}

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

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

.hero-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.78;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.58) 45%, rgba(0, 0, 0, 0.2)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 40%),
        radial-gradient(circle at 20% 40%, rgba(245, 158, 11, 0.28), transparent 22rem);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 50px;
    padding: 76px clamp(28px, 6vw, 86px) 118px;
}

.hero-copy {
    max-width: 720px;
}

.hero-kicker,
.movie-card-topline,
.hero-tags,
.tag-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-kicker span,
.hero-tags span,
.tag-row span,
.detail-badge {
    border: 1px solid rgba(245, 158, 11, 0.38);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(146, 64, 14, 0.28);
}

.hero-kicker span {
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
}

.hero-copy h1 {
    margin: 20px 0 16px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0;
    color: #d6d3d1;
    font-size: 18px;
    line-height: 1.85;
}

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

.hero-tags span,
.tag-row span {
    padding: 6px 10px;
    font-size: 12px;
}

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

.primary-button,
.secondary-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
    min-height: 46px;
    padding: 0 22px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-amber), var(--color-red));
    box-shadow: 0 14px 30px rgba(185, 28, 28, 0.34);
}

.secondary-button {
    min-height: 46px;
    padding: 0 20px;
    color: #fde68a;
    border: 1px solid rgba(245, 158, 11, 0.38);
    background: rgba(0, 0, 0, 0.36);
}

.primary-button:hover,
.secondary-button:hover,
.section-more:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-amber);
}

.small-button {
    min-height: 38px;
    padding: 0 16px;
    border-radius: 12px;
}

.hero-poster {
    position: relative;
    display: block;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.48);
    transform: rotate(1.5deg);
}

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

.hero-poster span {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.7);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-50%);
    font-size: 30px;
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

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

.hero-dot {
    width: 34px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
}

.hero-dot.active {
    background: var(--color-amber);
}

.hero-thumbs {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-thumb {
    width: 92px;
    padding: 0;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 14px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.46);
    overflow: hidden;
    opacity: 0.72;
}

.hero-thumb.active {
    opacity: 1;
    border-color: var(--color-amber);
}

.hero-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.hero-thumb span {
    display: block;
    padding: 6px;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-search-band,
.page-hero,
.filter-panel,
.content-section,
.category-strip,
.ranking-panel,
.detail-article,
.detail-sidebar,
.site-footer,
.category-overview-card {
    border: 1px solid var(--color-border);
    background: var(--color-panel);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(14px);
}

.home-search-band {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    gap: 24px;
    align-items: center;
    margin: 0 0 42px;
    padding: 28px;
    border-radius: var(--radius-lg);
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--color-amber-soft);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.home-search-band h2,
.section-header h2,
.page-hero h1,
.detail-article h2,
.detail-sidebar h2 {
    margin: 0;
    color: #fffbeb;
    line-height: 1.12;
}

.home-search-band h2,
.section-header h2 {
    font-size: clamp(26px, 3vw, 38px);
}

.home-search-band p,
.page-hero p,
.category-overview-card p,
.detail-article p {
    color: var(--color-muted);
    line-height: 1.78;
}

.large-search input {
    flex: 1;
    padding: 16px 18px;
}

.large-search button {
    align-self: stretch;
    padding: 0 24px;
    border: 0;
    font-weight: 800;
}

.category-strip,
.content-section,
.ranking-panel {
    margin: 42px 0;
    padding: 28px;
    border-radius: var(--radius-lg);
}

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

.section-more {
    min-height: 40px;
    padding: 0 14px;
    color: var(--color-amber-soft);
    border: 1px solid rgba(245, 158, 11, 0.32);
    background: rgba(146, 64, 14, 0.24);
}

.category-tile-grid,
.category-overview-grid,
.movie-grid,
.top-rank-grid {
    display: grid;
    gap: 18px;
}

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

.category-tile {
    display: grid;
    gap: 8px;
    min-height: 148px;
    padding: 20px;
    border: 1px solid rgba(180, 83, 9, 0.28);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(120, 53, 15, 0.42), rgba(28, 25, 23, 0.72)),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.22), transparent 10rem);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-overview-card:hover,
.rank-row:hover,
.top-rank-card:hover,
.ranking-table-row:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.65);
    box-shadow: var(--shadow-amber);
}

.category-tile span,
.category-overview-head span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-amber), var(--color-red));
}

.category-tile strong,
.category-overview-head strong {
    font-size: 20px;
}

.category-tile em,
.category-overview-card p {
    color: var(--color-muted);
    font-style: normal;
}

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

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

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

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

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid rgba(68, 64, 60, 0.9);
    border-radius: 20px;
    background: rgba(28, 25, 23, 0.8);
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card[hidden] {
    display: none;
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: #000000;
}

.movie-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.86));
}

.play-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.68);
    opacity: 0;
    transform: scale(0.86);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
    transform: scale(1);
}

.poster-meta {
    position: absolute;
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    padding: 6px 9px;
    border-radius: 999px;
    color: #fffbeb;
    background: rgba(0, 0, 0, 0.66);
    font-size: 12px;
}

.movie-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
    padding: 14px;
}

.movie-card-topline {
    justify-content: space-between;
    color: var(--color-dim);
    font-size: 12px;
}

.movie-card h3 {
    margin: 0;
    color: #f5f5f4;
    font-size: 16px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--color-amber-soft);
}

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

.tag-row {
    margin-top: auto;
}

.movie-category {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 2px;
    color: var(--color-amber-soft);
    font-size: 13px;
    font-weight: 700;
}

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

.two-column-layout .content-section,
.two-column-layout .ranking-panel {
    margin: 0;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 42px 64px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(68, 64, 60, 0.8);
    border-radius: 16px;
    background: rgba(28, 25, 23, 0.76);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.rank-number {
    color: var(--color-amber-soft);
    font-size: 18px;
    font-weight: 900;
}

.rank-row img {
    width: 64px;
    height: 82px;
    border-radius: 10px;
    object-fit: cover;
}

.rank-info {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.rank-info strong,
.rank-info em,
.ranking-table-title strong,
.ranking-table-title em {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-info em,
.ranking-table-title em {
    color: var(--color-muted);
    font-style: normal;
    font-size: 13px;
}

.page-main {
    padding-top: 28px;
}

.page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 230px;
    margin-bottom: 32px;
    padding: 34px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(28, 25, 23, 0.92), rgba(120, 53, 15, 0.28)),
        radial-gradient(circle at right, rgba(185, 28, 28, 0.28), transparent 22rem);
}

.page-hero h1 {
    font-size: clamp(36px, 5vw, 58px);
}

.page-hero p {
    max-width: 780px;
    margin: 12px 0 0;
}

.filter-panel {
    margin-bottom: 32px;
    padding: 22px;
    border-radius: var(--radius-md);
}

.filter-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 14px;
}

.filter-grid label {
    display: grid;
    gap: 8px;
    color: var(--color-amber-soft);
    font-size: 13px;
    font-weight: 800;
}

.filter-grid input,
.filter-grid select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(180, 83, 9, 0.4);
    border-radius: 12px;
    color: #fffbeb;
    outline: 0;
    background: rgba(0, 0, 0, 0.25);
}

.filter-status {
    margin-top: 14px;
    color: var(--color-muted);
}

.filter-status strong {
    color: var(--color-amber-soft);
}

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

.category-overview-card {
    padding: 22px;
    border-radius: var(--radius-md);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.category-overview-head {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 12px;
}

.category-overview-head em {
    color: var(--color-amber-soft);
    font-style: normal;
    font-weight: 900;
}

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

.category-preview-strip a {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.category-preview-strip img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 10px;
}

.category-preview-strip span {
    color: var(--color-muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-rank-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 32px;
}

.top-rank-card {
    position: relative;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000000;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.top-rank-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.top-rank-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), transparent 58%);
}

.top-rank-card span,
.top-rank-card strong,
.top-rank-card em {
    position: relative;
    z-index: 1;
}

.top-rank-card span {
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-amber), var(--color-red));
    font-weight: 900;
}

.top-rank-card strong {
    font-size: 26px;
}

.top-rank-card em {
    margin-top: 8px;
    color: var(--color-muted);
    font-style: normal;
}

.ranking-table-section {
    margin-bottom: 44px;
}

.ranking-table {
    display: grid;
    gap: 10px;
}

.ranking-table-row {
    display: grid;
    grid-template-columns: 68px 64px minmax(0, 1fr) 92px 120px 80px;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(68, 64, 60, 0.86);
    border-radius: 16px;
    background: rgba(28, 25, 23, 0.78);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.ranking-table-number {
    color: var(--color-amber-soft);
    font-size: 20px;
    font-weight: 900;
}

.ranking-table-row img {
    width: 64px;
    height: 82px;
    border-radius: 10px;
    object-fit: cover;
}

.ranking-table-title {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.detail-main {
    padding-top: 26px;
}

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

.breadcrumb a:hover {
    color: var(--color-amber-soft);
}

.breadcrumb strong {
    color: #fffbeb;
    font-weight: 700;
}

.player-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 32px;
}

.video-shell {
    position: relative;
    min-height: 420px;
    border: 1px solid rgba(180, 83, 9, 0.35);
    border-radius: 26px;
    overflow: hidden;
    background: #000000;
    box-shadow: var(--shadow-card);
}

.movie-player {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: contain;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    gap: 16px;
    padding: 28px;
    border: 0;
    color: #ffffff;
    text-align: center;
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.36)),
        radial-gradient(circle at center, rgba(245, 158, 11, 0.25), transparent 16rem);
}

.player-overlay.is-hidden {
    display: none;
}

.large-play-icon {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-amber), var(--color-red));
    box-shadow: 0 18px 40px rgba(185, 28, 28, 0.36);
    font-size: 34px;
}

.player-overlay strong {
    max-width: 80%;
    font-size: clamp(22px, 4vw, 38px);
}

.detail-side-card {
    display: grid;
    grid-template-rows: auto 1fr;
    border: 1px solid var(--color-border);
    border-radius: 26px;
    background: var(--color-panel);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.detail-side-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.detail-side-card div {
    padding: 22px;
}

.detail-badge {
    display: inline-flex;
    padding: 7px 12px;
    margin-bottom: 12px;
    font-weight: 800;
}

.detail-side-card h1 {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.15;
}

.detail-side-card p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.detail-article,
.detail-sidebar {
    padding: 28px;
    border-radius: var(--radius-lg);
}

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

.detail-meta-grid span {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid rgba(180, 83, 9, 0.3);
    border-radius: 14px;
    color: #fffbeb;
    background: rgba(0, 0, 0, 0.18);
}

.detail-meta-grid strong {
    color: var(--color-muted);
    font-size: 12px;
}

.detail-meta-grid a {
    color: var(--color-amber-soft);
}

.detail-tags {
    margin-bottom: 24px;
}

.detail-article h2 {
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 24px;
}

.detail-article p {
    margin: 0;
    font-size: 16px;
}

.detail-sidebar h2 {
    margin-bottom: 16px;
    font-size: 22px;
}

.side-related-list {
    display: grid;
    gap: 10px;
}

.side-related-list a {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 4px 10px;
    padding: 12px;
    border: 1px solid rgba(68, 64, 60, 0.82);
    border-radius: 14px;
    background: rgba(28, 25, 23, 0.74);
}

.side-related-list span {
    grid-row: span 2;
    color: var(--color-amber-soft);
    font-weight: 900;
}

.side-related-list strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-related-list em {
    color: var(--color-muted);
    font-style: normal;
    font-size: 13px;
}

.related-section {
    margin-bottom: 44px;
}

.site-footer {
    width: min(var(--site-width), calc(100% - 32px));
    margin: 60px auto 28px;
    padding: 30px;
    border-radius: var(--radius-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 28px;
}

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

.site-footer p {
    max-width: 520px;
    color: var(--color-muted);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    padding: 8px 10px;
    border: 1px solid rgba(180, 83, 9, 0.28);
    border-radius: 999px;
    color: var(--color-muted);
}

.footer-links a:hover {
    color: var(--color-amber-soft);
    border-color: var(--color-amber);
}

.back-to-top {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 45;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-amber), var(--color-red));
    box-shadow: var(--shadow-card);
}

@media (max-width: 1200px) {
    .home-grid,
    .category-grid,
    .search-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

    .hero-thumbs {
        display: none;
    }
}

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

    .mobile-menu-button {
        display: grid;
        place-items: center;
        margin-left: auto;
    }

    body.menu-open .mobile-nav-panel {
        display: block;
    }

    .hero-carousel {
        min-height: 720px;
    }

    .hero-content,
    .home-search-band,
    .two-column-layout,
    .player-section,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        align-content: center;
        padding-bottom: 90px;
    }

    .hero-poster {
        max-width: 230px;
        margin: 0 auto;
    }

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

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

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

    .ranking-table-row {
        grid-template-columns: 54px 58px minmax(0, 1fr);
    }

    .ranking-table-row > span:nth-last-child(-n + 3) {
        display: none;
    }
}

@media (max-width: 640px) {
    .site-header-inner,
    main,
    .page-main,
    .detail-main,
    .site-footer {
        width: min(100% - 22px, var(--site-width));
    }

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

    .brand-text em {
        display: none;
    }

    .hero-carousel {
        min-height: 690px;
        border-radius: 22px;
    }

    .hero-content {
        padding: 58px 22px 76px;
    }

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

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

    .hero-control {
        width: 40px;
        height: 40px;
    }

    .hero-prev {
        left: 10px;
    }

    .hero-next {
        right: 10px;
    }

    .home-search-band,
    .content-section,
    .category-strip,
    .ranking-panel,
    .filter-panel,
    .detail-article,
    .detail-sidebar,
    .site-footer {
        padding: 20px;
        border-radius: 20px;
    }

    .large-search {
        display: grid;
    }

    .large-search button {
        min-height: 46px;
    }

    .section-header,
    .page-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-tile-grid,
    .category-overview-grid,
    .movie-grid,
    .top-rank-grid,
    .filter-grid,
    .wide-filter-grid,
    .detail-meta-grid {
        grid-template-columns: 1fr;
    }

    .category-grid,
    .search-grid,
    .home-grid,
    .compact-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

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

    .movie-card p,
    .tag-row {
        display: none;
    }

    .video-shell,
    .movie-player {
        min-height: 260px;
    }

    .detail-side-card h1 {
        font-size: 24px;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
    }
}
