* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #020617;
    color: #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid #1e293b;
    box-shadow: 0 12px 35px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(14px);
}

.nav-wrap {
    max-width: 1280px;
    height: 64px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

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

.brand-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    color: #ffffff;
    box-shadow: 0 15px 30px rgba(6, 182, 212, 0.25);
}

.brand strong {
    display: block;
    font-size: 20px;
    line-height: 1.05;
    color: #f8fafc;
}

.brand small {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #cbd5e1;
    font-weight: 600;
}

.desktop-nav a,
.nav-dropdown button {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.nav-dropdown button:hover {
    color: #22d3ee;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    width: 210px;
    padding: 8px;
    border-radius: 14px;
    background: #1e293b;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: #cbd5e1;
}

.nav-dropdown-menu a:hover {
    background: #334155;
    color: #22d3ee;
}

.nav-search,
.mobile-search,
.search-page-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search input,
.mobile-search input,
.search-page-form input,
.filter-bar input,
.filter-bar select {
    border: 1px solid #334155;
    border-radius: 12px;
    background: #0f172a;
    color: #f8fafc;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
    width: 190px;
    padding: 9px 12px;
}

.nav-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.16);
}

.nav-search button,
.mobile-search button,
.search-page-form button {
    border: 0;
    border-radius: 12px;
    padding: 9px 14px;
    background: #06b6d4;
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover {
    background: #0891b2;
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #cbd5e1;
    font-size: 28px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid #1e293b;
    padding: 16px;
    background: #0f172a;
}

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

.mobile-panel a {
    display: block;
    padding: 12px 2px;
    color: #cbd5e1;
    font-weight: 600;
}

.mobile-search input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
}

.hero-carousel {
    position: relative;
    height: 72vh;
    min-height: 560px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

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

.hero-layer {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.86) 38%, rgba(2, 6, 23, 0.2) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0) 45%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: max(24px, calc((100vw - 1280px) / 2 + 16px));
    width: min(680px, calc(100% - 48px));
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.18);
    color: #22d3ee;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p,
.detail-copy p {
    margin: 0;
    color: #cbd5e1;
    font-size: clamp(16px, 2.1vw, 22px);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 14px;
    background: #06b6d4;
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.25);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover {
    background: #0891b2;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 45px rgba(6, 182, 212, 0.35);
}

.hero-score {
    color: #facc15;
    font-size: 18px;
    font-weight: 800;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(30, 41, 59, 0.92);
    transform: translateY(-1px);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    right: 32px;
    bottom: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 18px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: #475569;
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 36px;
    background: #06b6d4;
}

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

.content-section > .section-heading,
.content-section > .movie-grid,
.content-section > .rail-wrap,
.content-section > .category-grid,
.content-section > .feature-layout,
.content-section > .rank-preview,
.content-section > .filter-bar,
.content-section > .category-overview-grid,
.content-section > .detail-grid,
.content-section > .player-shell,
.content-section > .search-page-form,
.content-section > .search-status,
.content-section > .rank-list {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.gradient-section {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.plain-section {
    background: #0f172a;
}

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

.section-heading h2 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 10px 0 0;
    color: #94a3b8;
}

.section-link {
    display: inline-flex;
    padding: 9px 14px;
    border: 1px solid #334155;
    border-radius: 999px;
    color: #22d3ee;
    font-weight: 700;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.section-link:hover {
    border-color: #06b6d4;
    background: rgba(6, 182, 212, 0.1);
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: #1e293b;
    box-shadow: 0 15px 36px rgba(2, 6, 23, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, outline-color 0.2s ease;
    outline: 2px solid transparent;
}

.movie-card:hover {
    transform: translateY(-4px);
    outline-color: #06b6d4;
    box-shadow: 0 20px 45px rgba(6, 182, 212, 0.18);
}

.poster-link,
.rail-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #020617;
}

.poster-link img,
.rail-poster img,
.feature-main img,
.feature-side-item img,
.category-card img,
.category-cover img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img,
.rail-card:hover .rail-poster img,
.feature-main:hover img,
.feature-side-item:hover img,
.category-card:hover img {
    transform: scale(1.08);
}

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent 65%);
}

.rating,
.duration,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.64);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(6px);
}

.rating {
    top: 10px;
    right: 10px;
    color: #facc15;
}

.duration {
    right: 10px;
    bottom: 10px;
}

.rank-badge {
    top: 10px;
    left: 10px;
    background: #06b6d4;
}

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

.movie-title {
    display: block;
    margin-bottom: 8px;
    color: #f8fafc;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-title:hover {
    color: #22d3ee;
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 45px;
    margin: 0 0 14px;
    overflow: hidden;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: #cbd5e1;
    font-size: 13px;
}

.movie-meta span {
    border-radius: 999px;
    padding: 4px 8px;
    background: #0f172a;
}

.rail-wrap {
    position: relative;
}

.movie-rail {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 12px;
    scrollbar-width: none;
}

.movie-rail::-webkit-scrollbar {
    display: none;
}

.rail-card {
    flex: 0 0 288px;
    overflow: hidden;
    border-radius: 18px;
    background: #1e293b;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.rail-card strong {
    display: block;
    padding: 14px 16px 4px;
    color: #f8fafc;
    font-size: 17px;
    line-height: 1.35;
}

.rail-card small {
    display: block;
    padding: 0 16px 16px;
    color: #94a3b8;
}

.rail-button {
    position: absolute;
    top: 42%;
    z-index: 5;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.86);
    color: #ffffff;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.rail-left {
    left: -12px;
}

.rail-right {
    right: -12px;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 22px;
    padding: 24px;
    background: #1e293b;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.25);
}

.category-card::before,
.category-overview-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.12;
    transition: opacity 0.2s ease;
}

.category-card:hover::before,
.category-overview-card:hover::before {
    opacity: 0.2;
}

.accent-0::before { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.accent-1::before { background: linear-gradient(135deg, #10b981, #0f766e); }
.accent-2::before { background: linear-gradient(135deg, #8b5cf6, #9333ea); }
.accent-3::before { background: linear-gradient(135deg, #f97316, #dc2626); }
.accent-4::before { background: linear-gradient(135deg, #ec4899, #e11d48); }
.accent-5::before { background: linear-gradient(135deg, #6366f1, #2563eb); }
.accent-6::before { background: linear-gradient(135deg, #22c55e, #059669); }
.accent-7::before { background: linear-gradient(135deg, #f59e0b, #ea580c); }

.category-card > * {
    position: relative;
    z-index: 2;
}

.category-card img {
    position: absolute;
    right: -18px;
    bottom: -26px;
    z-index: 1;
    width: 56%;
    height: 68%;
    border-radius: 18px;
    opacity: 0.24;
    filter: saturate(1.2);
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: rgba(6, 182, 212, 0.22);
    color: #67e8f9;
    font-weight: 900;
}

.category-card strong {
    display: block;
    margin-bottom: 10px;
    color: #f8fafc;
    font-size: 22px;
}

.category-card p {
    max-width: 72%;
    margin: 0;
    color: #cbd5e1;
    line-height: 1.7;
}

.feature-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 24px;
}

.feature-main {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: 24px;
    background: #020617;
}

.feature-main img {
    position: absolute;
    inset: 0;
}

.feature-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent 62%);
}

.feature-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 32px;
}

.feature-copy small,
.feature-side-item small {
    display: inline-block;
    margin-bottom: 10px;
    color: #22d3ee;
    font-weight: 800;
}

.feature-copy strong {
    display: block;
    color: #ffffff;
    font-size: 34px;
    line-height: 1.18;
}

.feature-copy p {
    max-width: 720px;
    margin: 14px 0 0;
    color: #cbd5e1;
    line-height: 1.75;
}

.feature-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature-side-item {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 16px;
    min-height: 118px;
    overflow: hidden;
    border-radius: 18px;
    background: #1e293b;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.feature-side-item img {
    height: 100%;
}

.feature-side-item span {
    padding: 16px 16px 16px 0;
}

.feature-side-item strong {
    display: block;
    color: #f8fafc;
    line-height: 1.4;
}

.feature-side-item em {
    display: block;
    margin-top: 12px;
    color: #facc15;
    font-style: normal;
    font-weight: 800;
}

.rank-preview,
.rank-list {
    display: grid;
    gap: 10px;
}

.rank-row,
.rank-line {
    display: grid;
    align-items: center;
    gap: 14px;
    border-radius: 14px;
    background: #1e293b;
    color: #cbd5e1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row {
    grid-template-columns: 42px 1fr 58px;
    padding: 14px 16px;
}

.rank-line {
    grid-template-columns: 58px minmax(150px, 1.2fr) minmax(220px, 1fr) 80px;
    padding: 14px 18px;
}

.rank-row:hover,
.rank-line:hover {
    background: #334155;
    transform: translateX(4px);
}

.rank-row span,
.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #06b6d4;
    color: #ffffff;
    font-weight: 900;
}

.rank-row strong,
.rank-title {
    color: #f8fafc;
    font-weight: 800;
}

.rank-row em,
.rank-line strong {
    color: #facc15;
    font-style: normal;
    text-align: right;
}

.rank-info {
    color: #94a3b8;
    font-size: 14px;
}

.page-hero {
    position: relative;
    min-height: 330px;
    padding: 86px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 22%, rgba(6, 182, 212, 0.2), transparent 32%),
        linear-gradient(135deg, #020617, #0f172a 45%, #1e293b);
}

.page-hero > div {
    width: min(900px, 100%);
    text-align: center;
}

.page-hero h1 {
    margin-top: 18px;
}

.page-hero p {
    margin: 18px auto 0;
    max-width: 720px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 220px 220px;
    gap: 16px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid #1e293b;
    border-radius: 20px;
    background: #111827;
}

.filter-bar label {
    display: grid;
    gap: 8px;
    color: #cbd5e1;
    font-weight: 700;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    padding: 12px 14px;
}

.category-overview-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #1e293b;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.category-cover {
    position: relative;
    display: block;
    height: 190px;
    overflow: hidden;
}

.category-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 60%);
}

.category-cover span {
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 2;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.category-overview-card > div {
    position: relative;
    z-index: 2;
    padding: 18px;
}

.category-overview-card h2 {
    margin: 0 0 8px;
    color: #f8fafc;
}

.category-overview-card p {
    margin: 0 0 14px;
    color: #94a3b8;
    line-height: 1.7;
}

.category-sample {
    display: grid;
    gap: 8px;
}

.category-sample a {
    color: #cbd5e1;
    font-size: 14px;
}

.category-sample a:hover {
    color: #22d3ee;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #020617;
}

.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    filter: blur(1px) saturate(1.15);
}

.detail-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.82) 48%, rgba(2, 6, 23, 0.3) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0) 55%);
}

.detail-hero-inner {
    position: relative;
    max-width: 1280px;
    min-height: 620px;
    margin: 0 auto;
    padding: 64px 16px;
    display: grid;
    grid-template-columns: 330px 1fr;
    align-items: center;
    gap: 44px;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 24px;
    background: #0f172a;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

.detail-copy {
    max-width: 800px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #94a3b8;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #22d3ee;
}

.detail-copy .eyebrow {
    margin-bottom: 16px;
}

.detail-copy p {
    margin-top: 20px;
}

.detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0;
}

.detail-meta-row span {
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.72);
    color: #cbd5e1;
    font-weight: 700;
}

.player-shell {
    overflow: hidden;
    border: 1px solid #1e293b;
    border-radius: 26px;
    background: #020617;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

.video-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: rgba(2, 6, 23, 0.2);
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #06b6d4;
    color: #ffffff;
    font-size: 34px;
    box-shadow: 0 20px 45px rgba(6, 182, 212, 0.35);
    transition: transform 0.2s ease, background 0.2s ease;
}

.play-overlay:hover span {
    transform: scale(1.08);
    background: #0891b2;
}

.play-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-info {
    padding: 22px 24px 26px;
    border-top: 1px solid #1e293b;
}

.player-info h2 {
    margin: 0 0 8px;
    color: #f8fafc;
}

.player-info p {
    margin: 0;
    color: #94a3b8;
    line-height: 1.7;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    margin-top: 34px;
}

.detail-article,
.info-card {
    border: 1px solid #1e293b;
    border-radius: 22px;
    background: #111827;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.detail-article {
    padding: 28px;
}

.detail-article h2 {
    margin: 0 0 16px;
    color: #f8fafc;
    font-size: 26px;
}

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

.detail-article p {
    margin: 0;
    color: #cbd5e1;
    line-height: 2;
    font-size: 16px;
}

.detail-aside {
    display: grid;
    gap: 18px;
    align-self: start;
}

.info-card {
    padding: 22px;
}

.info-card h3 {
    margin: 0 0 16px;
    color: #f8fafc;
}

.info-card dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px 14px;
    margin: 0;
}

.info-card dt {
    color: #94a3b8;
}

.info-card dd {
    margin: 0;
    color: #e2e8f0;
}

.tag-list {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.tag-list span {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.16);
    color: #67e8f9;
    font-weight: 700;
    font-size: 13px;
}

.soft-tags span {
    background: #0f172a;
    color: #cbd5e1;
}

.search-page-form {
    margin-bottom: 20px;
}

.search-page-form input {
    flex: 1;
    min-height: 50px;
    padding: 0 16px;
}

.search-page-form button {
    min-height: 50px;
    padding: 0 24px;
}

.search-status {
    min-height: 26px;
    margin-bottom: 22px;
    color: #94a3b8;
}

.site-footer {
    border-top: 1px solid #1e293b;
    background: #020617;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 16px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 32px;
}

.footer-brand p {
    max-width: 560px;
    margin: 18px 0 0;
    color: #94a3b8;
    line-height: 1.8;
}

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

.footer-links strong {
    display: block;
    margin-bottom: 12px;
    color: #e2e8f0;
}

.footer-links a {
    display: block;
    margin: 8px 0;
    color: #94a3b8;
}

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

.footer-bottom {
    border-top: 1px solid #0f172a;
    padding: 18px 16px;
    color: #64748b;
    text-align: center;
    font-size: 14px;
}

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

    .mobile-toggle {
        display: block;
    }

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

    .feature-layout,
    .detail-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    .nav-wrap {
        height: 60px;
    }

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

    .brand small {
        display: none;
    }

    .hero-carousel {
        height: 68vh;
        min-height: 520px;
    }

    .hero-content {
        top: 47%;
    }

    .hero-arrow {
        display: none;
    }

    .hero-dots {
        left: 24px;
        right: auto;
        bottom: 24px;
    }

    .content-section {
        padding: 52px 14px;
    }

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

    .three-columns,
    .four-columns,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .rail-card {
        flex-basis: 250px;
    }

    .category-card p {
        max-width: 100%;
    }

    .category-card img {
        width: 48%;
    }

    .feature-main {
        min-height: 430px;
    }

    .feature-side-item {
        grid-template-columns: 130px 1fr;
    }

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

    .rank-line {
        grid-template-columns: 42px 1fr 70px;
    }

    .rank-info {
        display: none;
    }

    .detail-hero-inner {
        grid-template-columns: 1fr;
        padding-top: 36px;
    }

    .detail-poster {
        width: min(260px, 72vw);
        margin: 0 auto;
    }

    .detail-copy {
        text-align: center;
    }

    .breadcrumb,
    .detail-meta-row {
        justify-content: center;
    }

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

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

@media (max-width: 520px) {
    .hero-content h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 34px;
    }

    .hero-content p,
    .page-hero p,
    .detail-copy p {
        font-size: 16px;
    }

    .feature-side-item {
        grid-template-columns: 112px 1fr;
    }

    .play-overlay span {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }
}
