/* ============================================================
   Design System — Custom Properties
   ============================================================ */
:root {
    --bg:          #060610;
    --bg-2:        #0c0c1e;
    --bg-3:        #111128;

    --surface:     rgba(255,255,255,.04);
    --surface-2:   rgba(255,255,255,.07);
    --border:      rgba(255,255,255,.08);
    --border-2:    rgba(255,255,255,.14);

    --cyan:        #00d4ff;
    --cyan-dim:    rgba(0,212,255,.12);
    --cyan-glow:   rgba(0,212,255,.30);
    --purple:      #7b2fff;
    --purple-dim:  rgba(123,47,255,.12);
    --red:         #ff3366;
    --red-dim:     rgba(255,51,102,.12);
    --green:       #00ff88;
    --amber:       #ffaa00;

    --text:        #e2e2f0;
    --text-2:      #9898b8;
    --text-3:      #55557a;

    --r-sm:  8px;
    --r:    16px;
    --r-lg: 24px;
    --r-xl: 32px;

    --ease: cubic-bezier(.4,0,.2,1);
    --t-fast: .15s var(--ease);
    --t:      .30s var(--ease);
    --t-slow: .50s var(--ease);

    --header-h:    60px;
    --sidebar-w:  300px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI',
                 system-ui, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.no-scroll { overflow: hidden; }

/* Global gradient background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 15% 15%, rgba(0,212,255,.055) 0%, transparent 70%),
        radial-gradient(ellipse 60% 60% at 85% 85%, rgba(123,47,255,.055) 0%, transparent 70%),
        linear-gradient(160deg, #060610 0%, #0c0c1e 55%, #06060f 100%);
    pointer-events: none;
    z-index: 0;
}

h1,h2,h3,h4 {
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.15;
}

button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   Header
   ============================================================ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: rgba(6,6,16,.80);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.04em;
    user-select: none;
}

.logo__icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 16px var(--cyan-glow);
}

.logo__text { color: var(--text); }
.logo__text span { color: var(--cyan); }

/* Hamburger */
.hamburger {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    border-radius: var(--r-sm);
    transition: background var(--t-fast);
    flex-shrink: 0;
}

.hamburger:hover  { background: var(--surface-2); }
.hamburger:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.hamburger__line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--t);
    transform-origin: center;
}

.hamburger--active .hamburger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger--active .hamburger__line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger--active .hamburger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Overlay
   ============================================================ */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t);
}

.overlay--visible {
    opacity: 1;
    pointer-events: all;
}

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar {
    position: fixed;
    top: 0; right: 0;
    width: var(--sidebar-w);
    height: 100dvh;
    background: rgba(9,9,22,.96);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border-left: 1px solid var(--border);
    z-index: 200;
    transform: translateX(100%);
    transition: transform var(--t-slow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar--open { transform: translateX(0); }

.sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: var(--header-h);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar__title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .12em;
}

.sidebar__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text-2);
    transition: all var(--t-fast);
}

.sidebar__close:hover { background: var(--surface-2); color: var(--text); }
.sidebar__close:focus-visible { outline: 2px solid var(--cyan); }

/* Sidebar Nav */
.sidebar__nav {
    padding: 12px 12px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--r-sm);
    background: none;
    border: none;
    color: var(--text-2);
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    transition: all var(--t-fast);
}

.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item:focus-visible { outline: 2px solid var(--cyan); }

.nav-item--active {
    background: var(--cyan-dim);
    color: var(--cyan);
}

.nav-item__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: .8;
}

/* Sidebar Content */
.sidebar__content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-2) transparent;
}

/* Panels */
.panel { display: none; }
.panel--active { display: block; animation: fadeIn .22s ease; }

.about-text {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 14px;
}

.about-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 4px;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.5;
}

.about-features li::before {
    content: '→';
    color: var(--cyan);
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Settings */
.settings-section { margin-bottom: 22px; }

.settings-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 8px;
}

.select-wrapper { position: relative; }

.select-wrapper::after {
    content: '▾';
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
    pointer-events: none;
    font-size: 12px;
}

.ai-select {
    width: 100%;
    padding: 11px 36px 11px 13px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text);
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    transition: border-color var(--t-fast);
    cursor: pointer;
}

.ai-select:focus { border-color: var(--cyan); }
.ai-select option:disabled { color: var(--text-3); }

/* ============================================================
   Screens
   ============================================================ */
.screens {
    position: relative;
    padding-top: var(--header-h);
    min-height: 100dvh;
    z-index: 1;
}

.screen {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    bottom: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity var(--t-slow), transform var(--t-slow);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.screen--active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
    z-index: 2;
}

.screen--exit {
    opacity: 0;
    transform: translateY(-18px);
    pointer-events: none;
}

/* ============================================================
   Voice Screen
   ============================================================ */
.voice-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - var(--header-h));
    padding: 32px 24px 48px;
    text-align: center;
    gap: 0;
}

.voice-screen__greeting {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 14px;
    opacity: 0;
    animation: fadeInUp .6s var(--ease) .15s forwards;
}

.voice-screen__title {
    font-size: clamp(26px, 7vw, 40px);
    font-weight: 800;
    letter-spacing: -.035em;
    margin-bottom: 44px;
    opacity: 0;
    animation: fadeInUp .6s var(--ease) .25s forwards;
    background: linear-gradient(140deg, var(--text) 0%, var(--text-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mic Container */
.mic-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    opacity: 0;
    animation: fadeInUp .6s var(--ease) .38s forwards;
}

/* Mic Button */
.mic-btn {
    position: relative;
    width:  clamp(168px, 46vw, 264px);
    height: clamp(168px, 46vw, 264px);
    border-radius: 50%;
    background: linear-gradient(135deg,
        rgba(0,212,255,.10) 0%,
        rgba(123,47,255,.08) 100%);
    border: 1px solid rgba(0,212,255,.28);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t);
    box-shadow:
        0 0 40px rgba(0,212,255,.18),
        0 0 80px rgba(0,212,255,.08),
        inset 0 0 40px rgba(0,212,255,.05);
    outline: none;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.mic-btn:hover {
    border-color: rgba(0,212,255,.55);
    background: linear-gradient(135deg,
        rgba(0,212,255,.17) 0%,
        rgba(123,47,255,.14) 100%);
    box-shadow:
        0 0 60px rgba(0,212,255,.30),
        0 0 120px rgba(0,212,255,.12),
        inset 0 0 60px rgba(0,212,255,.08);
    transform: scale(1.04);
}

.mic-btn:active { transform: scale(.96); }
.mic-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 8px; }

/* Rings */
.mic-btn__ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0,212,255,.12);
    pointer-events: none;
    transition: border-color var(--t);
    animation: ringFloat 4s ease-in-out infinite;
}
.mic-btn__ring--1 { inset: -18px; animation-delay: 0s; }
.mic-btn__ring--2 { inset: -36px; animation-delay: .6s; }
.mic-btn__ring--3 { inset: -54px; animation-delay: 1.2s; }

/* Icon */
.mic-btn__icon {
    width: 38%;
    height: 38%;
    color: var(--cyan);
    filter: drop-shadow(0 0 10px var(--cyan-glow));
    transition: all var(--t);
    position: relative;
    z-index: 1;
}

/* Recording state (hold) */
.mic-btn--recording {
    border-color: rgba(255,51,102,.7);
    background: linear-gradient(135deg,
        rgba(255,51,102,.18) 0%,
        rgba(200,0,50,.10) 100%);
    box-shadow:
        0 0 60px rgba(255,51,102,.35),
        0 0 120px rgba(255,51,102,.14),
        inset 0 0 60px rgba(255,51,102,.10);
    animation: micRecord .85s ease-in-out infinite;
    transform: scale(1.05);
    cursor: grabbing;
}

.mic-btn--recording .mic-btn__icon {
    color: var(--red);
    filter: drop-shadow(0 0 12px rgba(255,51,102,.8));
    animation: iconBob .7s ease-in-out infinite;
}

.mic-btn--recording .mic-btn__ring {
    border-color: rgba(255,51,102,.45);
    animation: listenRing 1s ease-out infinite;
}
.mic-btn--recording .mic-btn__ring--2 { animation-delay: .22s; }
.mic-btn--recording .mic-btn__ring--3 { animation-delay: .44s; }

/* Processing state (transcribing) */
.mic-btn--processing {
    opacity: .55;
    cursor: wait;
    pointer-events: none;
    animation: micPulse 1.4s ease-in-out infinite;
}

/* Mic Hint */
.mic-hint {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-3);
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: color var(--t-fast);
}

/* Transcript */
.transcript-wrapper {
    width: 100%;
    max-width: 400px;
    margin-top: 28px;
    opacity: 0;
    animation: fadeInUp .6s var(--ease) .52s forwards;
}

.transcript {
    min-height: 64px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    font-size: 15px;
    color: var(--text-2);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--t);
    word-break: break-word;
}

.transcript--active { border-color: var(--border-2); }

.transcript__placeholder { color: var(--text-3); font-style: italic; font-size: 13px; }

/* Confirm Panel */
.confirm-panel {
    width: 100%;
    max-width: 400px;
    margin-top: 14px;
    padding: 20px 22px;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: var(--r);
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--t), transform var(--t);
}

.confirm-panel--visible {
    opacity: 1;
    transform: translateY(0);
}

.confirm-panel__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 10px;
}

.confirm-panel__text {
    font-size: 17px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 18px;
    word-break: break-word;
}

.confirm-panel__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-confirm {
    display: inline-flex;
    align-items: center;
    padding: 9px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    cursor: pointer;
    border: 1px solid var(--border-2);
    transition: all var(--t-fast);
}

.btn-confirm--yes {
    background: var(--cyan);
    color: #000;
    border-color: var(--cyan);
}

.btn-confirm--yes:hover { opacity: .85; transform: scale(1.03); }

.btn-confirm--retry {
    background: var(--surface);
    color: var(--text-2);
}

.btn-confirm--retry:hover {
    background: var(--surface-2);
    color: var(--text);
    border-color: var(--border-2);
}

/* Voice Tip */
.voice-tip {
    margin-top: 28px;
    font-size: 12px;
    color: var(--text-3);
    opacity: 0;
    animation: fadeInUp .6s var(--ease) .66s forwards;
}

kbd {
    display: inline-block;
    padding: 2px 8px;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: 5px;
    font-family: inherit;
    font-size: 11px;
}

/* ============================================================
   News Screen
   ============================================================ */
.news-screen__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 20px 12px;
}

.news-screen__title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.03em;
}

/* Pill buttons */
.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--t-fast);
    flex-shrink: 0;
}

.btn-pill:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-2); }
.btn-pill:focus-visible { outline: 2px solid var(--cyan); }

/* News Cards */
.news-cards-wrapper {
    padding-bottom: 32px;
    overflow: hidden;
}

.news-cards {
    display: flex;
    gap: 14px;
    padding: 8px 20px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
}
.news-cards::-webkit-scrollbar { display: none; }

/* Card */
.news-card {
    flex: 0 0 clamp(278px, 84vw, 360px);
    scroll-snap-align: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    opacity: 0;
    transform: translateY(22px) scale(.96);
    transition:
        opacity .4s var(--ease),
        transform .4s var(--ease),
        border-color var(--t-fast),
        background var(--t-fast),
        box-shadow var(--t);
    cursor: pointer;
}

.news-card--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.news-card:hover {
    border-color: var(--border-2);
    background: var(--surface-2);
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
    transform: translateY(-5px) scale(1.01);
}

.news-card:focus-visible { outline: 2px solid var(--cyan); }

.news-card__inner {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

/* Category badge */
.news-card__category {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    align-self: flex-start;
    color: var(--cyan);
    background: var(--cyan-dim);
    border: 1px solid rgba(0,212,255,.2);
}

.news-card__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.02em;
    color: var(--text);
}

.news-card__desc {
    font-size: 13.5px;
    color: var(--text-2);
    line-height: 1.65;
    flex: 1;
}

.news-card__btn {
    margin-top: 6px;
    padding: 10px 14px;
    background: var(--cyan-dim);
    border: 1px solid rgba(0,212,255,.18);
    border-radius: var(--r-sm);
    color: var(--cyan);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    transition: all var(--t-fast);
}

.news-card__btn:hover { background: rgba(0,212,255,.22); border-color: rgba(0,212,255,.4); }

/* Date + source meta */
.news-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.news-card__date {
    font-size: 11px;
    color: var(--text-3);
    font-weight: 500;
}

.news-card__source {
    font-size: 11px;
    color: var(--text-3);
    font-weight: 600;
    padding: 2px 7px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 100px;
}

.news-card__date + .news-card__source::before {
    content: '';
}

/* Ad card */
.news-card--ad {
    cursor: pointer;
}

.news-card--ad:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
    border-color: var(--border-2);
}

.news-card__ad-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-card__inner--ad {
    padding: 8px 8px 0;
    gap: 5px;
}

.news-card__ad-label {
    display: block;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-3);
}

.news-card__ad-img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: calc(var(--r-lg) - 8px);
}

/* News error / empty state */
.news-error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 56px 32px;
    text-align: center;
    color: var(--text-2);
    min-width: min(80vw, 360px);
}
.news-error-state__icon { opacity: .35; }
.news-error-state__msg {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-2);
}

/* Scroll hint */
.scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 20px 0;
    font-size: 11px;
    color: var(--text-3);
    letter-spacing: .05em;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    transition: color var(--t-fast);
}
.scroll-hint:hover { color: var(--text-2); }

/* ============================================================
   Detail Screen
   ============================================================ */
.reading-progress-bar {
    position: sticky;
    top: 0;
    height: 2px;
    background: var(--border);
    z-index: 10;
    flex-shrink: 0;
}

.reading-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 8px var(--cyan-glow);
    transition: width .08s linear;
}

.detail-screen__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px 0;
    flex-wrap: wrap;
}

.detail-screen__content {
    padding: 0 20px 40px;
    max-width: 700px;
    margin: 0 auto;
}

/* Detail blocks */
.detail-hero {
    padding: 26px 0 20px;
}

.detail-category {
    display: inline-flex;
    padding: 5px 13px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 14px;
    color: var(--cyan);
    background: var(--cyan-dim);
    border: 1px solid rgba(0,212,255,.2);
}

.detail-title {
    font-size: clamp(22px, 6.5vw, 34px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.12;
    color: var(--text);
}

.detail-block {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    margin-bottom: 14px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .42s var(--ease), transform .42s var(--ease);
}

.detail-block--visible { opacity: 1; transform: translateY(0); }

.detail-block__label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 10px;
}

.detail-block p {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.78;
}

.detail-article__text p {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.82;
    margin-bottom: 14px;
}
.detail-article__text p:last-child { margin-bottom: 0; }

.detail-facts__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.detail-facts__list li {
    padding: 10px 14px;
    background: var(--bg-2);
    border-radius: var(--r-sm);
    font-size: 14px;
    color: var(--text-2);
    border-left: 2px solid var(--cyan);
    line-height: 1.55;
}

.detail-actions-bottom {
    display: flex;
    gap: 10px;
    margin-top: 26px;
    flex-wrap: wrap;
}

/* ============================================================
   Loading Overlay
   ============================================================ */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6,6,16,.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t);
}

.loading-overlay--visible { opacity: 1; pointer-events: all; }

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 2px solid var(--border-2);
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: spin .75s linear infinite;
    box-shadow: 0 0 24px var(--cyan-glow);
}

.loading-text {
    font-size: 14px;
    color: var(--text-2);
    letter-spacing: .04em;
    font-weight: 500;
}

/* ============================================================
   Toast
   ============================================================ */
.toast-container {
    position: fixed;
    bottom: max(24px, env(safe-area-inset-bottom, 24px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    width: calc(100% - 40px);
    max-width: 380px;
}

.toast {
    padding: 13px 20px;
    border-radius: var(--r);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(14px) scale(.96);
    transition: all var(--t);
    pointer-events: all;
    text-align: center;
    width: 100%;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    line-height: 1.4;
}

.toast--visible { opacity: 1; transform: translateY(0) scale(1); }

.toast--success { background: rgba(0,255,136,.14); border: 1px solid rgba(0,255,136,.28); color: var(--green); }
.toast--error   { background: rgba(255,51,102,.14); border: 1px solid rgba(255,51,102,.28); color: var(--red); }
.toast--warning { background: rgba(255,170,0,.14);  border: 1px solid rgba(255,170,0,.28);  color: var(--amber); }
.toast--info    { background: rgba(0,212,255,.14);  border: 1px solid rgba(0,212,255,.28);  color: var(--cyan); }

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes ringFloat {
    0%,100% { opacity: .12; transform: scale(1); }
    50%      { opacity: .22; transform: scale(1.025); }
}

@keyframes micPulse {
    0%,100% { transform: scale(1); }
    50%      { transform: scale(1.045); }
}

@keyframes micRecord {
    0%   { box-shadow: 0 0 60px rgba(255,51,102,.35), 0 0 0 0 rgba(255,51,102,.55), inset 0 0 60px rgba(255,51,102,.10); }
    70%  { box-shadow: 0 0 70px rgba(255,51,102,.40), 0 0 22px rgba(255,51,102,0),  inset 0 0 70px rgba(255,51,102,.14); }
    100% { box-shadow: 0 0 60px rgba(255,51,102,.35), 0 0 0 0 rgba(255,51,102,0),   inset 0 0 60px rgba(255,51,102,.10); }
}

@keyframes listenRing {
    0%   { opacity: .4; transform: scale(1); }
    100% { opacity: 0;  transform: scale(1.55); }
}

@keyframes iconBob {
    0%,100% { transform: scale(1) translateY(0); }
    50%      { transform: scale(1.1) translateY(-2px); }
}

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

/* ============================================================
   Desktop
   ============================================================ */
@media (min-width: 768px) {
    ::-webkit-scrollbar { width: 5px; }
    ::-webkit-scrollbar-track { background: var(--bg); }
    ::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
    ::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

    .news-cards { padding: 8px 36px 16px; }
    .news-card { flex: 0 0 340px; }
    .detail-screen__header { padding: 20px 32px 0; }
    .detail-screen__content { padding: 0 32px 60px; }
    .news-screen__header { padding: 28px 36px 16px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,*::before,*::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
