:root {
    --pink: #ec4899;
    --pink-dark: #db2777;
    --rose: #f43f5e;
    --purple: #8b5cf6;
    --blue: #3b82f6;
    --cyan: #06b6d4;
    --green: #10b981;
    --yellow: #f59e0b;
    --orange: #f97316;
    --indigo: #6366f1;
    --dark: #111827;
    --muted: #6b7280;
    --line: #f3d6e7;
    --soft: #fff7fb;
    --shadow: 0 20px 45px rgba(190, 24, 93, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--dark);
    background: linear-gradient(180deg, #fff7fb 0%, #ffffff 45%, #f8fbff 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(236, 72, 153, 0.12);
    box-shadow: 0 12px 32px rgba(236, 72, 153, 0.08);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1200px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.25);
}

.brand-text {
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link,
.nav-drop-button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: #374151;
    font-weight: 700;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-drop-button:hover {
    color: var(--pink);
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
}

.nav-drop-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 220px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid rgba(236, 72, 153, 0.12);
    border-radius: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

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

.nav-drop-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #4b5563;
    font-weight: 700;
}

.nav-drop-menu a:hover {
    color: var(--pink-dark);
    background: linear-gradient(90deg, #fdf2f8, #f5f3ff);
}

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

.header-search input,
.mobile-search input,
.page-search input,
.hero-search-card input,
.inline-filter input {
    width: 100%;
    border: 2px solid #fbcfe8;
    border-radius: 999px;
    padding: 11px 16px;
    color: #374151;
    background: #ffffff;
    outline: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.page-search input:focus,
.hero-search-card input:focus,
.inline-filter input:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 5px rgba(236, 72, 153, 0.1);
}

.header-search button,
.mobile-search button,
.page-search button,
.hero-search-card button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.2);
}

.header-search {
    flex: 0 1 280px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: #fdf2f8;
    border-radius: 14px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--pink-dark);
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-panel nav {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.hero-section {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #ffffff;
    background: #9d174d;
}

.hero-bg,
.hero-section::before,
.hero-section::after {
    position: absolute;
    inset: 0;
    content: "";
}

.hero-bg {
    background: linear-gradient(120deg, #db2777 0%, #8b5cf6 48%, #2563eb 100%);
}

.hero-section::before {
    opacity: 0.22;
    background-image: radial-gradient(circle at 20% 20%, #ffffff 0 2px, transparent 3px), radial-gradient(circle at 80% 10%, #ffffff 0 1px, transparent 2px);
    background-size: 42px 42px, 58px 58px;
}

.hero-section::after {
    top: auto;
    height: 180px;
    background: linear-gradient(0deg, #fff7fb, rgba(255, 247, 251, 0));
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: 48px;
    padding: 70px 0 110px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    margin: 0 0 14px;
    padding: 7px 14px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-copy h1 {
    margin: 0 0 20px;
    font-size: clamp(2.6rem, 6vw, 5.6rem);
    line-height: 1.03;
    letter-spacing: -0.07em;
    font-weight: 950;
    text-shadow: 0 18px 40px rgba(17, 24, 39, 0.22);
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 28px;
    color: #ffe4f1;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

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

.primary-button,
.ghost-button,
.text-link,
.mini-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    padding: 14px 24px;
    color: var(--pink-dark);
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(17, 24, 39, 0.18);
}

.ghost-button {
    padding: 12px 22px;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.54);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.primary-button:hover,
.ghost-button:hover,
.text-link:hover,
.mini-button:hover {
    transform: translateY(-2px);
}

.hero-search-card {
    max-width: 620px;
    padding: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 18px 48px rgba(17, 24, 39, 0.16);
    backdrop-filter: blur(12px);
}

.hero-search-card input {
    border: 0;
}

.hero-slider {
    position: relative;
    min-height: 520px;
    perspective: 1200px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 36px 80px rgba(17, 24, 39, 0.38);
    opacity: 0;
    transform: translateX(28px) scale(0.96) rotateY(-6deg);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1) rotateY(0deg);
}

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

.hero-card-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.86) 0%, rgba(17, 24, 39, 0.36) 48%, rgba(17, 24, 39, 0.08) 100%);
}

.hero-card-text {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
}

.hero-tags,
.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.card-tags span,
.card-category,
.detail-tags span,
.detail-tags a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.hero-tags span {
    padding: 5px 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

.hero-card-text h2 {
    margin: 14px 0 8px;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.1;
}

.hero-card-text p {
    margin: 0 0 18px;
    color: #f3f4f6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-card-text a {
    display: inline-flex;
    border-radius: 999px;
    padding: 10px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    font-weight: 900;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
    width: 28px;
    background: #ffffff;
}

.category-strip,
.content-section,
.overview-grid,
.page-hero,
.breadcrumb,
.detail-layout {
    width: min(1200px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.category-strip {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-top: -70px;
    margin-bottom: 72px;
}

.category-tile {
    position: relative;
    min-height: 146px;
    overflow: hidden;
    border-radius: 24px;
    color: #ffffff;
    box-shadow: var(--shadow);
    transform: translateY(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-6px) rotate(-1deg);
    box-shadow: 0 28px 55px rgba(190, 24, 93, 0.22);
}

.category-tile img {
    width: 100%;
    height: 100%;
    min-height: 146px;
    object-fit: cover;
    filter: saturate(1.15);
    transition: transform 0.35s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.76));
}

.category-tile span {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    font-size: 1.08rem;
    font-weight: 900;
}

.content-section {
    margin-bottom: 74px;
    padding: 34px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(236, 72, 153, 0.1);
    box-shadow: 0 18px 50px rgba(17, 24, 39, 0.06);
}

.panel-blue {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.panel-pink {
    background: linear-gradient(135deg, #fdf2f8, #f5f3ff);
}

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

.section-title-row h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    line-height: 1.15;
    color: transparent;
    background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 950;
}

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

.section-more,
.text-link {
    color: var(--pink-dark);
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(190, 24, 93, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #fdf2f8, #eff6ff);
}

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

.movie-card:hover .poster-link img,
.movie-list-card:hover .list-cover img,
.rank-item:hover .rank-cover img {
    transform: scale(1.08);
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.2);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: all 0.25s ease;
}

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

.card-body {
    padding: 16px;
}

.card-meta,
.list-meta {
    margin-bottom: 6px;
    color: var(--pink-dark);
    font-size: 0.82rem;
    font-weight: 900;
}

.movie-card h3,
.movie-list-card h3,
.rank-item h3 {
    margin: 0 0 8px;
    color: #1f2937;
    font-size: 1.08rem;
    line-height: 1.32;
    font-weight: 900;
}

.movie-card h3 a:hover,
.movie-list-card h3 a:hover,
.rank-item h3 a:hover {
    color: var(--pink-dark);
}

.movie-card p,
.movie-list-card p,
.rank-item p {
    margin: 0 0 12px;
    color: #6b7280;
    font-size: 0.92rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags span,
.card-category,
.detail-tags span,
.detail-tags a {
    padding: 5px 9px;
    color: #be185d;
    background: #fce7f3;
}

.card-category,
.detail-tags a {
    color: #5b21b6;
    background: #ede9fe;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 126px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.rank-number {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    font-size: 1.25rem;
    font-weight: 950;
}

.rank-cover {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 16px;
}

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

.rank-content h3 {
    font-size: 1.2rem;
}

.mini-button {
    padding: 9px 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 34px;
    margin-bottom: 36px;
    padding: 42px;
    border-radius: 34px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
    box-shadow: var(--shadow);
}

.compact-hero {
    min-height: 240px;
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.08;
    font-weight: 950;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}

.page-search {
    min-width: min(420px, 100%);
    padding: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.inline-filter {
    max-width: 520px;
    margin-bottom: 24px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 22px;
    padding: 22px;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.overview-covers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.overview-covers img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
}

.category-overview-card h2 {
    margin: 0 0 10px;
    color: #1f2937;
    font-size: 1.45rem;
}

.category-overview-card p {
    margin: 0 0 18px;
    color: var(--muted);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    margin-bottom: 24px;
    color: #6b7280;
    font-size: 0.94rem;
}

.breadcrumb a {
    color: var(--pink-dark);
    font-weight: 800;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
    margin-bottom: 64px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    aspect-ratio: 16 / 9;
    box-shadow: 0 30px 70px rgba(17, 24, 39, 0.26);
    cursor: pointer;
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #111827;
}

.player-action {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.62));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-action span {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.26);
    font-size: 2.1rem;
    transform: scale(1);
    transition: transform 0.2s ease;
}

.player-action:hover span {
    transform: scale(1.06);
}

.player-shell.is-playing .player-action {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-card,
.side-card {
    margin-top: 24px;
    padding: 26px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.08);
}

.detail-card h1 {
    margin: 0 0 16px;
    color: #111827;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.12;
    font-weight: 950;
}

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

.detail-meta span {
    display: inline-flex;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #4b5563;
    background: #f9fafb;
}

.detail-meta b {
    color: var(--pink-dark);
}

.detail-tags {
    margin-bottom: 24px;
}

.detail-card h2 {
    margin: 28px 0 10px;
    color: #1f2937;
    font-size: 1.45rem;
}

.detail-card p {
    margin: 0 0 14px;
    color: #4b5563;
    font-size: 1.03rem;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.detail-actions a,
.side-card a {
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    font-weight: 900;
}

.side-card {
    position: sticky;
    top: 96px;
    margin-top: 0;
}

.side-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 22px;
    margin-bottom: 16px;
}

.side-card h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.side-card p {
    color: var(--muted);
}

.site-footer {
    margin-top: 80px;
    color: #ffffff;
    background: linear-gradient(120deg, #db2777, #8b5cf6, #2563eb);
}

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

.site-footer h2,
.site-footer h3 {
    margin: 0 0 14px;
}

.site-footer p,
.site-footer li {
    color: rgba(255, 255, 255, 0.84);
}

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

.site-footer a:hover {
    color: #fef3c7;
}

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.82);
}

.searchable-card.is-hidden {
    display: none;
}

.accent-pink {
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.accent-blue {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.accent-red,
.accent-rose {
    background: linear-gradient(135deg, var(--rose), var(--pink));
}

.accent-purple {
    background: linear-gradient(135deg, var(--purple), var(--pink));
}

.accent-orange {
    background: linear-gradient(135deg, var(--orange), var(--yellow));
}

.accent-yellow {
    background: linear-gradient(135deg, var(--yellow), var(--orange));
}

.accent-cyan {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.accent-green {
    background: linear-gradient(135deg, var(--green), var(--cyan));
}

.accent-indigo {
    background: linear-gradient(135deg, var(--indigo), var(--purple));
}

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

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

    .hero-slider {
        min-height: 460px;
    }

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

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

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

    .side-card {
        position: static;
    }
}

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .header-inner {
        height: 66px;
    }

    .brand-text {
        font-size: 1.35rem;
    }

    .hero-section,
    .hero-inner {
        min-height: auto;
    }

    .hero-copy h1 {
        font-size: 2.55rem;
    }

    .hero-search-card,
    .hero-search-card form,
    .page-search,
    .page-search form {
        border-radius: 22px;
    }

    .hero-search-card form,
    .page-search {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-slider {
        min-height: 420px;
    }

    .category-strip {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -34px;
    }

    .content-section,
    .page-hero,
    .detail-card,
    .side-card {
        padding: 22px;
        border-radius: 24px;
    }

    .page-hero {
        align-items: stretch;
        flex-direction: column;
    }

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

    .rank-item {
        grid-template-columns: 42px 88px 1fr;
    }

    .rank-number {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .rank-item .mini-button {
        grid-column: 2 / -1;
        justify-self: start;
    }

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

@media (max-width: 520px) {
    .hero-inner,
    .category-strip,
    .content-section,
    .overview-grid,
    .page-hero,
    .breadcrumb,
    .detail-layout,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 22px, 1200px);
    }

    .hero-inner {
        gap: 28px;
        padding-bottom: 76px;
    }

    .hero-slider {
        min-height: 360px;
    }

    .hero-card-text {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }

    .category-strip,
    .movie-grid,
    .wide-grid {
        grid-template-columns: 1fr;
    }

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

    .poster-link {
        aspect-ratio: 16 / 10;
    }

    .player-action span {
        width: 70px;
        height: 70px;
    }
}
