:root {
    --color-bg: #f8fafc;
    --color-text: #0f172a;
    --color-muted: #64748b;
    --color-line: #e2e8f0;
    --color-card: #ffffff;
    --color-emerald: #059669;
    --color-teal: #0d9488;
    --color-cyan: #0891b2;
    --color-rose: #e11d48;
    --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.10);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--color-text);
    background: linear-gradient(135deg, #f8fafc 0%, #ecfdf5 45%, #f0fdfa 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, #059669, #0d9488, #0891b2);
    box-shadow: 0 12px 30px rgba(15, 118, 110, 0.24);
}

.site-header-inner {
    max-width: var(--max-width);
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.1);
}

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

.brand-text strong {
    font-size: 21px;
    letter-spacing: 0.03em;
}

.brand-text small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
}

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

.nav-link {
    padding: 10px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 650;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link-active {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 190px;
    padding: 10px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}

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

.nav-dropdown-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: #334155;
    font-weight: 600;
}

.nav-dropdown-panel a:hover {
    color: var(--color-emerald);
    background: #ecfdf5;
}

.header-search {
    display: flex;
    align-items: center;
    width: min(280px, 24vw);
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.header-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 10px 12px 10px 16px;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.header-search button {
    border: 0;
    padding: 10px 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: #ffffff;
}

.mobile-menu {
    display: none;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 22px 18px;
}

.mobile-menu.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mobile-menu a {
    padding: 12px;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 650;
}

.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 1.2s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 35%, rgba(16, 185, 129, 0.48), transparent 28%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.38)),
        linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.78));
}

.hero-content,
.page-hero-inner,
.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(var(--max-width), calc(100% - 44px));
    margin: 0 auto;
}

.hero-content {
    color: #ffffff;
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #fde68a;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero-inner h1,
.detail-info h1 {
    margin: 0 0 20px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.045em;
}

.hero-content p,
.page-hero-inner p,
.detail-one-line {
    max-width: 760px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.7;
}

.hero-meta,
.movie-card-meta,
.detail-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta {
    margin-bottom: 30px;
}

.hero-meta span {
    padding: 8px 13px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    font-weight: 700;
}

.hero-meta span:first-child {
    background: linear-gradient(90deg, var(--color-emerald), var(--color-teal));
}

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

.primary-button,
.ghost-button,
.section-action,
.quick-search-form button,
.filter-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    padding: 14px 26px;
    color: #ffffff;
    background: linear-gradient(90deg, #10b981, #14b8a6);
    box-shadow: 0 18px 35px rgba(20, 184, 166, 0.28);
}

.primary-button:hover,
.quick-search-form button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 22px 42px rgba(20, 184, 166, 0.36);
}

.ghost-button {
    padding: 14px 24px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

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

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

.hero-dot.is-active {
    background: #ffffff;
}

.quick-search-panel {
    width: min(var(--max-width), calc(100% - 44px));
    margin: -42px auto 0;
    position: relative;
    z-index: 8;
}

.quick-search-inner {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 20px;
    align-items: center;
    padding: 22px;
    border-radius: var(--radius-lg);
    color: #ffffff;
    background: linear-gradient(90deg, #059669, #0d9488, #0891b2);
    box-shadow: var(--shadow-soft);
}

.quick-search-inner span {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.72);
}

.quick-search-inner strong {
    font-size: 22px;
}

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

.quick-search-form input,
.filter-toolbar input,
.filter-toolbar select {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 999px;
    background: #ffffff;
    color: var(--color-text);
    padding: 14px 18px;
    box-shadow: inset 0 0 0 1px var(--color-line);
}

.quick-search-form button {
    min-width: 132px;
    padding: 0 20px;
    color: #ffffff;
    background: #0f172a;
}

.content-section {
    width: min(var(--max-width), calc(100% - 44px));
    margin: 0 auto;
    padding: 72px 0;
}

.content-section.no-padding {
    padding: 0;
}

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

.section-heading h2 {
    display: inline;
    margin: 0;
    font-size: clamp(27px, 4vw, 38px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--color-muted);
}

.section-icon {
    display: inline-flex;
    margin-right: 10px;
    font-size: 30px;
    vertical-align: middle;
}

.section-action {
    flex-shrink: 0;
    padding: 11px 18px;
    color: var(--color-emerald);
    background: #ecfdf5;
}

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

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

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

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

.movie-card {
    min-width: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-card);
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);
}

.movie-card-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #115e59);
}

.movie-card-cover img,
.category-card img,
.compact-thumb img,
.ranking-cover img,
.detail-poster img,
.category-overview-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .movie-card-cover img,
.category-card:hover img,
.compact-card:hover img,
.ranking-card:hover img {
    transform: scale(1.06);
}

.movie-card-cover::after,
.category-card-overlay {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 25%, rgba(2, 6, 23, 0.72));
}

.movie-card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(16, 185, 129, 0.88);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: 0.22s ease;
}

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

.movie-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    padding: 5px 8px;
    border-radius: 8px;
    color: #ffffff;
    background: rgba(5, 150, 105, 0.92);
    font-size: 12px;
    font-weight: 800;
}

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

.movie-card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 48px;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 850;
}

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

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

.movie-card-meta {
    justify-content: space-between;
    color: #64748b;
    font-size: 13px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    color: #047857;
    background: #ecfdf5;
    font-size: 12px;
    font-weight: 700;
}

.gradient-section {
    padding: 72px 0;
    background: linear-gradient(90deg, #059669, #0d9488, #0891b2);
}

.gradient-section .section-heading h2,
.gradient-section .section-heading p,
.gradient-section .section-icon {
    color: #ffffff;
}

.translucent-grid .movie-card,
.movie-card-light {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px);
}

.translucent-grid .movie-card-title,
.translucent-grid .movie-card-body p,
.translucent-grid .movie-card-meta,
.translucent-grid .tag {
    color: #ffffff;
}

.translucent-grid .tag {
    background: rgba(255, 255, 255, 0.15);
}

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    background: #0f172a;
}

.category-card img {
    position: absolute;
    inset: 0;
}

.category-card strong,
.category-card small {
    position: absolute;
    left: 20px;
    z-index: 2;
    color: #ffffff;
}

.category-card strong {
    bottom: 46px;
    font-size: 24px;
    font-weight: 900;
}

.category-card small {
    bottom: 22px;
    color: rgba(255, 255, 255, 0.76);
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 36px;
}

.ranking-list,
.editor-list {
    display: grid;
    gap: 14px;
}

.compact-card {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease;
}

.compact-card:hover {
    transform: translateX(4px);
}

.compact-thumb {
    position: relative;
    height: 100px;
    overflow: hidden;
    border-radius: 14px;
    background: #0f172a;
}

.rank-number {
    position: absolute;
    left: 8px;
    top: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #e11d48, #ec4899);
    font-weight: 900;
}

.compact-info strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}

.compact-info small {
    display: block;
    color: var(--color-muted);
    line-height: 1.5;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    background-color: #020617;
    background-size: cover;
    background-position: center;
}

.page-hero {
    min-height: 380px;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.small-page-hero {
    min-height: 320px;
    background:
        radial-gradient(circle at 16% 20%, rgba(16, 185, 129, 0.4), transparent 25%),
        linear-gradient(135deg, #064e3b, #0f766e, #155e75);
}

.category-hero,
.ranking-hero {
    min-height: 420px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

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

.filter-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px 110px;
    gap: 12px;
    align-items: center;
    margin-bottom: 28px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.large-toolbar {
    grid-template-columns: minmax(260px, 1fr) 180px 180px 110px;
}

.filter-count {
    justify-self: end;
    color: var(--color-emerald);
    font-weight: 900;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.category-overview-cover {
    position: relative;
    min-height: 240px;
    overflow: hidden;
    background: #0f172a;
}

.category-overview-cover span {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(5, 150, 105, 0.9);
    font-weight: 800;
}

.category-overview-body {
    padding: 24px;
}

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

.category-overview-body p {
    color: var(--color-muted);
    line-height: 1.7;
}

.mini-link-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
}

.mini-link-list a {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 8px 10px;
    border-radius: 10px;
    color: #047857;
    background: #ecfdf5;
    font-weight: 700;
}

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

.ranking-card {
    display: grid;
    grid-template-columns: 130px 1fr;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.ranking-cover {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    background: #0f172a;
}

.ranking-cover span {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #e11d48, #ec4899);
    font-weight: 900;
}

.ranking-card-body {
    min-width: 0;
    padding: 18px;
}

.ranking-card-body h2 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.35;
}

.ranking-card-body p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    color: var(--color-muted);
    line-height: 1.6;
}

.detail-hero {
    min-height: 660px;
    color: #ffffff;
}

.detail-hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(4px) brightness(0.55);
    transform: scale(1.04);
}

.detail-hero-inner {
    padding: 52px 0 70px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 36px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #0f172a;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.detail-poster img {
    aspect-ratio: 2 / 3;
}

.detail-info h1 {
    font-size: clamp(40px, 6vw, 70px);
}

.detail-one-line {
    margin-bottom: 26px;
}

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

.detail-meta-grid span {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(12px);
}

.detail-meta-grid strong {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
}

.detail-tags .tag {
    color: #ffffff;
    background: rgba(16, 185, 129, 0.72);
}

.detail-content-section {
    padding-top: 42px;
}

.player-panel {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #020617;
    box-shadow: var(--shadow-soft);
}

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

.html5-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020617;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.18), rgba(2, 6, 23, 0.66));
    cursor: pointer;
}

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

.play-overlay span {
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b981, #14b8a6);
    box-shadow: 0 24px 45px rgba(20, 184, 166, 0.32);
    font-size: 32px;
}

.play-overlay strong {
    font-size: 20px;
}

.player-meta {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
    color: #ffffff;
    background: linear-gradient(90deg, #064e3b, #0f766e);
}

.detail-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
    margin-top: 30px;
}

.detail-text-card,
.side-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.detail-text-card h2,
.side-card h2,
.related-section h2 {
    margin: 0 0 14px;
    font-size: 25px;
    font-weight: 900;
}

.detail-text-card p {
    margin: 0 0 26px;
    color: #334155;
    font-size: 17px;
    line-height: 1.9;
}

.info-list {
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-line);
}

.info-list dt {
    color: var(--color-muted);
}

.info-list dd {
    margin: 0;
    font-weight: 700;
}

.detail-nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.detail-nav-links a {
    padding: 16px 18px;
    border-radius: 16px;
    color: #047857;
    background: #ecfdf5;
    font-weight: 800;
}

.related-section {
    margin-top: 42px;
}

.index-list-section {
    display: grid;
    gap: 28px;
}

.index-category-block {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.index-category-block h2 {
    margin: 0 0 18px;
}

.site-index-links {
    columns: 4;
    column-gap: 22px;
}

.site-index-links a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    break-inside: avoid;
    padding: 7px 0;
    color: #334155;
    border-bottom: 1px dashed #e2e8f0;
}

.site-index-links a:hover {
    color: var(--color-emerald);
}

.site-index-links span {
    color: var(--color-muted);
    font-size: 12px;
}

.site-footer {
    margin-top: 40px;
    color: #cbd5e1;
    background: #0f172a;
}

.site-footer-inner {
    width: min(var(--max-width), calc(100% - 44px));
    margin: 0 auto;
    padding: 52px 0;
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 1fr;
    gap: 40px;
}

.footer-brand-block p {
    max-width: 460px;
    color: #94a3b8;
    line-height: 1.8;
}

.footer-column {
    display: grid;
    gap: 10px;
    align-content: start;
}

.footer-column h3 {
    margin: 0 0 8px;
    color: #ffffff;
}

.footer-column a:hover {
    color: #34d399;
}

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

.footer-category-links h3 {
    grid-column: 1 / -1;
}

@media (max-width: 1180px) {
    .movie-grid-six,
    .movie-grid-five {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

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

    .hero-carousel {
        height: 560px;
    }

    .quick-search-inner,
    .split-section,
    .detail-layout,
    .detail-main-grid,
    .category-overview-card,
    .site-footer-inner {
        grid-template-columns: 1fr;
    }

    .movie-grid-six,
    .movie-grid-five,
    .movie-grid-four,
    .category-strip,
    .ranking-grid,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .site-index-links {
        columns: 2;
    }
}

@media (max-width: 560px) {
    .site-header-inner {
        height: 62px;
        padding: 0 14px;
    }

    .brand-text small {
        display: none;
    }

    .hero-carousel {
        height: 520px;
    }

    .hero-content,
    .page-hero-inner,
    .detail-hero-inner,
    .content-section,
    .quick-search-panel,
    .site-footer-inner {
        width: calc(100% - 28px);
    }

    .quick-search-form,
    .detail-nav-links {
        flex-direction: column;
        display: flex;
    }

    .movie-grid-six,
    .movie-grid-five,
    .movie-grid-four,
    .category-strip,
    .ranking-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .ranking-card {
        grid-template-columns: 110px 1fr;
    }

    .detail-poster {
        max-width: 260px;
    }

    .detail-meta-grid,
    .site-footer-inner,
    .footer-category-links {
        grid-template-columns: 1fr;
    }

    .site-index-links {
        columns: 1;
    }
}
