:root {
    --cyan: #06b6d4;
    --blue: #2563eb;
    --teal: #14b8a6;
    --deep: #0f172a;
    --muted: #64748b;
    --soft: #f8fafc;
    --line: #e2e8f0;
    --gold: #fde047;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: #0f172a;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.96), rgba(37, 99, 235, 0.96), rgba(20, 184, 166, 0.96));
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(16px);
}

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

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

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: inline-grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.brand-mark span {
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid #ffffff;
    margin-left: 3px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-subtitle {
    margin-top: 5px;
    font-size: 12px;
    opacity: 0.88;
}

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

.nav-link,
.mobile-nav-link {
    font-weight: 700;
    opacity: 0.9;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: var(--gold);
    opacity: 1;
}

.header-search {
    width: 260px;
}

.site-search {
    position: relative;
    display: flex;
    align-items: center;
}

.site-search input {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 12px 52px 12px 18px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.site-search input::placeholder {
    color: rgba(255, 255, 255, 0.76);
}

.site-search input:focus {
    background: rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 0 3px rgba(253, 224, 71, 0.4);
}

.site-search button {
    position: absolute;
    right: 5px;
    width: 39px;
    height: 39px;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

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

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

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

.mobile-panel nav {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: radial-gradient(circle at 12% 18%, rgba(253, 224, 71, 0.22), transparent 28%), linear-gradient(135deg, #06b6d4 0%, #2563eb 48%, #0f766e 100%);
    color: #ffffff;
}

.hero-slider {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: 48px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.hero-backdrop {
    position: absolute;
    inset: -80px -18vw -80px 40%;
    background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.25)), var(--hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0.42;
    filter: blur(2px) saturate(1.1);
}

.hero-content,
.hero-cover {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #0f172a;
    background: var(--gold);
    text-transform: uppercase;
}

.eyebrow.dark {
    color: #0891b2;
    background: #cffafe;
}

.hero h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero p {
    max-width: 760px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
    line-height: 1.72;
}

.hero-tags,
.detail-tags,
.movie-tags,
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags {
    margin: 24px 0 30px;
}

.hero-tags span,
.detail-tags a,
.movie-tags span,
.category-chip {
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

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

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

.primary-button {
    min-height: 48px;
    padding: 0 26px;
    color: #2563eb;
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}

.primary-button:hover {
    color: #1d4ed8;
    background: var(--gold);
    transform: translateY(-2px) scale(1.02);
}

.ghost-button {
    min-height: 48px;
    padding: 0 24px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.ghost-button:hover {
    color: #2563eb;
    background: #ffffff;
    transform: translateY(-2px);
}

.hero-cover {
    display: block;
    justify-self: center;
    width: min(380px, 100%);
    border-radius: 32px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 34px 80px rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(20px);
}

.hero-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 24px;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 3;
    width: min(1180px, calc(100% - 32px));
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(-50%);
}

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
}

.hero-prev,
.hero-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    transition: width 0.25s ease, background 0.25s ease;
}

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

.section-inner,
.content-section,
.footer-grid,
.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.search-band {
    background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.search-band-inner {
    display: grid;
    grid-template-columns: 0.92fr 1.2fr;
    align-items: center;
    gap: 24px;
    padding: 48px 0;
}

.search-band h2,
.search-band p,
.section-heading h2,
.section-heading p,
.panel-title h2,
.panel-title p {
    margin: 0;
}

.search-band h2,
.section-heading h2,
.panel-title h2 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.search-band p,
.section-heading p {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.8;
}

.wide-search input,
.search-page-form input {
    min-height: 58px;
    color: #0f172a;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.wide-search input::placeholder,
.search-page-form input::placeholder {
    color: #94a3b8;
}

.wide-search button,
.search-page-form button {
    right: 7px;
    width: auto;
    height: 44px;
    padding: 0 22px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.search-band .chip-row {
    grid-column: 1 / -1;
    justify-content: center;
}

.category-chip {
    color: #0369a1;
    background: #e0f2fe;
}

.category-chip:hover,
.category-chip.is-active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

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

.section-soft {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100vw - 1180px) / 2));
    padding-right: max(16px, calc((100vw - 1180px) / 2));
    background: #f8fafc;
}

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

.compact-heading {
    margin-bottom: 24px;
}

.section-link,
.text-link {
    color: #0891b2;
}

.section-link:hover,
.text-link:hover {
    color: #2563eb;
    transform: translateX(3px);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #cffafe, #dbeafe);
}

.movie-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.movie-duration,
.movie-category {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
}

.movie-duration {
    right: 12px;
    bottom: 12px;
}

.movie-category {
    top: 12px;
    left: 12px;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.92), rgba(37, 99, 235, 0.92));
}

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

.movie-tags {
    margin-bottom: 12px;
}

.movie-tags span {
    color: #0891b2;
    background: #cffafe;
}

.movie-card h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h2 a:hover {
    color: #0891b2;
}

.movie-card p {
    min-height: 48px;
    margin: 10px 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.movie-meta span {
    border-radius: 999px;
    padding: 5px 8px;
    background: #f1f5f9;
}

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

.category-panel {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border-radius: 26px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.category-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.92));
}

.category-panel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
    transition: transform 0.5s ease;
}

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

.category-panel span,
.category-panel p {
    position: relative;
    z-index: 2;
}

.category-panel span {
    font-size: 22px;
    font-weight: 900;
}

.category-panel p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.6;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
}

.rank-panel,
.side-card {
    border-radius: 28px;
    padding: 24px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: var(--shadow);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 36px 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-radius: 18px;
    padding: 10px;
    background: #ffffff;
    transition: transform 0.2s ease, background 0.2s ease;
}

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

.rank-number {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #0891b2;
    font-weight: 900;
    background: #cffafe;
}

.rank-medal {
    color: #78350f;
    background: var(--gold);
}

.rank-row img {
    width: 58px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-info {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.rank-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info small {
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-score {
    color: #ef4444;
    font-weight: 900;
}

.page-hero,
.movie-detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 12% 18%, rgba(253, 224, 71, 0.18), transparent 28%), linear-gradient(135deg, #06b6d4, #2563eb 55%, #0f766e);
}

.page-hero .section-inner {
    padding: 90px 0;
}

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

.page-hero p {
    max-width: 780px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

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

.category-hero .chip-row {
    margin-top: 26px;
}

.category-hero .category-chip {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.category-hero .category-chip.is-active,
.category-hero .category-chip:hover {
    color: #2563eb;
    background: #ffffff;
}

.inline-filter input {
    width: min(320px, 100%);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 13px 18px;
    outline: 0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.inline-filter input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

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

.category-overview-card {
    border-radius: 28px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.category-overview-link {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 24px;
}

.poster-stack {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.poster-stack img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    object-fit: cover;
}

.category-overview-card h2 {
    margin: 0;
    font-size: 28px;
}

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

.ranking-layout {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.full-rank-panel {
    position: sticky;
    top: 104px;
}

.movie-detail-hero {
    min-height: 560px;
}

.movie-detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--detail-image);
    background-size: cover;
    background-position: center;
    opacity: 0.28;
    filter: blur(4px) saturate(1.2);
    transform: scale(1.04);
}

.detail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.24));
}

.detail-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: center;
    gap: 36px;
}

.detail-poster {
    border-radius: 30px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.38);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 22px;
    object-fit: cover;
}

.detail-copy h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.detail-one-line {
    max-width: 820px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
    line-height: 1.8;
}

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

.detail-meta span {
    border-radius: 999px;
    padding: 8px 12px;
    color: #ffffff;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.18);
}

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

.detail-tags a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.detail-section {
    padding-top: 48px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #020617;
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.24);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #020617;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.56;
    filter: blur(1px) saturate(1.05);
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 0, rgba(2, 6, 23, 0.22) 42%, rgba(2, 6, 23, 0.78) 100%);
}

.player-start {
    position: relative;
    z-index: 2;
    border: 0;
    border-radius: 999px;
    padding: 16px 28px 16px 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #2563eb;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.32);
}

.player-start:hover {
    background: var(--gold);
}

.play-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.play-icon::before {
    content: "";
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid #ffffff;
    margin-left: 3px;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 32px;
    margin-top: 36px;
    align-items: start;
}

.detail-article,
.side-card {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.detail-article {
    padding: 28px;
}

.article-block + .article-block {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.article-block h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.article-block p {
    margin: 0;
    color: #334155;
    font-size: 17px;
    line-height: 1.95;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.info-list div {
    border-radius: 16px;
    padding: 14px;
    background: #f8fafc;
}

.info-list dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.info-list dd {
    margin: 6px 0 0;
    font-weight: 800;
}

.side-links {
    display: grid;
    gap: 10px;
}

.side-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 14px;
    padding: 12px;
    background: #f8fafc;
    font-weight: 800;
}

.side-links a:hover {
    color: #0891b2;
    background: #ecfeff;
}

.side-links span {
    color: #ef4444;
    white-space: nowrap;
}

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

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

.search-page-form input {
    color: #0f172a;
}

.search-page-form button {
    position: absolute;
}

.site-footer {
    color: #e2e8f0;
    background: linear-gradient(135deg, #1e293b, #0f3f78 54%, #164e63);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
    padding: 54px 0 34px;
}

.footer-brand .brand-mark {
    background: rgba(6, 182, 212, 0.28);
}

.footer-brand strong,
.footer-brand small,
.site-footer h2,
.site-footer a {
    display: block;
}

.footer-brand strong {
    color: #ffffff;
    font-size: 22px;
}

.footer-brand small {
    margin-top: 4px;
    color: #a5f3fc;
}

.site-footer p {
    color: #cbd5e1;
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #67e8f9;
    font-size: 18px;
}

.site-footer a {
    margin: 10px 0;
    color: #cbd5e1;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 0 30px;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom div {
    display: flex;
    gap: 18px;
}

[hidden] {
    display: none !important;
}

video::-webkit-media-controls-panel {
    background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}

video::-webkit-media-controls-play-button {
    border-radius: 50%;
    background-color: rgba(14, 165, 233, 0.9);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.movie-card,
.category-panel,
.rank-panel,
.category-overview-card,
.detail-article,
.side-card {
    animation: fadeInUp 0.55s ease both;
}

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

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 70px 0 110px;
    }

    .hero-cover {
        display: none;
    }

    .search-band-inner,
    .split-section,
    .ranking-layout,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .full-rank-panel {
        position: static;
    }

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

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

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

@media (max-width: 760px) {
    .header-inner {
        height: 66px;
    }

    .brand-title {
        font-size: 20px;
    }

    .brand-subtitle {
        font-size: 11px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }

    .hero,
    .hero-slider {
        min-height: 580px;
    }

    .hero h1,
    .detail-copy h1,
    .page-hero h1 {
        letter-spacing: -0.04em;
    }

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

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

    .section-heading {
        display: grid;
        gap: 12px;
    }

    .movie-grid,
    .compact-grid,
    .related-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .detail-poster {
        width: min(260px, 100%);
    }

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

    .footer-bottom {
        display: grid;
    }
}

@media (max-width: 480px) {
    .movie-grid,
    .compact-grid,
    .related-grid {
        gap: 18px;
    }

    .hero-controls {
        bottom: 22px;
    }

    .search-band-inner {
        padding: 36px 0;
    }

    .footer-bottom div {
        flex-wrap: wrap;
    }
}
