:root {
    --sand-50: #fdfbf7;
    --sand-100: #f8f4ea;
    --sand-200: #f0e7d3;
    --desert-50: #fff2e5;
    --desert-100: #ffe0bf;
    --desert-500: #d66f2e;
    --desert-600: #c75d24;
    --desert-700: #b35a26;
    --earth-50: #f8f5f0;
    --earth-100: #ede6dc;
    --earth-600: #6f5b4a;
    --earth-700: #5b493d;
    --earth-800: #3f332b;
    --earth-900: #241d18;
    --white: #ffffff;
    --shadow-card: 0 12px 30px rgba(85, 61, 42, 0.12);
    --shadow-soft: 0 20px 45px rgba(74, 48, 30, 0.16);
    --radius-xl: 22px;
    --radius-lg: 16px;
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--sand-50) 0%, #ffffff 40%, var(--sand-50) 100%);
    color: var(--earth-800);
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
a,
input,
select {
    -webkit-tap-highlight-color: transparent;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(253, 251, 247, 0.96), rgba(255, 242, 229, 0.96));
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(179, 90, 38, 0.16);
    box-shadow: 0 8px 24px rgba(80, 64, 53, 0.08);
}

.nav-wrap {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 76px;
    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: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--desert-500), #c49a44);
    box-shadow: 0 10px 20px rgba(214, 111, 46, 0.26);
    font-size: 16px;
}

.brand-text {
    display: grid;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--desert-700), #9b6a24);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    margin-top: 3px;
    color: var(--earth-600);
    font-size: 12px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
}

.nav-link {
    color: var(--earth-700);
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

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

.top-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(179, 90, 38, 0.18);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.top-search input,
.hero-inline-search input,
.hero-search-panel input,
.filter-bar input,
.filter-bar select {
    outline: none;
    border: 0;
    background: transparent;
    color: var(--earth-800);
}

.top-search input {
    width: 210px;
    padding: 7px 4px 7px 12px;
}

.top-search button,
.hero-inline-search button,
.hero-search-panel button,
.filter-bar button {
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(90deg, var(--desert-600), var(--desert-500));
    font-weight: 800;
    padding: 9px 17px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button:hover,
.hero-inline-search button:hover,
.hero-search-panel button:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(199, 93, 36, 0.28);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: var(--earth-800);
    background: var(--sand-100);
    border-radius: 12px;
    width: 42px;
    height: 42px;
    font-size: 24px;
}

.hero {
    position: relative;
    min-height: 620px;
    background: var(--earth-900);
    overflow: hidden;
}

.hero-slider,
.hero-slide,
.hero-image,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

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

.hero-image {
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    background: linear-gradient(90deg, rgba(18, 12, 8, 0.88) 0%, rgba(18, 12, 8, 0.58) 46%, rgba(18, 12, 8, 0.08) 100%), linear-gradient(0deg, rgba(18, 12, 8, 0.52), transparent 55%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(760px, calc(100% - 48px));
    margin-left: max(24px, calc((100vw - 1180px) / 2));
    padding-top: 132px;
    color: var(--white);
}

.hero-badge,
.page-kicker,
.category-badge,
.poster-type {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-weight: 800;
}

.hero-badge {
    padding: 8px 16px;
    color: var(--white);
    background: rgba(214, 111, 46, 0.9);
    backdrop-filter: blur(8px);
}

.hero h1,
.hero h2 {
    margin-top: 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.04em;
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.hero p {
    width: min(680px, 100%);
    margin-top: 18px;
    color: #f8ead6;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.85;
}

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

.hero-tags span,
.detail-tags a {
    border-radius: 999px;
    padding: 7px 12px;
    color: #fff7ef;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.btn-primary,
.btn-ghost,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
}

.btn-primary {
    min-height: 50px;
    padding: 0 28px;
    color: var(--white);
    background: linear-gradient(90deg, var(--desert-600), var(--desert-500));
    box-shadow: 0 12px 22px rgba(199, 93, 36, 0.26);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-ghost {
    min-height: 50px;
    padding: 0 24px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.hero-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(10px);
    font-size: 38px;
    line-height: 1;
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dot {
    width: 22px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 44px;
    background: var(--white);
}

.hero-search-panel {
    position: absolute;
    z-index: 6;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 58px;
    width: min(440px, calc(100% - 48px));
    padding: 18px;
    border-radius: 24px;
    background: rgba(253, 251, 247, 0.9);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.hero-search-panel form,
.hero-inline-search {
    display: flex;
    gap: 10px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid rgba(179, 90, 38, 0.14);
    padding: 8px;
}

.hero-search-panel input,
.hero-inline-search input {
    flex: 1;
    padding: 0 14px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 14px;
}

.quick-links a {
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--earth-700);
    background: var(--sand-100);
    font-size: 13px;
    font-weight: 800;
}

.content-section {
    padding: 72px 0;
}

.soft-bg {
    background: linear-gradient(180deg, var(--sand-50), var(--white));
}

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

.section-head h2 {
    color: var(--earth-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.section-head p {
    margin-top: 8px;
    color: var(--earth-600);
}

.section-more {
    flex-shrink: 0;
    padding: 11px 18px;
    color: var(--desert-700);
    background: var(--desert-50);
    border: 1px solid rgba(199, 93, 36, 0.18);
}

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

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

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

.movie-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.card-link {
    display: block;
    height: 100%;
}

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--sand-100);
}

.compact-card .poster-wrap {
    aspect-ratio: 16 / 10;
}

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

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

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.68));
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.poster-type {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 10px;
    color: var(--white);
    background: rgba(199, 93, 36, 0.92);
    font-size: 12px;
}

.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    background: rgba(36, 29, 24, 0.82);
    font-weight: 950;
}

.poster-play {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%) scale(0.82);
    border-radius: 50%;
    color: var(--desert-600);
    background: rgba(255, 255, 255, 0.94);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    font-size: 19px;
}

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

.card-body {
    padding: 15px 16px 18px;
}

.card-body h2 {
    color: var(--earth-900);
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    margin-top: 8px;
    color: var(--desert-700);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-desc {
    margin-top: 8px;
    color: var(--earth-600);
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.split-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
}

.media-list,
.editor-stack,
.category-mini-list {
    display: grid;
    gap: 14px;
}

.media-row {
    display: grid;
    grid-template-columns: auto 96px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-row:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-soft);
}

.media-row img {
    width: 96px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
}

.media-row strong,
.media-row em {
    display: block;
}

.media-row strong {
    color: var(--earth-900);
    font-weight: 900;
    line-height: 1.35;
}

.media-row em {
    margin-top: 6px;
    color: var(--earth-600);
    font-size: 13px;
    font-style: normal;
}

.list-rank {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--desert-600), #c49a44);
    font-weight: 950;
}

.category-grid,
.category-page-grid {
    display: grid;
    gap: 24px;
}

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

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

.category-showcase,
.category-card,
.article-card,
.side-card {
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.category-showcase {
    padding: 20px;
}

.category-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.category-title span {
    color: var(--earth-900);
    font-size: 22px;
    font-weight: 950;
}

.category-title em {
    color: var(--desert-700);
    font-style: normal;
    font-weight: 800;
    font-size: 13px;
}

.category-card {
    padding: 26px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-badge,
.page-kicker {
    padding: 7px 12px;
    color: var(--desert-700);
    background: var(--desert-50);
}

.category-card h2 {
    margin-top: 16px;
    color: var(--earth-900);
    font-size: 24px;
    font-weight: 950;
}

.category-card p {
    margin-top: 10px;
    color: var(--earth-600);
    line-height: 1.8;
}

.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.category-links a {
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--earth-700);
    background: var(--sand-100);
    font-size: 13px;
    font-weight: 800;
}

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

.page-hero {
    padding: 64px 0;
    color: var(--white);
    background: radial-gradient(circle at 15% 20%, rgba(214, 111, 46, 0.5), transparent 36%), linear-gradient(135deg, var(--earth-900), #4a3427 58%, var(--desert-700));
}

.compact-hero {
    padding: 70px 0 76px;
}

.page-hero h1 {
    margin-top: 14px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.page-hero p {
    width: min(760px, 100%);
    margin-top: 16px;
    color: #f4dcc4;
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

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

.hero-inline-search {
    width: min(560px, 100%);
    margin-top: 24px;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 160px 160px 160px;
    gap: 12px;
    margin-bottom: 26px;
    padding: 14px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.filter-bar input,
.filter-bar select {
    min-height: 46px;
    border-radius: 14px;
    padding: 0 14px;
    background: var(--sand-50);
    border: 1px solid rgba(179, 90, 38, 0.12);
}

.empty-state {
    display: none;
    margin: 18px 0 28px;
    padding: 18px;
    border-radius: 16px;
    color: var(--earth-700);
    background: var(--sand-100);
    font-weight: 800;
}

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

.ranking-lead {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 36px;
    align-items: center;
}

.lead-poster {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.lead-poster img {
    height: 360px;
    object-fit: cover;
}

.lead-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 12px 14px;
    border-radius: 16px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(12px);
    font-weight: 900;
}

.detail-top {
    padding: 52px 0 66px;
    color: var(--white);
    background: radial-gradient(circle at 85% 20%, rgba(214, 111, 46, 0.42), transparent 34%), linear-gradient(135deg, #1f1712, #5c3828);
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 40px;
    align-items: center;
}

.detail-poster {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.detail-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-poster span {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(199, 93, 36, 0.92);
    font-weight: 900;
}

.detail-info h1 {
    margin-top: 16px;
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.detail-one-line {
    margin-top: 18px;
    color: #f6dec4;
    font-size: 20px;
    line-height: 1.8;
}

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

.detail-meta-grid div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.detail-meta-grid dt {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
}

.detail-meta-grid dd {
    margin-top: 5px;
    color: var(--white);
    font-weight: 900;
}

.detail-tags a {
    color: var(--white);
}

.player-section {
    padding: 64px 0;
    background: #100d0b;
}

.player-section h2 {
    margin-bottom: 22px;
    color: var(--white);
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 950;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
    aspect-ratio: 16 / 9;
}

.movie-video,
.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.movie-video {
    object-fit: contain;
    background: #000;
}

.player-cover {
    z-index: 3;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #000;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.74;
}

.player-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 92px;
    height: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    color: var(--desert-600);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
}

.player-ring span {
    margin-left: 5px;
    font-size: 32px;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

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

.article-card h2,
.side-card h2 {
    color: var(--earth-900);
    font-size: 26px;
    font-weight: 950;
}

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

.article-card p,
.side-card p {
    margin-top: 14px;
    color: var(--earth-700);
    line-height: 1.95;
}

.side-card {
    position: sticky;
    top: 100px;
}

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

.site-footer {
    padding: 54px 0 26px;
    color: #f8ead9;
    background: linear-gradient(135deg, #241d18, #493323);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px;
}

.brand-footer .brand-text strong {
    color: var(--white);
    background: none;
    -webkit-text-fill-color: var(--white);
}

.footer-brand p {
    margin-top: 18px;
    color: #e9d4be;
    line-height: 1.85;
}

.footer-links h2 {
    color: var(--white);
    font-size: 18px;
    font-weight: 950;
}

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

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

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 36px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #d8bfa6;
    font-size: 14px;
}

@media (max-width: 1180px) {
    .top-search input {
        width: 160px;
    }

    .nav-menu {
        gap: 12px;
    }

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

@media (max-width: 960px) {
    .nav-wrap {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        order: 4;
        width: 100%;
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 10px 0 4px;
    }

    .nav-menu.is-open {
        display: grid;
    }

    .nav-link {
        padding: 12px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.56);
    }

    .top-search {
        order: 3;
        width: 100%;
    }

    .top-search input {
        flex: 1;
        width: auto;
    }

    .hero {
        min-height: 760px;
    }

    .hero-content {
        padding-top: 110px;
    }

    .hero-search-panel {
        left: 24px;
        right: auto;
        bottom: 76px;
        width: calc(100% - 48px);
    }

    .hero-arrow {
        top: auto;
        bottom: 20px;
        transform: none;
    }

    .hero-dots {
        bottom: 30px;
    }

    .card-grid,
    .featured-grid,
    .ranking-strip,
    .related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .split-layout,
    .category-grid,
    .category-page-grid,
    .detail-hero-grid,
    .detail-content-grid,
    .footer-inner,
    .ranking-lead {
        grid-template-columns: 1fr;
    }

    .detail-poster,
    .lead-poster {
        max-width: 360px;
    }

    .side-card {
        position: static;
    }

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

@media (max-width: 640px) {
    .container,
    .nav-wrap,
    .footer-inner,
    .copyright {
        width: min(100% - 24px, 1180px);
    }

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

    .hero {
        min-height: 720px;
    }

    .hero-content {
        width: calc(100% - 32px);
        margin-left: 16px;
        padding-top: 92px;
    }

    .hero h1,
    .hero h2,
    .page-hero h1,
    .detail-info h1 {
        font-size: 38px;
    }

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

    .hero-search-panel {
        left: 12px;
        width: calc(100% - 24px);
        padding: 14px;
    }

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

    .content-section {
        padding: 50px 0;
    }

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

    .card-grid,
    .featured-grid,
    .page-card-grid,
    .ranking-strip,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .card-body {
        padding: 12px;
    }

    .card-body h2 {
        font-size: 15px;
    }

    .card-desc {
        display: none;
    }

    .media-row {
        grid-template-columns: auto 78px 1fr;
    }

    .media-row img {
        width: 78px;
        height: 58px;
    }

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

    .detail-top {
        padding-top: 34px;
    }

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

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

    .player-ring {
        width: 72px;
        height: 72px;
    }

    .article-card,
    .side-card,
    .category-card {
        padding: 20px;
    }

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