:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --white: #ffffff;
    --black: #000000;
    --shadow-soft: 0 12px 30px rgba(41, 37, 36, 0.12);
    --shadow-hover: 0 18px 45px rgba(120, 53, 15, 0.2);
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--stone-800);
    background: linear-gradient(180deg, var(--amber-50), var(--stone-100));
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    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: 100;
}

.site-nav {
    color: var(--amber-50);
    background: linear-gradient(90deg, var(--amber-900), var(--amber-800), var(--amber-900));
    box-shadow: 0 8px 22px rgba(41, 37, 36, 0.25);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 32px, var(--max-width));
    height: 72px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark,
.footer-brand span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--amber-900);
    background: linear-gradient(135deg, var(--amber-200), var(--amber-500));
    font-weight: 900;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 1.22rem;
    letter-spacing: 0.03em;
}

.brand-text small {
    margin-top: 3px;
    color: var(--amber-300);
    font-size: 0.75rem;
}

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

.nav-link {
    position: relative;
    color: rgba(255, 251, 235, 0.88);
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    background: var(--amber-300);
    border-radius: 999px;
    transform: scaleX(0);
    transition: transform 0.2s ease;
    content: "";
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.mobile-menu-button {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    padding: 9px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-menu-button span {
    height: 2px;
    background: var(--amber-50);
    border-radius: 999px;
}

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

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

.mobile-link {
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--amber-50);
    background: rgba(255, 255, 255, 0.06);
}

.mobile-link.sub-link {
    margin-left: 16px;
    color: var(--amber-200);
    background: transparent;
}

.hero-slider {
    position: relative;
    height: 560px;
    overflow: hidden;
    background: var(--stone-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    background:
        linear-gradient(135deg, rgba(120, 53, 15, 0.7), rgba(28, 25, 23, 0.98)),
        var(--hero-image) center / cover;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08);
}

.hero-slide.image-fallback .hero-image,
.poster-frame.image-fallback .poster-image,
.detail-poster-frame.image-fallback .detail-poster,
.is-missing {
    display: none;
}

.poster-frame.image-fallback::before,
.detail-poster-frame.image-fallback::before {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.34), transparent 36%),
        linear-gradient(135deg, var(--amber-900), var(--stone-900));
    content: "";
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.18) 58%, rgba(0, 0, 0, 0.1)),
        linear-gradient(90deg, rgba(0, 0, 0, 0.82), transparent 65%);
}

.hero-content {
    position: absolute;
    right: 24px;
    bottom: 84px;
    left: 24px;
    width: min(100% - 48px, var(--max-width));
    margin: 0 auto;
    color: var(--white);
}

.hero-kicker,
.detail-kicker,
.page-hero span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--amber-300);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-kicker::before,
.detail-kicker::before,
.page-hero span::before {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--amber-400, #fbbf24);
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.2);
    content: "";
}

.hero-content h1 {
    max-width: 780px;
    margin: 0 0 14px;
    font-size: clamp(2.4rem, 7vw, 5rem);
    line-height: 1;
    text-shadow: 0 5px 22px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    max-width: 760px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 2vw, 1.28rem);
}

.hero-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.hero-tags span,
.detail-tags span,
.movie-card-body .search-tags {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--amber-100);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

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

.primary-button,
.search-form button,
.hero-search button {
    color: var(--white);
    background: var(--amber-600);
    box-shadow: 0 12px 26px rgba(217, 119, 6, 0.32);
}

.primary-button:hover,
.search-form button:hover,
.hero-search button:hover {
    background: var(--amber-700);
    transform: translateY(-1px);
}

.ghost-button {
    color: var(--amber-100);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(8px);
    font-size: 2rem;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: var(--amber-500);
}

.hero-search {
    position: absolute;
    right: 24px;
    bottom: 28px;
    left: 24px;
    z-index: 5;
    display: flex;
    width: min(100% - 48px, 640px);
    margin: 0 auto;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(12px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 0 16px;
    border: 0;
    outline: 0;
    color: var(--white);
    background: transparent;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.page-shell {
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
    padding: 48px 0;
}

.content-section {
    margin-bottom: 64px;
}

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

.section-heading > div {
    position: relative;
    padding-left: 16px;
}

.section-bar {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 0;
    width: 4px;
    border-radius: 999px;
    background: var(--amber-600);
}

.section-heading h2 {
    margin: 0;
    color: var(--stone-800);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.18;
}

.section-heading p {
    margin: 6px 0 0;
    color: var(--stone-500);
}

.section-more {
    flex: 0 0 auto;
    color: var(--amber-700);
    font-weight: 800;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

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

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

.movie-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:not(.movie-card-horizontal) {
    flex-direction: column;
}

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

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

.poster-link {
    display: block;
}

.poster-frame {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--stone-800);
}

.compact-grid .poster-frame {
    aspect-ratio: 2 / 3;
}

.movie-card-horizontal {
    min-height: 190px;
}

.movie-card-horizontal .poster-link {
    width: 42%;
    min-width: 210px;
}

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

.poster-image,
.detail-poster,
.hero-image {
    transition: transform 0.35s ease;
}

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

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

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

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

.duration-badge,
.score-badge {
    position: absolute;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.68);
    font-size: 0.78rem;
    backdrop-filter: blur(8px);
}

.duration-badge {
    top: 10px;
    right: 10px;
}

.score-badge {
    top: 10px;
    left: 10px;
    background: rgba(217, 119, 6, 0.86);
}

.poster-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: var(--white);
    background: rgba(217, 119, 6, 0.86);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-title {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 8px;
    color: var(--stone-800);
    font-size: 1.05rem;
    font-weight: 850;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card:hover .movie-title {
    color: var(--amber-700);
}

.movie-one-line {
    display: -webkit-box;
    flex: 1;
    overflow: hidden;
    margin: 0 0 12px;
    color: var(--stone-600);
    font-size: 0.92rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta-line,
.movie-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    color: var(--stone-500);
    font-size: 0.82rem;
}

.movie-card-footer {
    justify-content: space-between;
    margin-top: 10px;
}

.category-pill {
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--amber-700);
    background: var(--amber-100);
    font-weight: 800;
}

.views {
    white-space: nowrap;
}

.warm-panel,
.category-panel,
.search-card,
.info-card {
    padding: 30px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--amber-100), #ffedd5);
    box-shadow: var(--shadow-soft);
}

.dark-panel {
    padding: 30px;
    border-radius: var(--radius-lg);
    color: var(--white);
    background: linear-gradient(135deg, var(--stone-900), var(--stone-800));
    box-shadow: var(--shadow-soft);
}

.dark-panel .section-heading h2,
.dark-panel .movie-title {
    color: var(--white);
}

.dark-panel .section-heading p {
    color: var(--stone-300, #d6d3d1);
}

.dark-panel .movie-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dark-panel .movie-one-line,
.dark-panel .movie-meta-line,
.dark-panel .views {
    color: rgba(255, 255, 255, 0.72);
}

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

.category-tile,
.category-overview-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 158px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 8px 22px rgba(120, 53, 15, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile strong,
.category-overview-head strong {
    color: var(--stone-800);
    font-size: 1.2rem;
}

.category-tile span,
.category-overview-head span {
    color: var(--amber-700);
    font-weight: 800;
}

.category-tile p,
.category-overview-card p {
    margin: 0;
    color: var(--stone-600);
    font-size: 0.92rem;
}

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

.category-overview-card ul {
    display: grid;
    gap: 8px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.category-overview-card li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--stone-600);
    font-size: 0.92rem;
}

.category-overview-card a:hover {
    color: var(--amber-700);
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 24px;
    color: var(--white);
    background:
        radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.28), transparent 36%),
        linear-gradient(135deg, var(--amber-900), var(--stone-900));
}

.page-hero > div {
    width: min(100%, var(--max-width));
    margin: 0 auto;
}

.page-hero h1 {
    max-width: 760px;
    margin: 0 0 12px;
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.08;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
}

.slim-hero {
    padding: 58px 24px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 180px)) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
}

.filter-panel label {
    display: grid;
    gap: 6px;
    color: var(--stone-600);
    font-size: 0.85rem;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select,
.search-form input {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--stone-200);
    border-radius: 12px;
    color: var(--stone-800);
    background: var(--white);
    outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-form input:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.filter-count {
    min-width: 92px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--amber-800);
    background: var(--amber-100);
    font-weight: 800;
    text-align: center;
}

.empty-state {
    display: none;
    padding: 34px;
    border-radius: var(--radius-md);
    color: var(--stone-600);
    background: var(--white);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.empty-state.is-visible {
    display: block;
}

.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.ranking-table th,
.ranking-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--stone-200);
    text-align: left;
}

.ranking-table th {
    color: var(--stone-700);
    background: var(--amber-100);
    font-size: 0.9rem;
}

.ranking-table tr:hover td {
    background: var(--amber-50);
}

.ranking-table a {
    color: var(--stone-800);
    font-weight: 800;
}

.ranking-table a:hover {
    color: var(--amber-700);
}

.rank-number {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--white);
    background: var(--amber-600);
    font-weight: 900;
}

.search-card {
    margin-bottom: 36px;
}

.search-form {
    display: flex;
    gap: 12px;
}

.search-form input {
    flex: 1;
}

.search-summary {
    margin-top: 14px;
    color: var(--stone-600);
    font-weight: 700;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--stone-900);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(28, 25, 23, 0.96), rgba(28, 25, 23, 0.58), rgba(28, 25, 23, 0.92)),
        var(--hero-image) center / cover;
    filter: blur(2px) saturate(1.05);
    transform: scale(1.02);
}

.detail-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 34px;
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
    padding: 54px 0;
}

.detail-poster-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 2 / 3;
    background: var(--stone-800);
    box-shadow: 0 20px 58px rgba(0, 0, 0, 0.38);
}

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

.detail-info {
    align-self: center;
}

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 1.05;
}

.detail-info p {
    max-width: 820px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
}

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

.detail-meta-grid span {
    display: grid;
    gap: 2px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.detail-meta-grid strong {
    color: var(--amber-300);
    font-size: 0.78rem;
}

.detail-shell {
    padding-top: 42px;
}

.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    margin-bottom: 64px;
}

.player-card,
.detail-content-card,
.side-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.player-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    color: var(--white);
    background: linear-gradient(90deg, var(--stone-900), var(--amber-900));
}

.player-head span {
    color: var(--amber-300);
    font-size: 0.84rem;
    font-weight: 800;
}

.player-head h2 {
    margin: 2px 0 0;
    font-size: 1.25rem;
}

.source-badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.player-box {
    position: relative;
    overflow: hidden;
    background: var(--black);
    aspect-ratio: 16 / 9;
}

.player-box video {
    width: 100%;
    height: 100%;
    background: var(--black);
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: var(--white);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.22));
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(217, 119, 6, 0.92);
    box-shadow: 0 16px 36px rgba(217, 119, 6, 0.32);
    font-size: 2rem;
}

.player-overlay strong {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(8px);
}

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

.player-status {
    margin: 0;
    padding: 14px 20px;
    color: var(--stone-600);
    background: var(--amber-50);
}

.detail-content-card {
    margin-top: 24px;
    padding: 26px;
}

.detail-content-card h2,
.side-card h2,
.info-block h2 {
    margin: 0 0 12px;
    color: var(--stone-800);
    font-size: 1.35rem;
}

.detail-content-card p,
.info-block p {
    margin: 0;
    color: var(--stone-700);
}

.detail-sidebar {
    display: grid;
    align-content: start;
    gap: 22px;
}

.side-card {
    padding: 20px;
}

.side-rank-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--stone-200);
}

.side-rank-item:last-child {
    border-bottom: 0;
}

.side-rank-item span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: var(--white);
    background: var(--amber-600);
    font-size: 0.8rem;
    font-weight: 900;
}

.side-rank-item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.side-rank-item small {
    color: var(--stone-500);
}

.info-list {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    margin: 0;
}

.info-list dt {
    color: var(--stone-500);
    font-weight: 800;
}

.info-list dd {
    margin: 0;
    color: var(--stone-800);
}

.info-card {
    background: var(--white);
}

.info-block + .info-block {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--stone-200);
}

.site-footer {
    color: var(--stone-300, #d6d3d1);
    background: linear-gradient(90deg, var(--stone-900), var(--stone-800), var(--stone-900));
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--amber-50);
    font-size: 1.12rem;
}

.site-footer p {
    max-width: 420px;
    margin: 0;
    color: var(--stone-400);
}

.site-footer h3 {
    margin: 0 0 12px;
    color: var(--amber-50);
}

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

.site-footer a {
    color: var(--stone-400);
}

.site-footer a:hover {
    color: var(--amber-300);
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--stone-500);
    text-align: center;
}

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

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

    .watch-layout {
        grid-template-columns: 1fr;
    }

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

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

    .mobile-menu-button {
        display: flex;
    }

    .hero-slider {
        height: 620px;
    }

    .hero-content {
        bottom: 116px;
    }

    .hero-control {
        display: none;
    }

    .two-col,
    .three-col,
    .four-col,
    .six-col,
    .category-grid,
    .category-overview-grid,
    .footer-grid,
    .detail-sidebar {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal {
        flex-direction: column;
    }

    .movie-card-horizontal .poster-link {
        width: 100%;
        min-width: 0;
    }

    .movie-card-horizontal .poster-frame {
        aspect-ratio: 16 / 10;
    }

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

    .detail-poster-frame {
        width: min(72vw, 280px);
    }

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

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

    .brand-text small {
        display: none;
    }

    .hero-slider {
        height: 600px;
    }

    .hero-search,
    .search-form {
        flex-direction: column;
        border-radius: 18px;
    }

    .hero-search input {
        min-height: 42px;
    }

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

    .warm-panel,
    .dark-panel,
    .category-panel,
    .search-card,
    .info-card {
        padding: 20px;
    }

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

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