/* ============================================
   NewCloud TV
   Claude / Anthropic-inspired editorial refresh
   Sources: getdesign claude DESIGN.md
   ============================================ */

:root {
    --paper: #f5f4ed;
    --ivory: #faf9f5;
    --white: #ffffff;
    --sand: #e8e6dc;
    --sand-deep: #d1cfc5;
    --ink: #141413;
    --ink-2: #30302e;
    --ink-3: #3d3d3a;
    --text-main: #141413;
    --text-secondary: #5e5d59;
    --text-muted: #87867f;
    --text-on-dark: #faf9f5;
    --text-on-dark-soft: #b0aea5;
    --accent: #c96442;
    --accent-soft: #d97757;
    --focus: #3898ec;
    --danger: #b53333;
    --border-soft: #f0eee6;
    --border-strong: #e8e6dc;
    --border-dark: #30302e;
    --ring: #d1cfc5;
    --ring-deep: #c2c0b6;
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-ring: 0 0 0 1px var(--ring);
    --shadow-ring-dark: 0 0 0 1px rgba(176, 174, 165, 0.18);
    --shadow-whisper: rgba(0, 0, 0, 0.05) 0 4px 24px;
    --shadow-deep: rgba(20, 20, 19, 0.12) 0 20px 48px;
    --transition-smooth: cubic-bezier(0.2, 0.65, 0.3, 1);
    --transition-gentle: cubic-bezier(0.22, 1, 0.36, 1);
    --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
    --font-ui: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SFMono-Regular", "SF Mono", "JetBrains Mono", "Roboto Mono", Consolas, monospace;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: var(--font-ui);
    background: var(--paper);
    color: var(--text-main);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(201, 100, 66, 0.14), transparent 24%),
        radial-gradient(circle at 86% 10%, rgba(217, 119, 87, 0.08), transparent 18%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0)),
        var(--paper);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    background:
        linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06)),
        radial-gradient(circle at 20% 20%, rgba(20, 20, 19, 0.028) 0, transparent 44%),
        radial-gradient(circle at 80% 0%, rgba(94, 93, 89, 0.04) 0, transparent 36%);
}

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

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

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

::selection {
    background: rgba(201, 100, 66, 0.18);
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid rgba(56, 152, 236, 0.2);
    outline-offset: 2px;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(94, 93, 89, 0.28);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(94, 93, 89, 0.42);
}

.navbar {
    position: fixed;
    inset: 0 0 auto;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 clamp(16px, 4vw, 56px);
    background: rgba(245, 244, 237, 0.86);
    border-bottom: 1px solid rgba(240, 238, 230, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 1000;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
    flex-shrink: 0;
}

.logo i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(201, 100, 66, 0.12);
    color: var(--accent);
    font-size: 18px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    position: relative;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.24s var(--transition-smooth);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -13px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
}

.search-box {
    position: relative;
    width: min(280px, 32vw);
}

.search-box > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 40px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(250, 249, 245, 0.92);
    color: var(--ink);
    box-shadow: 0 0 0 1px rgba(209, 207, 197, 0.08);
    transition:
        border-color 0.24s var(--transition-smooth),
        box-shadow 0.24s var(--transition-smooth),
        background 0.24s var(--transition-smooth);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box input:focus {
    border-color: rgba(56, 152, 236, 0.45);
    box-shadow: 0 0 0 4px rgba(56, 152, 236, 0.12);
    background: var(--white);
    outline: none;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 104px clamp(16px, 4vw, 48px) 56px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 14px;
}

.breadcrumb a {
    transition: color 0.24s var(--transition-smooth);
}

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

.breadcrumb .sep {
    color: rgba(135, 134, 127, 0.6);
}

.breadcrumb .current {
    color: var(--text-secondary);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: rgba(94, 93, 89, 0.34);
}

.page-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    gap: 24px;
    align-items: end;
    margin-bottom: 28px;
    padding: 28px 30px;
    background: rgba(250, 249, 245, 0.84);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-whisper);
}

.page-intro h1 {
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.page-intro p:last-child {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.7;
}

.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 22px;
    margin-bottom: 28px;
}

.hero-copy,
.hero-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.hero-copy {
    padding: clamp(28px, 4vw, 48px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0)),
        rgba(250, 249, 245, 0.84);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-whisper);
}

.hero-copy::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(201, 100, 66, 0.17), transparent 58%);
    pointer-events: none;
}

.hero-copy h1 {
    max-width: 10.5em;
    font-family: var(--font-display);
    font-size: clamp(42px, 6vw, 66px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--ink);
}

.hero-lede {
    max-width: 40rem;
    margin-top: 18px;
    color: var(--text-secondary);
    font-size: clamp(18px, 2vw, 21px);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-primary,
.btn-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 12px;
    background: var(--accent);
    color: var(--ivory);
    box-shadow: 0 0 0 1px var(--accent), rgba(201, 100, 66, 0.16) 0 14px 28px;
    font-size: 15px;
    font-weight: 600;
    transition:
        transform 0.24s var(--transition-gentle),
        box-shadow 0.24s var(--transition-smooth),
        background 0.24s var(--transition-smooth);
}

.hero-primary:hover,
.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px var(--accent), rgba(201, 100, 66, 0.24) 0 18px 32px;
    background: var(--accent-soft);
}

.hero-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 12px;
    background: rgba(232, 230, 220, 0.92);
    color: var(--ink-3);
    box-shadow: 0 0 0 1px var(--ring);
    font-size: 15px;
    font-weight: 600;
    transition:
        transform 0.24s var(--transition-gentle),
        box-shadow 0.24s var(--transition-smooth),
        background 0.24s var(--transition-smooth);
}

.hero-secondary:hover,
.btn-ghost:hover {
    transform: translateY(-2px);
    background: var(--white);
    box-shadow: 0 0 0 1px var(--ring-deep), var(--shadow-whisper);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 32px;
}

.hero-stat {
    min-height: 104px;
    padding: 18px 18px 16px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(240, 238, 230, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.hero-stat strong {
    display: block;
    margin-bottom: 10px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 500;
    line-height: 1;
}

.hero-stat span {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
}

.hero-panel {
    padding: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(217, 119, 87, 0.16), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
        var(--ink);
    border: 1px solid rgba(48, 48, 46, 0.92);
    box-shadow: rgba(20, 20, 19, 0.24) 0 24px 60px -20px;
}

.hero-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.hero-note {
    color: var(--text-on-dark);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-note.subtle {
    color: var(--text-on-dark-soft);
    letter-spacing: 0;
    text-transform: none;
}

.hero-feature {
    display: grid;
    grid-template-columns: 136px minmax(0, 1fr);
    gap: 16px;
    min-height: 212px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(250, 249, 245, 0.05);
    border: 1px solid rgba(176, 174, 165, 0.16);
    transition:
        transform 0.3s var(--transition-gentle),
        border-color 0.3s var(--transition-smooth),
        background 0.3s var(--transition-smooth);
}

.hero-feature:hover {
    transform: translateY(-2px);
    border-color: rgba(217, 119, 87, 0.34);
    background: rgba(250, 249, 245, 0.08);
}

.hero-feature-media {
    min-height: 180px;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(250, 249, 245, 0.08);
}

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

.hero-media-fallback,
.hero-feature-skeleton {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(217, 119, 87, 0.18), rgba(250, 249, 245, 0.05));
    color: rgba(250, 249, 245, 0.65);
    font-size: 36px;
}

.hero-feature-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(232, 230, 220, 0.12);
    color: var(--text-on-dark-soft);
    font-size: 12px;
}

.hero-feature-body h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 500;
    line-height: 1.12;
    color: var(--text-on-dark);
}

.hero-feature-body p {
    margin-top: 10px;
    color: var(--text-on-dark-soft);
    font-size: 15px;
    line-height: 1.65;
}

.hero-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.hero-mini {
    min-height: 132px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(250, 249, 245, 0.04);
    border: 1px solid rgba(176, 174, 165, 0.12);
    transition:
        transform 0.24s var(--transition-gentle),
        border-color 0.24s var(--transition-smooth),
        background 0.24s var(--transition-smooth);
}

.hero-mini:hover {
    transform: translateY(-2px);
    border-color: rgba(217, 119, 87, 0.28);
    background: rgba(250, 249, 245, 0.07);
}

.hero-mini-label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-on-dark-soft);
    font-size: 12px;
}

.hero-mini strong {
    display: block;
    color: var(--text-on-dark);
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.18;
}

.hero-mini p {
    margin-top: 8px;
    color: var(--text-on-dark-soft);
    font-size: 14px;
}

.placeholder {
    pointer-events: none;
}

.categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-bottom: 30px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories::-webkit-scrollbar {
    display: none;
}

.tag,
.detail-tag,
.filter-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(232, 230, 220, 0.78);
    border: 1px solid rgba(209, 207, 197, 0.94);
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
    transition:
        transform 0.22s var(--transition-gentle),
        background 0.22s var(--transition-smooth),
        border-color 0.22s var(--transition-smooth),
        color 0.22s var(--transition-smooth);
}

.tag:hover,
.detail-tag:hover,
.filter-item:hover {
    transform: translateY(-1px);
    background: var(--white);
    border-color: var(--ring);
    color: var(--ink);
}

.tag.active,
.filter-item.active,
.ep-btn.active,
.page-btn.active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--text-on-dark);
    box-shadow: var(--shadow-ring-dark);
}

.section {
    margin-bottom: 32px;
    padding: 24px;
    border-radius: var(--radius-xl);
    background: rgba(250, 249, 245, 0.84);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-whisper);
}

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

.section-title,
.search-hero h1,
.play-now-title {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(24px, 3vw, 38px);
}

.section-title::before {
    content: "";
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(201, 100, 66, 0.88), rgba(201, 100, 66, 0.14));
    box-shadow: 0 0 0 5px rgba(201, 100, 66, 0.08);
    flex-shrink: 0;
}

.view-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.22s var(--transition-smooth);
}

.view-more:hover {
    color: var(--accent);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}

.card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 22px;
    background: var(--ivory);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-whisper);
    transition:
        transform 0.32s var(--transition-gentle),
        box-shadow 0.32s var(--transition-smooth),
        border-color 0.32s var(--transition-smooth);
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 100, 66, 0.4);
    box-shadow: rgba(20, 20, 19, 0.08) 0 18px 38px;
}

.card-poster {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(250, 249, 245, 0.06), rgba(250, 249, 245, 0)),
        rgba(232, 230, 220, 0.76);
    transition:
        transform 0.42s var(--transition-gentle),
        filter 0.42s var(--transition-smooth);
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-poster::after {
    content: "\eafe";
    position: absolute;
    inset: auto auto 20px 18px;
    font-family: "remixicon";
    font-size: 42px;
    color: rgba(94, 93, 89, 0.12);
    z-index: -1;
}

.card:hover .card-poster {
    transform: scale(1.045);
    filter: saturate(1.03) contrast(1.01);
}

.card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(20, 20, 19, 0.02) 22%, rgba(20, 20, 19, 0.9) 92%);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 0;
    border-radius: 50%;
    transform: translate(-50%, -44%) scale(0.88);
    opacity: 0;
    background: rgba(250, 249, 245, 0.92);
    color: var(--accent);
    box-shadow: rgba(20, 20, 19, 0.18) 0 14px 32px;
}

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

.play-btn i {
    font-size: 22px;
}

.badge-top-left {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    max-width: calc(100% - 24px);
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(245, 244, 237, 0.88);
    border: 1px solid rgba(209, 207, 197, 0.92);
    color: var(--ink-3);
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.rating {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(20, 20, 19, 0.68);
    color: #f6c26c;
    font-size: 12px;
}

.card-info {
    position: relative;
    z-index: 1;
}

.card-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--text-on-dark);
    font-size: 15px;
    font-weight: 600;
}

.card-meta {
    margin-top: 6px;
    color: rgba(250, 249, 245, 0.72);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.quality-tag {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(250, 249, 245, 0.12);
    color: rgba(250, 249, 245, 0.9);
    font-size: 11px;
}

.glass-panel {
    background: rgba(250, 249, 245, 0.88);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    padding: 24px 28px;
    box-shadow: var(--shadow-whisper);
}

.filter-section {
    margin-bottom: 28px;
}

.filter-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 6px 0;
}

.filter-label {
    flex-shrink: 0;
    width: 48px;
    padding-top: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.filter-scroll {
    display: flex;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-scroll::-webkit-scrollbar {
    display: none;
}

.result-info,
.search-stats {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 15px;
}

.result-info em,
.search-stats em {
    color: var(--accent);
    font-style: normal;
    font-weight: 600;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
}

.page-btn,
.ep-btn,
.tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    background: rgba(232, 230, 220, 0.86);
    border: 1px solid rgba(209, 207, 197, 0.94);
    color: var(--text-secondary);
    transition:
        transform 0.22s var(--transition-gentle),
        background 0.22s var(--transition-smooth),
        color 0.22s var(--transition-smooth),
        border-color 0.22s var(--transition-smooth);
}

.page-btn:hover:not(.dots),
.ep-btn:hover,
.tool-btn:hover {
    transform: translateY(-1px);
    background: var(--white);
    border-color: var(--ring-deep);
    color: var(--ink);
}

.page-btn.dots {
    min-width: auto;
    padding: 0 2px;
    background: transparent;
    border-color: transparent;
    pointer-events: none;
}

.detail-hero {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 30px;
    margin-bottom: 32px;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: rgba(250, 249, 245, 0.88);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-whisper);
}

.detail-poster {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, rgba(232, 230, 220, 0.84), rgba(245, 244, 237, 0.86));
    box-shadow: var(--shadow-deep);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-poster-bg {
    position: absolute;
    inset: 0;
}

.detail-poster-bg::after {
    content: "\eafe";
    font-family: "remixicon";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: rgba(94, 93, 89, 0.16);
    font-size: 60px;
}

.detail-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    min-width: 0;
}

.detail-title {
    font-family: var(--font-display);
    font-size: clamp(38px, 6vw, 58px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.detail-subtitle {
    color: var(--text-muted);
    font-size: 16px;
}

.detail-rating-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.detail-score {
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 500;
    line-height: 1;
    color: var(--accent);
}

.detail-stars {
    display: flex;
    gap: 4px;
    color: #f1b85d;
    font-size: 18px;
}

.detail-stars .dim {
    color: rgba(241, 184, 93, 0.24);
}

.detail-votes {
    font-size: 13px;
    color: var(--text-muted);
}

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

.meta-grid {
    display: grid;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    word-break: break-word;
}

.meta-grid strong {
    color: var(--ink-3);
    font-weight: 600;
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.block-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 500;
    line-height: 1.2;
}

.block-title i {
    color: var(--accent);
    font-size: 22px;
}

.synopsis-text {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.9;
}

.ep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 10px;
}

.player-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 24px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(217, 119, 87, 0.14), transparent 24%),
        #0d0d0c;
    border: 1px solid rgba(48, 48, 46, 0.92);
    box-shadow: rgba(0, 0, 0, 0.34) 0 28px 70px -24px;
}

.player-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: rgba(250, 249, 245, 0.78);
}

.player-placeholder i {
    font-size: 64px;
    color: var(--accent-soft);
}

.play-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 26px;
    padding: 22px 24px;
    border-radius: var(--radius-lg);
    background: rgba(250, 249, 245, 0.84);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-whisper);
}

.play-now-title {
    font-size: clamp(28px, 4vw, 40px);
}

.play-now-title span {
    color: var(--text-secondary);
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
}

.play-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-hero {
    margin-bottom: 28px;
    padding: clamp(28px, 5vw, 42px);
    text-align: center;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 14% 18%, rgba(201, 100, 66, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0)),
        rgba(250, 249, 245, 0.84);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-whisper);
}

.search-hero h1 {
    font-size: clamp(38px, 6vw, 58px);
}

.search-big-input {
    position: relative;
    max-width: 620px;
    margin: 22px auto 0;
}

.search-big-input > i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 20px;
    pointer-events: none;
}

.search-big-input input {
    width: 100%;
    height: 58px;
    padding: 0 20px 0 52px;
    border-radius: 16px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.84);
    color: var(--ink);
    font-size: 16px;
    box-shadow: 0 0 0 1px rgba(209, 207, 197, 0.08);
    transition:
        border-color 0.24s var(--transition-smooth),
        box-shadow 0.24s var(--transition-smooth),
        background 0.24s var(--transition-smooth);
}

.search-big-input input:focus {
    outline: none;
    background: var(--white);
    border-color: rgba(56, 152, 236, 0.45);
    box-shadow: 0 0 0 4px rgba(56, 152, 236, 0.12);
}

.empty-state {
    padding: 72px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.empty-state i {
    display: block;
    margin-bottom: 16px;
    color: rgba(94, 93, 89, 0.22);
    font-size: 56px;
}

.site-footer {
    margin-top: 56px;
    padding: 38px clamp(16px, 4vw, 56px) 34px;
    text-align: center;
    background: var(--ink);
    border-top: 1px solid rgba(48, 48, 46, 0.98);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--text-on-dark);
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.footer-brand i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(217, 119, 87, 0.14);
    color: var(--accent-soft);
    font-size: 17px;
}

.footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.footer-nav a {
    color: var(--text-on-dark-soft);
    font-size: 14px;
    transition: color 0.24s var(--transition-smooth);
}

.footer-nav a:hover {
    color: var(--text-on-dark);
}

.footer-copy {
    color: rgba(176, 174, 165, 0.6);
    font-size: 12px;
}

.mobile-tabbar {
    display: none;
    position: fixed;
    inset: auto 0 0;
    height: 68px;
    padding: 0 10px env(safe-area-inset-bottom);
    background: rgba(250, 249, 245, 0.96);
    border-top: 1px solid rgba(240, 238, 230, 0.98);
    box-shadow: rgba(20, 20, 19, 0.06) 0 -10px 30px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
}

.tabbar-inner {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 6px;
    max-width: 520px;
    margin: 0 auto;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 58px;
    padding: 7px 8px;
    border-radius: 14px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
    transition:
        background 0.22s var(--transition-smooth),
        color 0.22s var(--transition-smooth),
        transform 0.22s var(--transition-gentle);
}

.tab-item i {
    font-size: 20px;
}

.tab-item.active {
    background: rgba(201, 100, 66, 0.12);
    color: var(--ink);
}

.tab-item.active i {
    color: var(--accent);
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--accent);
    color: var(--ivory);
    box-shadow: rgba(201, 100, 66, 0.26) 0 18px 34px -10px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition:
        opacity 0.24s var(--transition-smooth),
        transform 0.24s var(--transition-gentle),
        visibility 0.24s var(--transition-smooth),
        background 0.24s var(--transition-smooth);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-soft);
}

.back-to-top i {
    font-size: 20px;
}

.back-to-top .btt-ring {
    display: none;
}

.vp-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
    pointer-events: none;
}

.vp-loading,
.vp-buffering {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(250, 249, 245, 0.78);
    font-size: 13px;
    pointer-events: none;
}

.vp-spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid rgba(250, 249, 245, 0.12);
    border-top-color: var(--accent);
    animation: spin 0.8s linear infinite;
}

.vp-click-layer {
    position: absolute;
    inset: 0;
    z-index: 4;
    cursor: pointer;
}

.vp-big-play {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vp-big-play i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    padding-left: 4px;
    border-radius: 50%;
    background: rgba(201, 100, 66, 0.92);
    color: var(--ivory);
    font-size: 52px;
    box-shadow: rgba(201, 100, 66, 0.22) 0 20px 40px -10px;
}

.vp-unmute-tip {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(201, 100, 66, 0.94);
    color: var(--ivory);
    font-size: 13px;
    box-shadow: rgba(201, 100, 66, 0.2) 0 16px 30px -14px;
    white-space: nowrap;
    animation: unmutePulse 2s ease infinite;
}

@keyframes unmutePulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.72;
    }
}

.vp-speed-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 12;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(20, 20, 19, 0.82);
    color: var(--text-on-dark);
    font-size: 14px;
    font-weight: 600;
}

.vp-controls {
    position: absolute;
    inset: auto 0 0;
    z-index: 10;
    padding: 24px 16px 14px;
    background: linear-gradient(180deg, rgba(13, 13, 12, 0) 0%, rgba(13, 13, 12, 0.92) 88%);
    opacity: 0;
    transition: opacity 0.24s var(--transition-smooth);
}

.vp-controls.visible {
    opacity: 1;
}

.vp-progress {
    position: relative;
    display: flex;
    align-items: center;
    height: 20px;
    margin-bottom: 6px;
    cursor: pointer;
    touch-action: none;
}

.vp-progress::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: rgba(250, 249, 245, 0.16);
    transition: height 0.15s;
}

.vp-progress:hover::before,
.vp-progress:active::before {
    height: 6px;
}

.vp-progress-buffered,
.vp-progress-played {
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    transform: translateY(-50%);
    border-radius: 999px;
    transition: height 0.15s;
}

.vp-progress-buffered {
    background: rgba(250, 249, 245, 0.28);
}

.vp-progress-played {
    background: var(--accent);
}

.vp-progress:hover .vp-progress-buffered,
.vp-progress:hover .vp-progress-played,
.vp-progress:active .vp-progress-buffered,
.vp-progress:active .vp-progress-played {
    height: 6px;
}

.vp-progress-thumb {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--white);
    box-shadow: rgba(201, 100, 66, 0.24) 0 0 0 4px;
    opacity: 0;
    transition: opacity 0.15s;
}

.vp-progress:hover .vp-progress-thumb,
.vp-progress:active .vp-progress-thumb {
    opacity: 1;
}

.vp-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.vp-controls-left,
.vp-controls-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 0 8px;
    border-radius: 10px;
    color: var(--text-on-dark);
    font-size: 20px;
    transition: background 0.15s var(--transition-smooth);
}

.vp-btn:hover {
    background: rgba(250, 249, 245, 0.12);
}

.vp-text-btn {
    min-width: auto;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.vp-time {
    margin-left: 8px;
    color: rgba(250, 249, 245, 0.74);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    user-select: none;
}

.vp-menu-wrap {
    position: relative;
}

.vp-popup {
    position: absolute;
    left: 50%;
    bottom: 100%;
    min-width: 92px;
    margin-bottom: 10px;
    padding: 6px;
    border-radius: 12px;
    transform: translateX(-50%);
    background: rgba(20, 20, 19, 0.95);
    border: 1px solid rgba(176, 174, 165, 0.18);
    box-shadow: rgba(0, 0, 0, 0.24) 0 12px 32px;
    z-index: 20;
}

.vp-popup-title {
    padding: 4px 10px 6px;
    color: rgba(176, 174, 165, 0.56);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    user-select: none;
}

.vp-popup-item {
    padding: 7px 14px;
    border-radius: 8px;
    color: rgba(250, 249, 245, 0.78);
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
    transition: background 0.15s var(--transition-smooth), color 0.15s var(--transition-smooth);
}

.vp-popup-item:hover {
    background: rgba(250, 249, 245, 0.09);
    color: var(--text-on-dark);
}

.vp-popup-item.active {
    color: var(--accent-soft);
    font-weight: 600;
}

.vp-volume-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.vp-volume-slider {
    display: flex;
    align-items: center;
    width: 0;
    overflow: hidden;
    transition: width 0.24s var(--transition-smooth);
}

.vp-volume-wrap:hover .vp-volume-slider,
.vp-volume-wrap.expanded .vp-volume-slider {
    width: 86px;
    padding-right: 4px;
}

.vp-vol-range {
    width: 78px;
    height: 4px;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 999px;
    background: rgba(250, 249, 245, 0.22);
    outline: none;
}

.vp-vol-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: var(--accent);
}

.vp-vol-range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: var(--accent);
}

.vp-progress-tip {
    position: absolute;
    bottom: 100%;
    margin-bottom: 8px;
    padding: 3px 8px;
    border-radius: 6px;
    transform: translateX(-50%);
    background: rgba(20, 20, 19, 0.92);
    color: var(--text-on-dark);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    pointer-events: none;
}

.vp-top-bar {
    position: absolute;
    inset: 0 0 auto;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(180deg, rgba(13, 13, 12, 0.92), rgba(13, 13, 12, 0));
    opacity: 0;
    transition: opacity 0.24s var(--transition-smooth);
    pointer-events: none;
}

.vp-top-bar.visible {
    opacity: 1;
    pointer-events: auto;
}

.vp-top-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--text-on-dark);
    font-size: 14px;
    font-weight: 500;
}

.player-wrap,
.player-wrap *,
.vp-click-layer,
.vp-controls,
.vp-controls *,
.vp-top-bar,
.vp-top-bar *,
.vp-big-play,
.vp-unmute-tip {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.player-wrap:fullscreen {
    background: #000;
}

.player-wrap:fullscreen .vp-video {
    object-fit: contain;
}

.player-wrap:fullscreen .vp-controls {
    padding-bottom: 16px;
}

.vp-inner {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.player-wrap:fullscreen.is-portrait {
    overflow: hidden;
}

.player-wrap:fullscreen.is-portrait .vp-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vh;
    height: 100vw;
    transform: translate(-50%, -50%) rotate(-90deg);
}

button.tool-btn {
    cursor: pointer;
}

.skeleton {
    border-radius: 18px;
    background:
        linear-gradient(90deg, rgba(232, 230, 220, 0.72) 25%, rgba(255, 255, 255, 0.88) 50%, rgba(232, 230, 220, 0.72) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.8s ease-in-out infinite;
}

.skeleton-card {
    aspect-ratio: 2 / 3;
}

.skeleton-tag {
    display: inline-block;
    width: 72px;
    height: 34px;
    border-radius: 999px;
}

.skeleton-title {
    width: 120px;
    height: 24px;
    border-radius: 8px;
}

.skeleton-text {
    height: 16px;
    border-radius: 6px;
}

.section-loading {
    position: relative;
    min-height: 200px;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 60px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.loading-spinner::before {
    content: "";
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(209, 207, 197, 0.48);
    border-top-color: var(--accent);
    animation: spin 0.8s linear infinite;
}

.fade-in {
    animation: fadeIn 0.38s var(--transition-gentle);
}

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes skeleton-pulse {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@media (max-width: 1120px) {
    .hero-shell {
        grid-template-columns: 1fr;
    }

    .page-intro {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .navbar {
        gap: 16px;
    }

    .nav-links {
        display: none;
    }

    .search-box {
        width: min(210px, 44vw);
    }

    .detail-hero {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 64px;
        padding: 0 16px;
    }

    .logo {
        font-size: 24px;
    }

    .logo i {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .search-box {
        width: 160px;
    }

    .search-box input {
        height: 40px;
    }

    .container {
        padding-top: 88px;
        padding-bottom: 92px;
    }

    .mobile-tabbar {
        display: block;
    }

    .hero-copy,
    .hero-panel,
    .section,
    .page-intro,
    .search-hero,
    .detail-hero,
    .glass-panel,
    .play-info-bar {
        border-radius: 24px;
    }

    .hero-copy,
    .hero-panel,
    .section,
    .search-hero,
    .play-info-bar {
        padding: 20px;
    }

    .hero-stats,
    .hero-mini-grid {
        grid-template-columns: 1fr;
    }

    .hero-feature {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .hero-feature-media,
    .hero-feature-skeleton {
        min-height: 160px;
    }

    .section-title,
    .block-title {
        font-size: 28px;
    }

    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .card-overlay {
        padding: 12px;
    }

    .card-title {
        font-size: 13px;
    }

    .card-meta {
        font-size: 11px;
    }

    .play-btn {
        width: 44px;
        height: 44px;
        min-height: 44px;
    }

    .play-btn i {
        font-size: 18px;
    }

    .detail-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .detail-rating-row,
    .detail-tags,
    .detail-actions {
        justify-content: center;
    }

    .meta-grid {
        text-align: left;
    }

    .filter-row {
        gap: 10px;
    }

    .filter-label {
        width: auto;
        padding-top: 10px;
    }

    .site-footer {
        padding-bottom: 94px;
    }

    .back-to-top {
        right: 16px;
        bottom: 84px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 560px) {
    .search-box {
        width: 128px;
    }

    .hero-copy h1,
    .search-hero h1,
    .detail-title,
    .page-intro h1 {
        font-size: clamp(32px, 11vw, 44px);
    }

    .hero-lede,
    .page-intro p:last-child {
        font-size: 16px;
    }

    .hero-feature {
        grid-template-columns: 1fr;
    }

    .hero-feature-media,
    .hero-feature-skeleton {
        min-height: 220px;
    }

    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .badge-top-left,
    .rating {
        top: 8px;
        left: 8px;
    }

    .rating {
        left: auto;
        right: 8px;
    }

    .page-btn,
    .ep-btn,
    .tool-btn {
        min-height: 40px;
        padding: 0 12px;
    }

    .play-toolbar {
        width: 100%;
    }

    .play-toolbar .tool-btn {
        flex: 1;
    }

    .vp-controls {
        padding: 18px 10px 10px;
    }

    .vp-time {
        display: none;
    }

    .vp-controls-row {
        gap: 6px;
    }
}

@media (max-width: 420px) {
    .logo {
        font-size: 21px;
    }

    .search-box {
        width: 112px;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-copy,
    .hero-panel,
    .section,
    .page-intro,
    .search-hero,
    .play-info-bar,
    .glass-panel {
        padding: 18px;
    }

    .grid {
        gap: 8px;
    }

    .card-title {
        font-size: 12px;
    }

    .card-meta {
        font-size: 10px;
    }

    .detail-poster {
        width: min(180px, 60vw);
    }

    .hero-primary,
    .hero-secondary,
    .btn-play,
    .btn-ghost {
        width: 100%;
    }

    .footer-brand {
        font-size: 24px;
    }
}
