* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #020617;
    color: #ffffff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 10% 10%, rgba(249, 115, 22, 0.18), transparent 30%),
        radial-gradient(circle at 90% 0%, rgba(220, 38, 38, 0.16), transparent 32%),
        linear-gradient(180deg, #020617 0%, #0f172a 52%, #020617 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-container {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
}

.header-inner {
    display: flex;
    align-items: center;
    min-height: 72px;
    gap: 24px;
}

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f97316, #dc2626);
    color: #ffffff;
    font-size: 18px;
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.32);
    transition: transform 0.22s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-4deg);
}

.brand-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #fb923c, #ef4444);
    -webkit-background-clip: text;
    color: transparent;
    white-space: nowrap;
}

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

.nav-link,
.mobile-link {
    color: #cbd5e1;
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #fb923c;
}

.nav-link:hover {
    transform: translateY(-1px);
}

.top-search,
.mobile-search {
    display: flex;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.76);
    border-radius: 12px;
    overflow: hidden;
}

.top-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
    color: #ffffff;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.22);
    outline: none;
}

.top-search input,
.mobile-search input {
    width: 230px;
    padding: 11px 14px;
    border: 0;
}

.top-search button,
.mobile-search button {
    border: 0;
    padding: 11px 15px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #dc2626);
    font-weight: 750;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: #ffffff;
    font-size: 28px;
    background: transparent;
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

.mobile-search {
    width: min(100%, 520px);
    margin: 16px auto;
}

.mobile-search input {
    width: 100%;
}

.mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: min(100%, 520px);
    margin: 0 auto;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.72);
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.85s ease;
}

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.24)),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.2) 42%, rgba(2, 6, 23, 0.52) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 56px;
}

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

.hero-labels,
.hero-tags,
.detail-meta,
.tag-row,
.meta-row,
.detail-actions,
.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-labels span,
.hero-labels a,
.hero-tags span,
.tag-row span,
.detail-meta span,
.detail-tags a,
.section-kicker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
}

.hero-labels span,
.hero-labels a {
    padding: 8px 14px;
    background: rgba(249, 115, 22, 0.92);
    color: #ffffff;
    font-weight: 750;
}

.hero-labels a {
    background: rgba(30, 41, 59, 0.74);
    color: #e2e8f0;
}

.hero h1 {
    margin: 20px 0 16px;
    font-size: clamp(44px, 7vw, 76px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 38px rgba(2, 6, 23, 0.58);
}

.hero p {
    max-width: 660px;
    margin: 0 0 24px;
    color: #cbd5e1;
    font-size: 19px;
    line-height: 1.8;
}

.hero-tags span,
.tag-row span,
.detail-tags a {
    padding: 7px 11px;
    color: #e2e8f0;
    background: rgba(51, 65, 85, 0.78);
    font-size: 13px;
}

.hero-actions,
.detail-actions {
    margin-top: 28px;
}

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

.primary-btn {
    min-height: 48px;
    padding: 0 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #dc2626);
    box-shadow: 0 18px 34px rgba(249, 115, 22, 0.25);
}

.ghost-btn {
    min-height: 48px;
    padding: 0 22px;
    color: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.22);
    background: rgba(15, 23, 42, 0.58);
}

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

.primary-btn:hover {
    box-shadow: 0 22px 42px rgba(249, 115, 22, 0.34);
}

.hero-poster {
    position: relative;
    min-height: 480px;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.18);
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.4), rgba(220, 38, 38, 0.18)),
        #0f172a;
    box-shadow: 0 32px 68px rgba(2, 6, 23, 0.58);
}

.hero-poster img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 9px 13px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.76);
    backdrop-filter: blur(10px);
    font-weight: 750;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.58);
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-arrow.prev {
    left: 24px;
}

.hero-arrow.next {
    right: 24px;
}

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

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.32);
    cursor: pointer;
}

.hero-dot.is-active {
    background: linear-gradient(90deg, #f97316, #ef4444);
}

.intro-panel,
.content-section,
.split-section,
.tag-cloud-section,
.categories-overview,
.detail-content-grid,
.player-section,
.filter-bar {
    margin-top: 56px;
}

.intro-panel {
    display: grid;
    grid-template-columns: 0.95fr 1.25fr;
    gap: 28px;
    align-items: center;
    padding: 30px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.64));
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.26);
}

.section-kicker {
    padding: 6px 12px;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.13);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.03em;
}

.intro-copy h2,
.section-head h2,
.page-hero h1,
.detail-copy h1,
.detail-article h2,
.side-panel h2,
.rank-title h2,
.tag-cloud-section h2 {
    margin: 12px 0;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.intro-copy h2,
.section-head h2,
.page-hero h1,
.detail-copy h1 {
    font-size: clamp(32px, 4vw, 56px);
}

.intro-copy p,
.section-head p,
.page-hero p,
.detail-one-line,
.detail-article p,
.side-panel dd,
.category-overview-card p {
    color: #cbd5e1;
    line-height: 1.78;
}

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

.quick-category-grid a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-radius: 16px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.quick-category-grid span {
    color: #fb923c;
    font-weight: 800;
}

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

.section-head h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.section-more,
.text-link {
    padding: 12px 16px;
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.28);
    background: rgba(249, 115, 22, 0.08);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.68));
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.22);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.42);
    box-shadow: 0 24px 50px rgba(2, 6, 23, 0.36);
}

.poster-wrap,
.category-cover,
.detail-poster,
.player-box,
.hero-poster {
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.22), rgba(220, 38, 38, 0.18)),
        #0f172a;
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

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

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 60%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent);
}

.play-dot,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.play-dot {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #dc2626);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.32);
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 38px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(220, 38, 38, 0.92);
    font-weight: 900;
}

.movie-info {
    padding: 16px;
}

.meta-row {
    color: #94a3b8;
    font-size: 13px;
}

.movie-info h2 {
    margin: 10px 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

.movie-info h2 a:hover {
    color: #fb923c;
}

.movie-info p {
    display: -webkit-box;
    min-height: 50px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #cbd5e1;
    line-height: 1.62;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    align-items: flex-start;
}

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

.category-card {
    min-height: 174px;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background:
        radial-gradient(circle at 100% 0%, rgba(249, 115, 22, 0.22), transparent 42%),
        rgba(15, 23, 42, 0.82);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.38);
}

.category-card span {
    color: #fb923c;
    font-weight: 850;
}

.category-card strong {
    display: block;
    margin: 12px 0 8px;
    font-size: 22px;
    line-height: 1.32;
}

.category-card em {
    display: block;
    color: #cbd5e1;
    font-style: normal;
    line-height: 1.62;
}

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

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

.rank-panel,
.side-panel,
.detail-article,
.filter-bar,
.tag-cloud-section {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.82);
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.2);
}

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

.rank-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.rank-title span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f97316, #dc2626);
    font-weight: 900;
}

.rank-title h2 {
    margin: 0;
    font-size: 22px;
}

.rank-title a {
    color: #fb923c;
    font-weight: 800;
}

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

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

.compact-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 5px 12px;
    align-items: center;
    padding: 13px;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.compact-card:hover {
    border-color: rgba(249, 115, 22, 0.34);
}

.rank-number {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(249, 115, 22, 0.16);
    color: #fb923c;
    font-weight: 900;
}

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

.compact-meta {
    overflow: hidden;
    color: #94a3b8;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
}

.tag-cloud-section {
    padding: 28px;
}

.tag-cloud-section h2 {
    margin-top: 0;
    font-size: 30px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-cloud a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(30, 41, 59, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.tag-cloud a:hover {
    color: #fb923c;
    border-color: rgba(249, 115, 22, 0.35);
}

.page-main {
    padding-bottom: 48px;
}

.page-hero,
.detail-hero {
    position: relative;
    padding: 88px 0 74px;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 16%, rgba(249, 115, 22, 0.24), transparent 34%),
        linear-gradient(135deg, #0f172a, #111827 48%, #450a0a);
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -160px;
    height: 260px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.24), transparent 60%);
}

.page-hero .site-container {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #cbd5e1;
}

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

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

.category-overview-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.82);
}

.category-cover {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    border-radius: 18px;
}

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

.category-cover span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.74);
    font-weight: 850;
}

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

.sample-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 16px;
}

.sample-list span {
    padding: 7px 10px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.76);
    font-size: 13px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px 180px;
    gap: 14px;
    padding: 18px;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 12px;
}

.filter-bar select {
    cursor: pointer;
}

.detail-hero {
    background-size: cover;
    background-position: center;
}

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

.detail-poster {
    min-height: 430px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.16);
    border-radius: 28px;
    box-shadow: 0 28px 62px rgba(2, 6, 23, 0.48);
}

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

.detail-copy h1 {
    margin-top: 14px;
}

.detail-one-line {
    max-width: 820px;
    font-size: 19px;
}

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

.detail-meta span {
    padding: 9px 12px;
    background: rgba(30, 41, 59, 0.78);
    color: #e2e8f0;
}

.player-section {
    scroll-margin-top: 94px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(226, 232, 240, 0.16);
    box-shadow: 0 28px 68px rgba(2, 6, 23, 0.44);
}

.movie-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    border: 0;
    color: #ffffff;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

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

.player-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #dc2626);
    box-shadow: 0 24px 50px rgba(249, 115, 22, 0.34);
    font-size: 30px;
}

.player-cover strong {
    font-size: clamp(24px, 4vw, 44px);
    text-shadow: 0 12px 28px rgba(2, 6, 23, 0.86);
}

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

.detail-article,
.side-panel {
    padding: 28px;
}

.detail-article h2,
.side-panel h2 {
    font-size: 28px;
}

.detail-article p {
    margin-bottom: 24px;
    font-size: 17px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.side-panel dl {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 13px 14px;
    margin: 0;
}

.side-panel dt {
    color: #94a3b8;
}

.side-panel dd {
    margin: 0;
}

.side-panel a {
    color: #fb923c;
}

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

.site-footer {
    margin-top: 72px;
    padding: 44px 0 0;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.82);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 36px;
}

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

.site-footer p {
    max-width: 520px;
    color: #94a3b8;
    line-height: 1.75;
}

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

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

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: #fb923c;
}

.footer-bottom {
    margin-top: 34px;
    padding: 18px 16px;
    color: #94a3b8;
    text-align: center;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #dc2626);
    font-size: 22px;
    box-shadow: 0 18px 34px rgba(249, 115, 22, 0.28);
    cursor: pointer;
}

.back-top.is-visible {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

[data-filter-hidden="true"] {
    display: none;
}

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

    .menu-toggle {
        display: block;
    }

    .hero-content,
    .intro-panel,
    .split-section,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

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

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

    .rank-panel {
        position: static;
    }
}

@media (max-width: 820px) {
    .site-container {
        width: min(100% - 24px, 760px);
    }

    .header-inner {
        min-height: 64px;
    }

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

    .hero {
        height: 610px;
    }

    .hero-content {
        align-items: end;
        padding-bottom: 92px;
    }

    .hero-arrow {
        display: none;
    }

    .hero h1 {
        font-size: clamp(40px, 12vw, 60px);
    }

    .hero p {
        font-size: 17px;
    }

    .hero-actions,
    .detail-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .intro-panel,
    .tag-cloud-section,
    .filter-bar {
        padding: 20px;
        border-radius: 20px;
    }

    .quick-category-grid,
    .movie-grid,
    .library-grid,
    .compact-grid,
    .category-grid,
    .categories-overview,
    .three-column,
    .related-grid,
    .footer-grid,
    .detail-hero-grid,
    .filter-bar {
        grid-template-columns: 1fr;
    }

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

    .category-cover {
        min-height: 220px;
    }

    .detail-hero {
        padding: 56px 0;
    }

    .detail-poster {
        display: none;
    }

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

    .detail-article,
    .side-panel {
        padding: 22px;
    }
}

@media (max-width: 520px) {
    .mobile-nav {
        grid-template-columns: 1fr;
    }

    .hero {
        height: 680px;
    }

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

    .movie-info h2 {
        font-size: 18px;
    }

    .page-hero,
    .detail-hero {
        padding: 48px 0;
    }
}
