:root {
    --color-primary: 15 118 110;
    --color-primary-dark: 17 94 89;
    --color-primary-light: 20 184 166;
    --color-secondary: 217 119 6;
    --color-accent: 8 145 178;
    --color-neutral-50: 250 250 250;
    --color-neutral-100: 244 244 245;
    --color-neutral-200: 228 228 231;
    --color-neutral-300: 212 212 216;
    --color-neutral-500: 113 113 122;
    --color-neutral-600: 82 82 91;
    --color-neutral-700: 63 63 70;
    --color-neutral-800: 39 39 42;
    --color-neutral-900: 24 24 27;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: rgb(var(--color-neutral-50));
    color: rgb(var(--color-neutral-900));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

main {
    min-height: 60vh;
}

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

.section-padding {
    padding: 64px 0;
}

.bg-white {
    background: #ffffff;
}

.bg-neutral {
    background: rgb(var(--color-neutral-50));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(255 255 255 / 0.96);
    border-bottom: 1px solid rgb(var(--color-neutral-200));
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 24px;
}

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

.logo-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgb(var(--color-primary));
    color: #ffffff;
    font-size: 15px;
    box-shadow: 0 10px 22px rgb(var(--color-primary) / 0.22);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-text span {
    color: rgb(var(--color-primary-dark));
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-text small {
    color: rgb(var(--color-neutral-500));
    font-size: 12px;
    margin-top: 2px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.desktop-nav a {
    position: relative;
    color: rgb(var(--color-neutral-700));
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    background: rgb(var(--color-primary));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.desktop-nav a:hover {
    color: rgb(var(--color-primary-dark));
}

.desktop-nav a:hover::after {
    transform: scaleX(1);
}

.header-search,
.mobile-search,
.page-search {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search input,
.mobile-search input {
    width: 260px;
    border: 1px solid rgb(var(--color-neutral-300));
    border-radius: 12px;
    padding: 10px 14px 10px 38px;
    color: rgb(var(--color-neutral-800));
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.page-search input:focus {
    border-color: rgb(var(--color-primary));
    box-shadow: 0 0 0 3px rgb(var(--color-primary) / 0.15);
}

.search-icon {
    position: absolute;
    left: 14px;
    color: rgb(var(--color-neutral-500));
    z-index: 1;
}

.nav-toggle {
    display: none;
    border: 0;
    border-radius: 10px;
    background: rgb(var(--color-neutral-100));
    color: rgb(var(--color-neutral-700));
    padding: 8px 12px;
    font-size: 22px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgb(var(--color-neutral-200));
    background: #ffffff;
}

.mobile-nav.open {
    display: block;
}

.mobile-nav-inner {
    display: grid;
    gap: 10px;
    padding: 16px 0;
}

.mobile-nav a {
    border-radius: 10px;
    padding: 10px 12px;
    color: rgb(var(--color-neutral-700));
    font-weight: 600;
}

.mobile-nav a:hover {
    background: rgb(var(--color-neutral-100));
    color: rgb(var(--color-primary-dark));
}

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

.btn-primary,
.btn-glass,
.inline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
    background: rgb(var(--color-primary));
    color: #ffffff;
    box-shadow: 0 12px 26px rgb(var(--color-primary) / 0.22);
}

.btn-primary:hover {
    background: rgb(var(--color-primary-dark));
    transform: translateY(-1px);
}

.btn-glass {
    background: rgb(255 255 255 / 0.2);
    color: #ffffff;
    border: 1px solid rgb(255 255 255 / 0.28);
    backdrop-filter: blur(12px);
}

.btn-glass:hover {
    background: rgb(255 255 255 / 0.3);
}

.wide {
    width: 100%;
}

.hero-carousel {
    position: relative;
    height: 68vh;
    min-height: 520px;
    overflow: hidden;
    background: #000000;
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(0 0 0 / 0.86), rgb(0 0 0 / 0.42), rgb(0 0 0 / 0.08));
}

.hero-content {
    position: absolute;
    inset: auto 0 0;
    padding-bottom: 72px;
}

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

.hero-kicker {
    display: inline-flex;
    border-radius: 999px;
    background: rgb(var(--color-primary) / 0.92);
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 28px;
    color: rgb(244 244 245 / 0.92);
    font-size: clamp(17px, 2vw, 22px);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    background: rgb(0 0 0 / 0.34);
    color: #ffffff;
    font-size: 36px;
    line-height: 1;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgb(0 0 0 / 0.52);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

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

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

.hero-dot-active {
    width: 32px;
    background: #ffffff;
}

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

.section-heading h2 {
    margin: 0;
    color: rgb(var(--color-neutral-900));
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-heading p {
    max-width: 720px;
    margin: 10px 0 0;
    color: rgb(var(--color-neutral-600));
    font-size: 17px;
}

.section-more {
    color: rgb(var(--color-primary-dark));
    font-weight: 700;
    white-space: nowrap;
}

.section-more span {
    display: inline-block;
    transition: transform 0.2s ease;
}

.section-more:hover span {
    transform: translateX(4px);
}

.card-panel,
.movie-card,
.category-card,
.category-overview-card,
.ranking-item {
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card-panel:hover,
.movie-card:hover,
.category-card:hover,
.category-overview-card:hover,
.ranking-item:hover {
    box-shadow: var(--shadow-md);
}

.featured-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 32px;
}

.featured-cover {
    position: relative;
    min-height: 420px;
    border-radius: 28px;
    overflow: hidden;
    background: rgb(var(--color-neutral-900));
}

.featured-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-cover:hover img {
    transform: scale(1.05);
}

.featured-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(0 0 0 / 0.9), rgb(0 0 0 / 0.1));
}

.featured-text {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    color: #ffffff;
}

.featured-text strong {
    display: block;
    margin-bottom: 8px;
    font-size: 32px;
    line-height: 1.2;
}

.featured-text em {
    display: block;
    color: rgb(244 244 245 / 0.88);
    font-style: normal;
}

.featured-copy {
    padding: 36px;
    align-self: stretch;
}

.featured-copy h2 {
    margin: 0 0 16px;
    color: rgb(var(--color-primary-dark));
    font-size: 32px;
}

.featured-copy p {
    margin: 0 0 18px;
    color: rgb(var(--color-neutral-700));
}

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

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

.movie-card {
    overflow: hidden;
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgb(var(--color-neutral-200));
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .card-cover img,
.related-card:hover img,
.ranking-item:hover img {
    transform: scale(1.08);
}

.play-badge {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgb(0 0 0 / 0.38);
    color: #ffffff;
    font-size: 34px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
}

.card-body {
    padding: 16px;
}

.card-title {
    display: -webkit-box;
    min-height: 48px;
    margin-bottom: 8px;
    overflow: hidden;
    color: rgb(var(--color-neutral-900));
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-card:hover .card-title {
    color: rgb(var(--color-primary-dark));
}

.card-body p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 14px;
    overflow: hidden;
    color: rgb(var(--color-neutral-600));
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: rgb(var(--color-neutral-500));
    font-size: 13px;
}

.card-meta span:last-child,
.card-meta a {
    border-radius: 999px;
    background: rgb(var(--color-primary) / 0.1);
    color: rgb(var(--color-primary-dark));
    padding: 3px 8px;
    font-weight: 700;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.card-tags span,
.tag-cloud a,
.chip-row button,
.chip-link {
    border-radius: 999px;
    background: rgb(var(--color-neutral-100));
    color: rgb(var(--color-neutral-700));
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
}

.movie-card-list {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 22px;
    padding: 16px;
}

.movie-card-list .card-cover {
    border-radius: 14px;
}

.movie-card-list .card-title {
    min-height: 0;
    font-size: 22px;
}

.movie-card-list .card-body p {
    min-height: 0;
    -webkit-line-clamp: 3;
}

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

.category-card {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    color: #ffffff;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.06);
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(0 0 0 / 0.82), rgb(0 0 0 / 0.12));
}

.category-card span,
.category-card p {
    position: absolute;
    z-index: 1;
    left: 20px;
    right: 20px;
}

.category-card span {
    bottom: 72px;
    font-size: 24px;
    font-weight: 800;
}

.category-card p {
    bottom: 20px;
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: rgb(244 244 245 / 0.9);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-overview-card {
    overflow: hidden;
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

.category-overview-card > div:last-child {
    padding: 20px;
}

.category-overview-card h2 {
    margin: 0 0 8px;
    color: rgb(var(--color-neutral-900));
    font-size: 24px;
}

.category-overview-card p {
    min-height: 50px;
    margin: 0 0 16px;
    color: rgb(var(--color-neutral-600));
}

.category-overview-card span {
    color: rgb(var(--color-primary-dark));
    font-weight: 800;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 48px 96px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
}

.ranking-num {
    color: rgb(var(--color-primary-dark));
    font-size: 24px;
    font-weight: 900;
}

.ranking-item img {
    width: 96px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ranking-info {
    min-width: 0;
}

.ranking-info strong,
.ranking-info em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-info strong {
    color: rgb(var(--color-neutral-900));
    font-weight: 800;
}

.ranking-info em {
    color: rgb(var(--color-neutral-500));
    font-style: normal;
    font-size: 13px;
}

.page-hero {
    background: linear-gradient(135deg, rgb(var(--color-primary-dark)), rgb(var(--color-accent)));
    color: #ffffff;
    padding: 72px 0;
}

.page-hero h1 {
    max-width: 880px;
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgb(240 253 250 / 0.92);
    font-size: 18px;
}

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

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip-row button,
.chip-link {
    border: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.chip-row button:hover,
.chip-row .chip-active,
.chip-link:hover,
.chip-link.chip-active {
    background: rgb(var(--color-primary));
    color: #ffffff;
}

.view-switch {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.view-switch button {
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: rgb(var(--color-neutral-600));
    padding: 8px 12px;
    font-weight: 700;
}

.view-switch .view-active {
    background: rgb(var(--color-primary));
    color: #ffffff;
}

.filter-grid.list-view,
.movie-list {
    display: grid;
    grid-template-columns: 1fr;
}

.filter-grid.list-view .movie-card {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    padding: 16px;
}

.filter-grid.list-view .card-cover {
    border-radius: 14px;
}

.search-status {
    margin-bottom: 24px;
    color: rgb(var(--color-neutral-700));
    font-weight: 800;
}

.page-search {
    max-width: 720px;
    margin-top: 28px;
}

.page-search input {
    width: 100%;
    border: 1px solid rgb(255 255 255 / 0.32);
    border-radius: 14px;
    background: rgb(255 255 255 / 0.18);
    color: #ffffff;
    padding: 14px 120px 14px 42px;
    outline: none;
    backdrop-filter: blur(12px);
}

.page-search input::placeholder {
    color: rgb(255 255 255 / 0.72);
}

.page-search .search-icon {
    color: rgb(255 255 255 / 0.74);
}

.page-search button {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    border: 0;
    border-radius: 10px;
    background: #ffffff;
    color: rgb(var(--color-primary-dark));
    padding: 0 18px;
    font-weight: 800;
}

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

.ranking-column {
    padding: 20px;
}

.ranking-column h2 {
    margin: 0 0 16px;
    color: rgb(var(--color-neutral-900));
}

.ranking-list {
    display: grid;
    gap: 12px;
}

.player-section {
    background: #000000;
    padding: 18px 0;
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    background: #000000;
}

.movie-player,
.player-cover,
.player-cover img {
    width: 100%;
    height: 100%;
}

.movie-player {
    background: #000000;
    object-fit: contain;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    overflow: hidden;
    background: #000000;
}

.player-cover[hidden] {
    display: none;
}

.player-cover img {
    object-fit: cover;
    opacity: 0.74;
}

.big-play {
    position: absolute;
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: rgb(var(--color-primary) / 0.94);
    color: #ffffff;
    font-size: 34px;
    box-shadow: 0 18px 38px rgb(0 0 0 / 0.35);
    transition: transform 0.2s ease, background 0.2s ease;
}

.player-cover:hover .big-play {
    transform: scale(1.08);
    background: rgb(var(--color-primary-dark));
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 0.86fr);
    gap: 28px;
}

.detail-main,
.detail-side {
    display: grid;
    align-content: start;
    gap: 22px;
}

.detail-title-card,
.prose-card,
.tag-panel,
.related-panel,
.side-poster {
    padding: 24px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: rgb(var(--color-neutral-500));
    font-size: 14px;
}

.breadcrumb a {
    color: rgb(var(--color-primary-dark));
    font-weight: 700;
}

.detail-title-card h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta span,
.detail-meta a {
    border-radius: 999px;
    background: rgb(var(--color-neutral-100));
    color: rgb(var(--color-neutral-700));
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 700;
}

.detail-meta a {
    background: rgb(var(--color-primary) / 0.1);
    color: rgb(var(--color-primary-dark));
}

.lead-text {
    margin: 0;
    color: rgb(var(--color-neutral-700));
    font-size: 18px;
    font-weight: 600;
}

.prose-card h2,
.tag-panel h2,
.related-panel h2 {
    margin: 0 0 14px;
    color: rgb(var(--color-neutral-900));
    font-size: 24px;
}

.prose-card p {
    margin: 0;
    color: rgb(var(--color-neutral-700));
    font-size: 17px;
    line-height: 1.9;
    white-space: pre-line;
}

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

.tag-cloud a:hover {
    background: rgb(var(--color-primary));
    color: #ffffff;
}

.side-poster img {
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 16px;
}

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

.side-title h2 {
    margin: 0;
}

.side-title a {
    color: rgb(var(--color-primary-dark));
    font-weight: 800;
}

.related-list {
    display: grid;
    gap: 14px;
}

.related-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.related-card img {
    width: 112px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card strong,
.related-card em {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.related-card strong {
    color: rgb(var(--color-neutral-900));
    font-size: 15px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
}

.related-card em {
    margin-top: 4px;
    color: rgb(var(--color-neutral-500));
    font-size: 12px;
    font-style: normal;
    -webkit-line-clamp: 2;
}

.site-footer {
    background: rgb(var(--color-neutral-900));
    color: rgb(var(--color-neutral-300));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.7fr;
    gap: 40px;
    padding: 48px 0;
}

.footer-logo {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.site-footer p {
    max-width: 560px;
    margin: 0;
    color: rgb(var(--color-neutral-300));
}

.site-footer h3 {
    margin: 0 0 16px;
    color: #ffffff;
}

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

.site-footer a:hover {
    color: rgb(var(--color-primary-light));
}

.footer-bottom {
    border-top: 1px solid rgb(255 255 255 / 0.08);
    padding: 20px;
    color: rgb(var(--color-neutral-500));
    text-align: center;
}

@media (max-width: 1180px) {
    .desktop-nav {
        gap: 14px;
    }

    .header-search input {
        width: 220px;
    }

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

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

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

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

    .nav-toggle {
        display: inline-flex;
    }

    .hero-carousel {
        height: 62vh;
        min-height: 480px;
    }

    .hero-arrow {
        display: none;
    }

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

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

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

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

@media (max-width: 680px) {
    .container-custom {
        width: min(100% - 24px, 1280px);
    }

    .section-padding {
        padding: 42px 0;
    }

    .logo-text small {
        display: none;
    }

    .hero-carousel {
        min-height: 440px;
    }

    .hero-content {
        padding-bottom: 56px;
    }

    .hero-copy p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

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

    .movie-grid,
    .category-grid,
    .category-overview-grid,
    .compact-grid {
        gap: 14px;
    }

    .movie-card-list,
    .filter-grid.list-view .movie-card {
        grid-template-columns: 1fr;
    }

    .ranking-strip {
        grid-template-columns: 1fr;
    }

    .ranking-item {
        grid-template-columns: 42px 84px minmax(0, 1fr);
    }

    .ranking-item img {
        width: 84px;
        height: 54px;
    }

    .card-body {
        padding: 12px;
    }

    .card-title {
        min-height: 42px;
        font-size: 15px;
    }

    .card-body p {
        display: none;
    }

    .category-card {
        min-height: 190px;
    }

    .category-card span {
        bottom: 62px;
        font-size: 20px;
    }

    .category-card p {
        font-size: 13px;
    }

    .page-hero {
        padding: 52px 0;
    }

    .page-search input {
        padding-right: 96px;
    }

    .player-section {
        padding: 0;
    }

    .player-box {
        border-radius: 0;
    }

    .big-play {
        width: 72px;
        height: 72px;
        font-size: 28px;
    }

    .detail-title-card,
    .prose-card,
    .tag-panel,
    .related-panel,
    .side-poster {
        padding: 18px;
    }
}
