/* ═══════════════════════════════════════════════════════════════════════════
   home.css — home page (albums view). Shared theme lives in site.css.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Toolbar: category chips + search ───────────────────────────────────── */
html.native-dark #catalog-toolbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 32px 0;
    margin: 0 0 20px;
    border: 0;
    background: transparent;
}

html.native-dark #catalog-filter-bar {
    justify-content: flex-start;
    gap: 8px;
}

html.native-dark .catalog-filter-btn {
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-2);
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 8px 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

html.native-dark .catalog-filter-btn[data-cat]:not([data-cat="featured"]):not([data-cat="trending"])::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--chip, var(--text-3));
}

html.native-dark .catalog-filter-btn[data-cat="game"]   { --chip: var(--c-game); }
html.native-dark .catalog-filter-btn[data-cat="movie"]  { --chip: var(--c-movie); }
html.native-dark .catalog-filter-btn[data-cat="anime"]  { --chip: var(--c-anime); }
html.native-dark .catalog-filter-btn[data-cat="tvshow"] { --chip: var(--c-tvshow); }

html.native-dark .catalog-filter-btn:hover {
    color: var(--text);
    background: var(--surface-2);
    border-color: var(--line-2);
}

html.native-dark .catalog-filter-btn.active,
html.native-dark .catalog-filter-btn.active[data-cat] {
    color: #0a0a0c;
    background: #fff;
    border-color: #fff;
    font-weight: 600;
}

html.native-dark .catalog-search-wrap {
    width: 340px;
    flex-shrink: 0;
    justify-content: flex-end;
}

html.native-dark .catalog-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
    pointer-events: none;
}

html.native-dark .catalog-search-wrap input,
html.native-dark .catalog-search-wrap input:focus {
    width: 100%;
    max-width: none;
}

html.native-dark .catalog-search-wrap input {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 0.9rem;
    padding: 10px 18px 10px 42px;
    transition: border-color 0.15s, background 0.15s;
}

html.native-dark .catalog-search-wrap input:focus {
    border-color: rgba(255, 255, 255, 0.28);
    background: var(--surface-2);
}

html.native-dark .catalog-search-wrap input::placeholder { color: var(--text-3); }

html.native-dark .catalog-search-wrap input:focus-visible { outline: none; }

/* Search dropdown */
html.native-dark #search-dropdown {
    left: auto;
    right: 0;
    transform: none;
    width: 440px;
    max-width: calc(100vw - 32px);
    background: var(--surface-2);
    border: 1px solid var(--line-2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    border-radius: 14px;
}

html.native-dark .sd-album { border-bottom-color: var(--line); }
html.native-dark .sd-album:hover { background: var(--surface-3); }
html.native-dark .sd-album-art { background-color: var(--surface-3); }
html.native-dark .sd-album-title { color: var(--text); }
html.native-dark .sd-album-title mark { background: rgba(167, 139, 250, 0.3); color: #fff; }
html.native-dark .sd-album-composer,
html.native-dark .sd-no-results { color: var(--text-3); }

html.native-dark .sd-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    border: 0;
    border-top: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font: 600 0.85rem var(--font);
    cursor: pointer;
    text-align: left;
}

html.native-dark .sd-all:hover { background: var(--surface-3); }

html.native-dark .sd-all kbd {
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid var(--line-2);
    font: 600 0.7rem var(--font);
    color: var(--text-3);
}

/* Full search results heading (above the results grid) */
html.native-dark #search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

html.native-dark #search-head[hidden] { display: none; }

html.native-dark #search-head h2 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

html.native-dark .search-clear-btn {
    flex-shrink: 0;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: var(--surface);
    color: var(--text);
    font: 600 0.82rem var(--font);
    cursor: pointer;
}

html.native-dark .search-clear-btn:hover { background: var(--surface-2); }

/* ── Main layout ────────────────────────────────────────────────────────── */
html.native-dark #albums-layout {
    gap: 32px;
    padding: 0 32px;
    margin-bottom: 72px;
}

/* The rail is taller than the viewport, so it scrolls with the page instead of
   being a sticky column with its own scrollbar (which hid the lower cards). */
html.native-dark #right-panel {
    width: 320px;
    position: static;
    max-height: none;
    overflow: visible;
    gap: 16px;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
html.native-dark #catalog-hero {
    height: 340px;
    border-radius: 20px;
    margin-bottom: 40px;
    background: var(--surface);
    border: 1px solid var(--line);
    isolation: isolate;
}

html.native-dark .hero-bg-blur {
    inset: -60px;
    filter: blur(60px) saturate(1.4) brightness(0.55);
    transform: scale(1.1);
    animation: heroDrift 20s ease-in-out infinite alternate;
}

@keyframes heroDrift {
    from { transform: scale(1.1) translate(0, 0); }
    to   { transform: scale(1.2) translate(-3%, 2%); }
}

html.native-dark .hero-overlay {
    background:
        linear-gradient(90deg, rgba(10, 10, 12, 0.55) 0%, rgba(10, 10, 12, 0.15) 60%, rgba(10, 10, 12, 0) 100%),
        linear-gradient(0deg, rgba(10, 10, 12, 0.5) 0%, transparent 50%);
}

html.native-dark .hero-inner {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 36px;
    padding: 36px 40px;
}

/* The cover (reuses .hero-bg-art so loadHeroArt fills it) */
html.native-dark .hero-bg-art {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    width: 268px;
    height: 268px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
    animation: none;
    transition: transform 0.35s ease;
}

html.native-dark #catalog-hero:hover .hero-bg-art { transform: scale(1.02) rotate(-0.5deg); }

html.native-dark .hero-info {
    position: static;
    padding: 0;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

html.native-dark .hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
}

html.native-dark .hero-eyebrow-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

html.native-dark .hero-title {
    font-size: clamp(1.7rem, 2.6vw, 2.6rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: #fff;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

html.native-dark #catalog-hero:hover .hero-title { text-decoration: none; }

html.native-dark .hero-composers {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
}

html.native-dark .hero-composer-link { color: inherit; }
html.native-dark .hero-composer-link:hover { color: #fff; text-decoration: underline; }

html.native-dark .hero-cta {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 11px 22px;
    border-radius: 999px;
    background: #fff;
    color: #0a0a0c;
    font-size: 0.9rem;
    font-weight: 700;
    transition: transform 0.15s, background 0.15s;
}

html.native-dark #catalog-hero:hover .hero-cta { background: #e4e4e7; }
html.native-dark #catalog-hero:hover .hero-cta svg { transform: translateX(2px); }
html.native-dark .hero-cta svg { transition: transform 0.15s; }

html.native-dark .hero-pager {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

html.native-dark .hero-nav {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
}

html.native-dark .hero-nav:hover { background: rgba(255, 255, 255, 0.16); }

html.native-dark .hero-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    font-variant-numeric: tabular-nums;
    min-width: 44px;
    text-align: center;
}

html.native-dark .hero-progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.55);
}

html.native-dark #catalog-hero .tag {
    font-size: 0.64rem;
    padding: 3px 9px;
    letter-spacing: 0.08em;
}

/* ── Category rows ──────────────────────────────────────────────────────── */
html.native-dark #category-rows { margin: 0; }

html.native-dark .cat-row { margin-bottom: 44px; }

html.native-dark .cat-row-header {
    align-items: center;
    margin-bottom: 16px;
}

html.native-dark .cat-row-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

html.native-dark .cat-row-title::before {
    content: '';
    width: 4px;
    height: 20px;
    border-radius: 2px;
    background: var(--row-accent, var(--text-3));
}

html.native-dark .cat-row[data-cat="anime"]  { --row-accent: var(--c-anime); }
html.native-dark .cat-row[data-cat="game"]   { --row-accent: var(--c-game); }
html.native-dark .cat-row[data-cat="movie"]  { --row-accent: var(--c-movie); }
html.native-dark .cat-row[data-cat="tvshow"] { --row-accent: var(--c-tvshow); }

html.native-dark .cat-row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

html.native-dark .cat-row-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-2);
    text-decoration: none;
    padding: 6px 10px;
    margin-right: 4px;
    border-radius: 8px;
    transition: color 0.15s;
}

html.native-dark .cat-row-link:hover { color: var(--text); }

html.native-dark .cat-row-arrow {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: var(--surface);
    color: var(--text-2);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

html.native-dark .cat-row-arrow:hover {
    background: var(--surface-3);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.22);
}

html.native-dark .cat-row-scroll {
    gap: 18px;
    padding: 4px 0 8px;
    scroll-snap-type: x proximity;
}

html.native-dark .cat-row-card {
    flex: 0 0 172px;
    scroll-snap-align: start;
    border-radius: 12px;
    outline: none;
}

html.native-dark .cat-row-card-art {
    width: 172px;
    height: 172px;
    border-radius: 12px;
    background-color: var(--surface-2);
    color: var(--text-3);
    margin-bottom: 12px;
    box-shadow: 0 0 0 1px var(--line);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

html.native-dark .cat-row-card:hover .cat-row-card-art,
html.native-dark .cat-row-card:focus-visible .cat-row-card-art {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--line-2);
}

html.native-dark .cat-row-card:focus-visible .cat-row-card-art {
    box-shadow: 0 0 0 2px #fff;
}

html.native-dark .cat-row-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

html.native-dark .cat-row-card-composer {
    font-size: 0.78rem;
    color: var(--text-3);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html.native-dark .cat-row-see-all {
    flex: 0 0 172px;
    height: 172px;
    flex-direction: column;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-2);
    background: var(--surface);
    border: 1px dashed var(--line-2);
    border-radius: 12px;
}

html.native-dark .cat-row-see-all:hover {
    background: var(--surface-2);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ── Catalog grid (Trending + search results) ───────────────────────────── */
html.native-dark #catalog-list {
    grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
    gap: 20px;
}

html.native-dark .catalog-row {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
}

html.native-dark .catalog-row:hover {
    border-color: var(--line-2);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}

html.native-dark .catalog-thumb { background-color: var(--surface-2); }
html.native-dark .catalog-info { padding: 12px 14px 14px; gap: 6px; }
html.native-dark .catalog-title { color: var(--text); font-size: 0.875rem; }
html.native-dark .catalog-composer { color: var(--text-3); font-size: 0.78rem; }
html.native-dark .catalog-composer:hover { color: var(--text); }

html.native-dark .catalog-loading,
html.native-dark .trending-status { color: var(--text-3); }

/* ── Right panel cards ──────────────────────────────────────────────────── */
html.native-dark #popular-sidebar,
html.native-dark .chart-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
}

html.native-dark .panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

html.native-dark .pop-heading {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--text);
    margin-bottom: 14px;
}

html.native-dark .panel-head .pop-heading { margin-bottom: 0; }

/* Segmented controls */
html.native-dark .seg {
    display: flex;
    gap: 2px;
    padding: 3px;
    margin-bottom: 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
}

html.native-dark .pop-tab {
    flex: 1;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-3);
    background: transparent;
    border: 0;
    border-radius: 7px;
    padding: 6px 0;
    transition: color 0.15s, background 0.15s;
}

html.native-dark .pop-tab:hover { color: var(--text); border: 0; }

html.native-dark .pop-tab.active {
    color: var(--text);
    background: var(--surface-3);
    font-weight: 600;
}

/* Chart lists */
html.native-dark #popular-list,
html.native-dark #most-rated-list,
html.native-dark #top-rated-list,
html.native-dark #recently-added-list {
    gap: 4px;
    margin: 0;
}

html.native-dark #popular-list li,
html.native-dark #most-rated-list li,
html.native-dark #top-rated-list li,
html.native-dark .recently-added-item {
    gap: 12px;
    padding: 6px;
    margin: 0 -6px;
    border-radius: 10px;
    transition: background 0.12s;
}

html.native-dark #popular-list li:hover,
html.native-dark #most-rated-list li:hover,
html.native-dark #top-rated-list li:hover,
html.native-dark .recently-added-item:hover {
    background: var(--surface-2);
}

html.native-dark .pop-rank,
html.native-dark .recently-added-num {
    width: 18px;
    min-width: 18px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-3);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

html.native-dark #popular-list li:nth-child(-n+3) .pop-rank,
html.native-dark #top-rated-list li:nth-child(-n+3) .pop-rank,
html.native-dark #most-rated-list li:nth-child(-n+3) .pop-rank {
    color: var(--text);
}

html.native-dark .pop-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-color: var(--surface-3);
    box-shadow: 0 0 0 1px var(--line);
}

html.native-dark .pop-thumb-placeholder {
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
}

html.native-dark .pop-item,
html.native-dark .recently-added-info { gap: 3px; }

html.native-dark .pop-title,
html.native-dark .recently-added-title {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text);
}

html.native-dark .pop-item:hover .pop-title,
html.native-dark .recently-added-title:hover {
    color: #fff;
    text-decoration: none;
}

html.native-dark .pop-composer,
html.native-dark .recently-added-composer {
    font-size: 0.75rem;
    color: var(--text-3);
}

html.native-dark .pop-count {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-2);
    white-space: nowrap;
}

html.native-dark .pop-loading,
html.native-dark .pop-empty {
    font-size: 0.8rem;
    color: var(--text-3);
    padding: 6px 0;
}

html.native-dark #recently-added-list { margin-bottom: 0; }

html.native-dark #recently-added-showall {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-2);
    padding: 0;
    border: 0;
    white-space: nowrap;
}

html.native-dark #recently-added-showall:hover { color: var(--text); }

/* Upcoming shows */
html.native-dark .lw-img,
html.native-dark .lw-img-placeholder {
    border-radius: 10px;
    background: var(--surface-2);
    margin-bottom: 12px;
}

html.native-dark .lw-date {
    font-size: 0.7rem;
    color: var(--c-movie);
    letter-spacing: 0.1em;
}

html.native-dark .lw-name { font-size: 0.92rem; font-weight: 700; color: var(--text); }
html.native-dark .lw-location { font-size: 0.78rem; color: var(--text-3); }
html.native-dark .lw-tickets { font-size: 0.8rem; font-weight: 600; color: var(--text); }
html.native-dark #live-widget-card a:hover .lw-tickets { text-decoration: underline; }

html.native-dark .lw-dot { background: var(--surface-3); }
html.native-dark .lw-dot.active { background: var(--text); width: 16px; border-radius: 3px; }
html.native-dark .lw-dot { transition: background 0.2s, width 0.2s; }

/* ── Composers tab (directory) ──────────────────────────────────────────── */
html.native-dark #composers-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 36px 32px 80px;
}

html.native-dark .cd-head { margin-bottom: 24px; }

html.native-dark .cd-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    color: var(--text);
    margin-bottom: 8px;
}

html.native-dark .cd-sub { font-size: 1rem; color: var(--text-2); }

html.native-dark .cd-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

html.native-dark .cd-search {
    position: relative;
    flex: 1;
    min-width: 0;
}

html.native-dark .cd-search svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
    pointer-events: none;
}

html.native-dark #composer-search {
    width: 100%;
    max-width: none;
    height: 46px;
    padding: 0 16px 0 44px;
    border-radius: 12px;
    border: 1px solid var(--line-2);
    background: var(--surface);
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}

html.native-dark #composer-search::placeholder { color: var(--text-3); }
html.native-dark #composer-search::-webkit-search-cancel-button { filter: invert(1) opacity(0.5); }
html.native-dark #composer-search:focus { border-color: rgba(255, 255, 255, 0.35); background: var(--surface-2); }
html.native-dark #composer-search:focus-visible { outline: none; }

html.native-dark .cd-seg {
    display: flex;
    flex-shrink: 0;
    gap: 2px;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--line-2);
    background: var(--surface);
}

html.native-dark .composer-sort-btn {
    height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-2);
    font: 600 0.85rem var(--font);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

html.native-dark .composer-sort-btn:hover { color: var(--text); }
html.native-dark .composer-sort-btn.active { background: #fff; color: #0a0a0c; }

html.native-dark .cd-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 20px;
}

html.native-dark .cd-chips::-webkit-scrollbar { display: none; }

html.native-dark .cd-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text-2);
    font: 500 0.82rem var(--font);
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

html.native-dark .cd-chip:hover { color: var(--text); border-color: var(--line-2); background: var(--surface); }
html.native-dark .cd-chip[aria-pressed="true"] { color: var(--text); background: var(--surface-2); border-color: rgba(255, 255, 255, 0.28); }

/* A–Z jump bar — sticks under the header while browsing the long list */
html.native-dark .cd-letters {
    position: sticky;
    top: var(--header-h);
    z-index: 30;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 8px 0;
    margin-bottom: 8px;
    border: 0;
    justify-content: flex-start;
    background: rgba(10, 10, 12, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

html.native-dark .cd-letters[hidden] { display: none; }

html.native-dark .cd-letters button {
    min-width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-2);
    font: 700 0.8rem var(--font);
    cursor: pointer;
}

html.native-dark .cd-letters button:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
html.native-dark .cd-letters button:disabled { color: var(--surface-3); cursor: default; }

html.native-dark .cd-status {
    min-height: 1.2em;
    margin-bottom: 18px;
    font-size: 0.85rem;
    color: var(--text-3);
}

html.native-dark .cd-link {
    border: 0;
    padding: 0;
    background: none;
    color: var(--text-2);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

html.native-dark .cd-link:hover { color: var(--text); }

html.native-dark .cd-section { margin-bottom: 44px; scroll-margin-top: calc(var(--header-h) + 56px); }

html.native-dark .cd-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

html.native-dark .cd-section-title[data-cat]::before {
    content: '';
    width: 4px;
    height: 20px;
    border-radius: 2px;
    background: var(--text-3);
}

html.native-dark .cd-section-title[data-cat="anime"]::before  { background: var(--c-anime); }
html.native-dark .cd-section-title[data-cat="game"]::before   { background: var(--c-game); }
html.native-dark .cd-section-title[data-cat="movie"]::before  { background: var(--c-movie); }
html.native-dark .cd-section-title[data-cat="tvshow"]::before { background: var(--c-tvshow); }

html.native-dark .cd-letter-title {
    font-size: 1.6rem;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

html.native-dark .cd-empty {
    padding: 64px 20px;
    text-align: center;
    color: var(--text-2);
    border: 1px dashed var(--line-2);
    border-radius: 16px;
}

/* ── Live Shows tab ─────────────────────────────────────────────────────── */
html.native-dark .lv {
    max-width: 1320px;
    margin: 0 auto;
    padding: 36px 32px 80px;
}

html.native-dark .lv-head { margin-bottom: 24px; }

html.native-dark .lv-head h1,
html.native-dark .st-title,
html.native-dark .ab-hero h1,
html.native-dark .up-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.06;
    color: var(--text);
}

html.native-dark .lv-head p { margin-top: 8px; font-size: 1rem; color: var(--text-2); }

html.native-dark .lv-search {
    position: relative;
    max-width: 560px;
    margin-bottom: 14px;
}

html.native-dark .lv-search svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
    pointer-events: none;
}

html.native-dark #live-search {
    width: 100%;
    height: 46px;
    padding: 0 16px 0 44px;
    border-radius: 12px;
    border: 1px solid var(--line-2);
    background: var(--surface);
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
}

html.native-dark #live-search::placeholder { color: var(--text-3); }
html.native-dark #live-search:focus { border-color: rgba(255, 255, 255, 0.35); background: var(--surface-2); }
html.native-dark #live-search:focus-visible { outline: none; }
html.native-dark #live-search::-webkit-search-cancel-button { filter: invert(1) opacity(0.5); }

html.native-dark .lv-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 16px;
}

html.native-dark .lv-chips::-webkit-scrollbar { display: none; }

html.native-dark .live-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text-2);
    font: 500 0.82rem var(--font);
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

html.native-dark .live-filter-btn:hover { color: var(--text); border-color: var(--line-2); background: var(--surface); }
html.native-dark .live-filter-btn.active { color: #0a0a0c; background: #fff; border-color: #fff; font-weight: 600; }

html.native-dark .live-filter-btn i,
html.native-dark .ab-stat i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-3);
}

html.native-dark [data-cat="anime"]  > i, html.native-dark i[data-cat="anime"]  { background: var(--c-anime); }
html.native-dark [data-cat="game"]   > i, html.native-dark i[data-cat="game"]   { background: var(--c-game); }
html.native-dark [data-cat="movie"]  > i, html.native-dark i[data-cat="movie"]  { background: var(--c-movie); }
html.native-dark [data-cat="tvshow"] > i, html.native-dark i[data-cat="tvshow"] { background: var(--c-tvshow); }

html.native-dark .lv-status {
    min-height: 1.2em;
    margin-bottom: 18px;
    font-size: 0.85rem;
    color: var(--text-3);
}

html.native-dark .lv-month { margin-bottom: 40px; }

html.native-dark .lv-month h2 {
    padding-bottom: 10px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text);
}

html.native-dark .lv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

html.native-dark .lv-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

html.native-dark .lv-card:not(.is-skeleton):hover {
    transform: translateY(-3px);
    border-color: var(--line-2);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

html.native-dark .lv-card-img {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--surface-3), var(--surface-2)) center / cover no-repeat;
}

html.native-dark .lv-date {
    position: absolute;
    left: 12px;
    top: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(10, 10, 12, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    line-height: 1.05;
}

html.native-dark .lv-date span { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; color: #fca5a5; }
html.native-dark .lv-date strong { font-size: 1.35rem; font-weight: 800; color: #fff; }

html.native-dark .lv-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
    padding: 14px 16px 16px;
}

html.native-dark .lv-card-body .tag { align-self: flex-start; }

html.native-dark .lv-card-body h3 {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

html.native-dark .lv-venue { font-size: 0.85rem; color: var(--text-2); }
html.native-dark .lv-when { font-size: 0.8rem; color: var(--text-3); }
html.native-dark .lv-venue:empty, html.native-dark .lv-when:empty { display: none; }

html.native-dark .lv-tickets {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding-top: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
}

html.native-dark .lv-card:hover .lv-tickets { text-decoration: underline; text-underline-offset: 3px; }

html.native-dark .lv-card.is-skeleton .lv-card-img,
html.native-dark .lv-skel {
    background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
    background-size: 200% 100%;
    animation: cdShimmer 1.3s ease-in-out infinite;
}

html.native-dark .lv-skel { height: 12px; border-radius: 6px; margin-bottom: 8px; }
html.native-dark .lv-skel.short { width: 55%; }

html.native-dark .lv-empty {
    padding: 56px 20px;
    text-align: center;
    color: var(--text-2);
    border: 1px dashed var(--line-2);
    border-radius: 16px;
}

html.native-dark .lv-credit { margin-top: 12px; font-size: 0.78rem; color: var(--text-3); }

/* ── About tab ──────────────────────────────────────────────────────────── */
html.native-dark .ab {
    max-width: 1040px;
    margin: 0 auto;
    padding: 48px 32px 80px;
}

html.native-dark .ab-eyebrow,
html.native-dark .up-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-movie);
    margin-bottom: 12px;
}

html.native-dark .ab-hero { max-width: 760px; margin-bottom: 36px; }
html.native-dark .ab-lead { margin-top: 16px; font-size: 1.1rem; line-height: 1.6; color: var(--text-2); }

html.native-dark .ab-stats {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 56px;
}

html.native-dark .ab-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

html.native-dark a.ab-stat:hover { background: var(--surface-2); border-color: var(--line-2); }
html.native-dark .ab-stat i { margin-bottom: 6px; }
html.native-dark .ab-stat strong { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
html.native-dark .ab-stat span { font-size: 0.85rem; color: var(--text-3); }

html.native-dark .ab-stat-total {
    background: linear-gradient(135deg, color-mix(in srgb, var(--c-movie) 22%, var(--surface)), var(--surface));
    border-color: color-mix(in srgb, var(--c-movie) 30%, transparent);
    justify-content: flex-end;
}

html.native-dark .ab-stat-total strong { font-size: 2.4rem; }

html.native-dark .ab-h2 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 18px;
}

html.native-dark .ab-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 56px;
}

html.native-dark .ab-feature {
    padding: 22px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
}

html.native-dark .ab-feature svg { color: var(--text); margin-bottom: 14px; }
html.native-dark .ab-feature h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
html.native-dark .ab-feature p { font-size: 0.88rem; line-height: 1.55; color: var(--text-2); }

html.native-dark .ab-text { max-width: 680px; margin-bottom: 16px; font-size: 0.95rem; line-height: 1.6; color: var(--text-2); }

html.native-dark .ab-sources {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 32px;
    margin-bottom: 48px;
}

html.native-dark .ab-sources li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

html.native-dark .ab-sources a { font-size: 0.92rem; font-weight: 600; color: var(--text); text-decoration: none; }
html.native-dark .ab-sources a:hover { text-decoration: underline; text-underline-offset: 3px; }
html.native-dark .ab-sources span { font-size: 0.82rem; color: var(--text-3); text-align: right; }

html.native-dark .ab-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 28px;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--c-movie) 35%, transparent);
    background: linear-gradient(120deg, color-mix(in srgb, var(--c-movie) 18%, var(--surface)), var(--surface) 70%);
    margin-bottom: 28px;
}

html.native-dark .ab-cta h2 { font-size: 1.2rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
html.native-dark .ab-cta p { font-size: 0.92rem; color: var(--text-2); }

html.native-dark .ab-cta-btn {
    flex-shrink: 0;
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #0a0a0c;
    font: 700 0.9rem var(--font);
    cursor: pointer;
}

html.native-dark .ab-cta-btn:hover { background: #e4e4e7; }

html.native-dark .ab-foot a { font-size: 0.85rem; color: var(--text-2); }
html.native-dark .ab-foot a:hover { color: var(--text); }

/* ── Upgrade tab ────────────────────────────────────────────────────────── */
html.native-dark .up {
    max-width: 860px;
    margin: 0 auto;
    padding: 56px 32px 80px;
    text-align: center;
}

html.native-dark .up-hero { max-width: 620px; margin: 0 auto 40px; }
html.native-dark .up-hero p:last-child { margin-top: 14px; font-size: 1.05rem; color: var(--text-2); }

html.native-dark .up-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    text-align: left;
}

html.native-dark .up-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--surface);
}

html.native-dark .up-card-premium {
    border-color: color-mix(in srgb, var(--c-movie) 55%, transparent);
    background:
        radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c-movie) 22%, transparent), transparent 60%),
        var(--surface);
    box-shadow: 0 24px 60px -24px color-mix(in srgb, var(--c-movie) 45%, transparent);
}

html.native-dark .up-badge {
    position: absolute;
    top: 22px;
    right: 22px;
    padding: 4px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--c-movie) 22%, transparent);
    color: #ddd6fe;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

html.native-dark .up-plan { font-size: 1rem; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }

html.native-dark .up-price {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 22px;
}

html.native-dark .up-price span { font-size: 0.95rem; font-weight: 500; letter-spacing: 0; color: var(--text-3); }

html.native-dark .up-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 26px;
}

html.native-dark .up-features li {
    position: relative;
    padding-left: 28px;
    font-size: 0.92rem;
    color: var(--text);
}

html.native-dark .up-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

html.native-dark .up-features li.up-limit { color: var(--text-2); }

html.native-dark .up-features li.up-limit::before {
    background: var(--surface-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2372727e' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") center / 10px no-repeat;
}

html.native-dark .up-current {
    margin-top: auto;
    padding: 12px;
    border-radius: 12px;
    background: var(--surface-2);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-2);
}

html.native-dark #upgrade-cta-wrap { margin-top: auto; }

html.native-dark .upgrade-btn,
html.native-dark .upgrade-manage-btn {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    font: 700 0.95rem var(--font);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

html.native-dark .upgrade-btn { border: 0; background: #fff; color: #0a0a0c; }
html.native-dark .upgrade-btn:hover { background: #e4e4e7; }
html.native-dark .upgrade-btn:disabled { opacity: 0.55; cursor: default; }

html.native-dark .upgrade-manage-btn {
    border: 1px solid var(--line-2);
    background: transparent;
    color: var(--text);
}

html.native-dark .upgrade-manage-btn:hover { background: var(--surface-2); }

html.native-dark .upgrade-status {
    min-height: 1.2em;
    margin-top: 10px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-2);
}

html.native-dark .upgrade-status.is-premium { color: #4ade80; font-weight: 600; }

html.native-dark .up-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    font-size: 0.82rem;
    color: var(--text-3);
}

/* ── Settings tab ───────────────────────────────────────────────────────── */
html.native-dark .st {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 32px 80px;
}

html.native-dark .st-sub {
    min-height: 1.2em;
    margin: 8px 0 28px;
    font-size: 0.95rem;
    color: var(--text-2);
}

html.native-dark .st-sub .settings-username { color: var(--text); font-weight: 600; }

html.native-dark .st-card {
    padding: 24px;
    margin-bottom: 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
}

html.native-dark .st-card h2 { font-size: 1.1rem; font-weight: 700; color: var(--text); }
html.native-dark .st-desc { margin: 4px 0 18px; font-size: 0.88rem; color: var(--text-3); }

html.native-dark .st-label {
    display: block;
    margin: 12px 0 6px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-2);
}

html.native-dark .st-row { display: flex; gap: 8px; }
html.native-dark .st-row .st-input { flex: 1; min-width: 0; }

html.native-dark .st-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--line-2);
    background: var(--bg);
    color: var(--text);
    font-size: 0.92rem;
    outline: none;
}

html.native-dark .st-input::placeholder { color: var(--text-3); }
html.native-dark .st-input:focus { border-color: rgba(255, 255, 255, 0.4); }
html.native-dark .st-input:focus-visible { outline: none; }

html.native-dark .st-btn {
    flex-shrink: 0;
    height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #0a0a0c;
    font: 700 0.88rem var(--font);
    cursor: pointer;
}

html.native-dark .st-btn:hover { background: #e4e4e7; }
html.native-dark .st-btn:disabled { opacity: 0.55; cursor: default; }

html.native-dark .st-msg { min-height: 1.2em; margin-top: 10px; font-size: 0.85rem; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
    html.native-dark .ab-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    html.native-dark .ab-stat-total { grid-column: 1 / -1; }
    html.native-dark .ab-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
    html.native-dark #right-panel { width: 280px; }
    html.native-dark .hero-bg-art { width: 220px; height: 220px; }
    html.native-dark #catalog-hero { height: 300px; }
}

@media (max-width: 900px) {
    /* nowrap: claude.css wraps the toolbar on mobile, which in a column makes
       each item content-sized and pushes the chip bar past the screen edge */
    html.native-dark #catalog-toolbar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
    html.native-dark .catalog-search-wrap { width: 100%; }
    html.native-dark #search-dropdown { width: 100%; }
}

@media (max-width: 768px) {
    html.native-dark .lv,
    html.native-dark .ab,
    html.native-dark .up,
    html.native-dark .st { padding: 28px 16px 64px; }
    html.native-dark .lv-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    html.native-dark .ab-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html.native-dark .ab-stat-total { grid-column: 1 / -1; }
    html.native-dark .ab-features { grid-template-columns: minmax(0, 1fr); }
    html.native-dark .ab-sources { grid-template-columns: minmax(0, 1fr); }
    html.native-dark .ab-cta { flex-direction: column; align-items: flex-start; }
    html.native-dark .up-cards { grid-template-columns: minmax(0, 1fr); }
    html.native-dark .up-card-premium { order: -1; }
    html.native-dark .st-row { flex-direction: column; }

    html.native-dark #composers-page { padding: 24px 16px 64px; }
    html.native-dark .cd-toolbar { flex-direction: column; align-items: stretch; }
    html.native-dark .cd-seg .composer-sort-btn { flex: 1; padding: 0 8px; }
    html.native-dark .cd-letters { top: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }


    html.native-dark #catalog-toolbar { padding: 14px 16px 0; margin-bottom: 16px; gap: 12px; }
    /* Stacked layout: stretch the column, otherwise it grows to the full width
       of the scrolling rows and the page scrolls sideways */
    html.native-dark #albums-layout { padding: 0 16px; align-items: stretch; }

    html.native-dark #catalog-hero {
        height: auto;
        border-radius: 16px;
        margin-bottom: 32px;
    }

    html.native-dark .hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 20px 20px 64px;
    }

    html.native-dark .hero-bg-art { width: 140px; height: 140px; }
    html.native-dark .hero-title { font-size: 1.5rem; }
    html.native-dark .hero-cta { margin-top: 6px; }
    html.native-dark .hero-pager { right: 14px; bottom: 14px; }

    html.native-dark .cat-row { padding: 0; margin-bottom: 36px; }
    html.native-dark .cat-row-title { font-size: 1.15rem; }
    html.native-dark .cat-row-arrow { display: none; }
    html.native-dark .cat-row-scroll { gap: 12px; }
    html.native-dark .cat-row-card,
    html.native-dark .cat-row-see-all { flex-basis: 136px; }
    html.native-dark .cat-row-card-art,
    html.native-dark .cat-row-see-all { width: 136px; height: 136px; }

    html.native-dark #catalog-list {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.native-dark .hero-bg-blur { animation: none; }
    html.native-dark .hero-progress { animation: none; display: none; }
    html.native-dark .cat-row-scroll { scroll-behavior: auto; }
}
