.discover-page {
    display: grid;
    gap: 1.15rem;
}

.discover-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: var(--bg-surface);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.035);
}

.discover-head h1 {
    color: var(--text-main);
    letter-spacing: -0.03em;
}

.discover-head-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.discover-head-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.28rem 0.58rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-surface-hover);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.discover-head-meta .discover-live-pill {
    border-color: rgba(34, 197, 94, 0.24);
    background: rgba(34, 197, 94, 0.09);
    color: #15803d;
}

.discover-live-pill i {
    color: #22c55e;
}

.discover-head-meta strong {
    color: var(--text-main);
}

.discover-search {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    overflow: hidden;
    background: var(--bg-surface);
    min-width: 320px;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.discover-search:hover {
    border-color: rgba(59, 130, 246, 0.22);
}

.discover-search:focus-within {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.discover-search input {
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-main);
    padding: 0.55rem 0.75rem 0.55rem 0.95rem;
    width: 100%;
}

.discover-search button {
    border: 0;
    background: var(--primary-color);
    color: #fff;
    width: 42px;
    height: 38px;
    transition: filter 0.22s ease, transform 0.22s ease;
}

.discover-search button:hover {
    filter: brightness(1.05);
    transform: scale(1.02);
}

.discover-refresh-banner {
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 16px;
    padding: 0.8rem 1rem;
    color: var(--text-main);
    background:
        radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.14), transparent 30%),
        linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(240, 253, 250, 0.96));
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    width: 100%;
    text-align: left;
    font-weight: 800;
    transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.discover-refresh-banner[hidden] {
    display: none;
}

.discover-refresh-banner:hover {
    transform: translateY(-2px);
    border-color: rgba(14, 165, 233, 0.34);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.09);
}

.discover-refresh-banner span,
.discover-refresh-banner strong {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.discover-refresh-banner span i {
    color: #0284c7;
}

.discover-refresh-banner strong {
    color: #0369a1;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.discover-query-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: 14px;
    background: rgba(14, 165, 233, 0.08);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 750;
}

.discover-query-note span,
.discover-query-note a {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
}

.discover-query-note strong {
    color: var(--text-main);
}

.discover-query-note a {
    color: #0369a1;
    text-decoration: none;
    font-weight: 900;
}

.discover-query-note a:hover,
.discover-query-note a:focus-visible {
    color: #075985;
    text-decoration: underline;
}

.discover-lens-bar {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem;
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: 16px;
    background:
        radial-gradient(circle at 4% 50%, rgba(14, 165, 233, 0.12), transparent 28%),
        color-mix(in srgb, var(--bg-surface) 88%, var(--bg-surface-hover) 12%);
    overflow-x: auto;
    scrollbar-width: none;
}

.discover-lens-bar::-webkit-scrollbar {
    display: none;
}

.discover-lens-bar a,
.discover-lens-bar span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 0.8rem;
}

.discover-lens-bar a {
    flex: 0 0 auto;
    padding: 0.42rem 0.72rem;
    text-decoration: none;
    color: #0369a1;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.18);
    font-weight: 850;
    transition: border-color 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.discover-lens-bar a:hover,
.discover-lens-bar a:focus-visible {
    color: #075985;
    border-color: rgba(14, 165, 233, 0.32);
    background: rgba(14, 165, 233, 0.14);
    box-shadow: 0 10px 22px rgba(14, 165, 233, 0.08);
}

.discover-lens-bar span {
    margin-left: auto;
    color: var(--text-muted);
    font-weight: 750;
}

.discover-briefing {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.75fr);
    gap: 1rem;
    padding: 1.05rem;
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: 20px;
    background:
        radial-gradient(circle at 6% 0%, rgba(14, 165, 233, 0.16), transparent 34%),
        radial-gradient(circle at 94% 18%, rgba(34, 197, 94, 0.12), transparent 30%),
        linear-gradient(135deg, color-mix(in srgb, var(--bg-surface) 92%, #e0f2fe 8%), var(--bg-surface));
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.045);
}

.discover-briefing-copy {
    display: grid;
    align-content: center;
    gap: 0.55rem;
    min-width: 0;
}

.discover-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    width: fit-content;
    padding: 0.32rem 0.62rem;
    border-radius: 999px;
    color: #0369a1;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.16);
    font-size: 0.76rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.discover-briefing h2 {
    margin: 0;
    color: var(--text-main);
    font-size: clamp(1.35rem, 2.4vw, 2.1rem);
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.discover-briefing p {
    max-width: 760px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
    font-weight: 650;
}

.discover-briefing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.15rem;
}

.discover-briefing-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.52rem 0.82rem;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #0284c7, #2563eb);
    font-size: 0.84rem;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.16);
    transition: filter 0.22s ease, box-shadow 0.22s ease;
}

.discover-briefing-actions a + a {
    color: #0369a1;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.18);
    box-shadow: none;
}

.discover-briefing-actions a:hover,
.discover-briefing-actions a:focus-visible {
    filter: brightness(1.04);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
}

.discover-briefing-actions a + a:hover,
.discover-briefing-actions a + a:focus-visible {
    box-shadow: 0 10px 22px rgba(14, 165, 233, 0.08);
}

.discover-briefing-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    align-content: center;
}

.discover-briefing-panel > div {
    min-width: 0;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: color-mix(in srgb, var(--bg-surface) 88%, var(--bg-surface-hover) 12%);
}

.discover-briefing-panel strong {
    display: block;
    color: var(--text-main);
    font-size: 1.55rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.discover-briefing-panel span {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.discover-briefing-panel .discover-briefing-badge {
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
}

.discover-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.05rem;
    transition: border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.discover-section:hover {
    border-color: rgba(59, 130, 246, 0.14);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.04);
}

.discover-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.discover-section-head h2 {
    margin: 0;
    font-size: 1.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-main);
    letter-spacing: -0.025em;
}

.discover-section-head h2 i {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
    font-size: 0.9rem;
}

.discover-section-note {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-align: right;
}

.discover-empty-state {
    display: grid;
    place-items: center;
    gap: 0.45rem;
    min-height: 165px;
    padding: 1.25rem;
    border: 1px dashed rgba(14, 165, 233, 0.28);
    border-radius: 14px;
    background:
        radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.12), transparent 38%),
        color-mix(in srgb, var(--bg-surface) 86%, var(--bg-surface-hover) 14%);
    color: var(--text-muted);
    text-align: center;
}

.discover-empty-state i {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    color: #0284c7;
    background: rgba(14, 165, 233, 0.12);
    font-size: 1rem;
}

.discover-empty-state strong {
    color: var(--text-main);
    font-size: 1rem;
}

.discover-empty-state span {
    max-width: 560px;
    line-height: 1.55;
}

.discover-scroll {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.discover-scroll .discover-card:first-child {
    grid-column: span 2;
    background:
        radial-gradient(circle at 14% 12%, rgba(14, 165, 233, 0.12), transparent 32%),
        var(--bg-surface);
}

.discover-scroll .discover-card:first-child .discover-thumb {
    aspect-ratio: 1.88 / 1;
}

.discover-scroll .discover-card:first-child .discover-body {
    padding: 1rem;
}

.discover-scroll .discover-card:first-child .discover-body h3 {
    font-size: 1.22rem;
    line-height: 1.32;
    min-height: auto;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.discover-scroll .discover-card:first-child .discover-reaction-bar {
    padding-inline: 1rem;
}

.discover-card,
.discover-video-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.035);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    min-width: 0;
}

.discover-card:hover,
.discover-video-card:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.discover-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.discover-thumb {
    aspect-ratio: 1.42 / 1;
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.08), rgba(37, 99, 235, 0.04));
    overflow: hidden;
    position: relative;
}

.discover-badge,
.latest-chip-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.discover-badge {
    position: absolute;
    z-index: 2;
    top: 0.65rem;
    left: 0.65rem;
    padding: 0.36rem 0.55rem;
    color: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.24);
    backdrop-filter: blur(10px);
}

.latest-chip-badge {
    padding: 0.28rem 0.48rem;
}

.badge-featured {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
}

.badge-hot {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
}

.badge-fresh {
    background: linear-gradient(135deg, #10b981, #14b8a6);
    color: #fff;
}

.badge-rising {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
}

.badge-useful {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: #fff;
}

.badge-short {
    background: linear-gradient(135deg, #111827, #334155);
    color: #fff;
}

.badge-signal {
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
}

.discover-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0) 48%, rgba(2, 6, 23, 0.08) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.discover-card:hover .discover-thumb::after,
.discover-video-card:hover .discover-thumb::after {
    opacity: 1;
}

.discover-thumb responsive-img,
.discover-thumb picture,
.discover-thumb .responsive-img-container {
    display: block;
    width: 100%;
    height: 100%;
}

.discover-thumb responsive-img img,
.discover-thumb picture img,
.discover-thumb .responsive-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.discover-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.42s ease;
}

.discover-card:hover .discover-thumb img,
.discover-video-card:hover .discover-thumb img {
    transform: scale(1.035);
}

.discover-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #64748b;
    font-size: 1.65rem;
    background:
        radial-gradient(circle at 20% 15%, rgba(14, 165, 233, 0.16), transparent 28%),
        radial-gradient(circle at 80% 75%, rgba(37, 99, 235, 0.12), transparent 30%),
        linear-gradient(135deg, rgba(226, 232, 240, 0.75), rgba(241, 245, 249, 0.95));
}

.discover-body {
    padding: 0.85rem;
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    gap: 0.45rem;
    flex: 1;
    min-height: 0;
}

.discover-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    align-self: start;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.12);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discover-reason {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    width: fit-content;
    max-width: 100%;
    color: #0369a1;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.12);
    border-radius: 999px;
    padding: 0.22rem 0.52rem;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discover-reason i {
    color: #0ea5e9;
    font-size: 0.64rem;
}

.discover-body h3 {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.4;
    min-height: calc(1.4em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.discover-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.discover-reaction-bar {
    border-top: 1px solid var(--border-color);
    padding: 0.55rem 0.7rem 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.38rem;
    flex-wrap: wrap;
    background: color-mix(in srgb, var(--bg-surface) 88%, var(--bg-surface-hover) 12%);
}

.reaction-btn {
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-main);
    border-radius: 999px;
    font-size: 0.78rem;
    padding: 0.2rem 0.48rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: transform 0.32s ease, border-color 0.32s ease, background 0.32s ease, color 0.32s ease;
    white-space: nowrap;
}

.reaction-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.24);
    background: var(--bg-surface-hover);
}

.reaction-btn.active {
    border-color: rgba(37, 99, 235, 0.45);
    background: rgba(37, 99, 235, 0.08);
    color: var(--text-main);
}

.reaction-btn.locked {
    cursor: default;
    opacity: 0.82;
}

.reaction-score {
    margin-left: auto;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.discover-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.video-open-btn {
    border: 0;
    padding: 0;
    background: transparent;
    width: 100%;
    position: relative;
    aspect-ratio: 9 / 13.5;
    overflow: hidden;
    cursor: pointer;
}

.video-open-btn .discover-badge {
    text-align: left;
}

.video-open-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.4rem;
    background: rgba(2, 6, 23, 0.26);
    transition: background 0.24s ease, font-size 0.24s ease;
}

.discover-video-card:hover .video-play {
    background: rgba(2, 6, 23, 0.34);
    font-size: 1.52rem;
}

.discover-latest-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.latest-chip {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.7rem;
    text-decoration: none;
    color: inherit;
    display: grid;
    gap: 0.3rem;
    background: var(--bg-surface);
    min-height: 100%;
    min-width: 0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.latest-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.24);
    background: var(--bg-surface);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
}

.discover-methodology {
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.1), transparent 34%),
        var(--bg-surface);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.035);
    overflow: hidden;
}

.discover-methodology summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    cursor: pointer;
    color: var(--text-main);
    font-weight: 950;
    list-style: none;
}

.discover-methodology summary::-webkit-details-marker {
    display: none;
}

.discover-methodology summary span {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
}

.discover-methodology summary span i {
    color: #0284c7;
}

.discover-methodology summary > i {
    color: #0284c7;
    transition: transform 0.22s ease;
}

.discover-methodology[open] summary > i {
    transform: rotate(180deg);
}

.discover-methodology-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
    padding: 0 1rem 1rem;
}

.discover-methodology-grid article {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: color-mix(in srgb, var(--bg-surface) 88%, var(--bg-surface-hover) 12%);
}

.discover-methodology-grid strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 0.28rem;
}

.discover-methodology-grid span {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

[data-theme="dark"] .discover-section:hover,
[data-theme="dark"] .discover-card:hover,
[data-theme="dark"] .discover-video-card:hover,
[data-theme="dark"] .latest-chip:hover {
    box-shadow: 0 16px 30px rgba(2, 8, 23, 0.14);
}

[data-theme="dark"] .discover-card,
[data-theme="dark"] .discover-video-card,
[data-theme="dark"] .latest-chip,
[data-theme="dark"] .discover-methodology {
    box-shadow: none;
}

[data-theme="dark"] .discover-head {
    box-shadow: none;
    border-color: rgba(125, 211, 252, 0.12);
}

[data-theme="dark"] .discover-head-meta .discover-live-pill {
    border-color: rgba(74, 222, 128, 0.2);
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
}

[data-theme="dark"] .discover-refresh-banner {
    border-color: rgba(125, 211, 252, 0.16);
    background:
        radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.16), transparent 30%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(17, 30, 50, 0.98));
    box-shadow: none;
}

[data-theme="dark"] .discover-refresh-banner strong {
    color: #7dd3fc;
}

[data-theme="dark"] .discover-query-note {
    border-color: rgba(125, 211, 252, 0.16);
    background: rgba(14, 165, 233, 0.1);
}

[data-theme="dark"] .discover-query-note a {
    color: #7dd3fc;
}

[data-theme="dark"] .discover-lens-bar {
    border-color: rgba(125, 211, 252, 0.14);
    background:
        radial-gradient(circle at 4% 50%, rgba(14, 165, 233, 0.16), transparent 30%),
        color-mix(in srgb, var(--bg-surface) 90%, #0ea5e9 10%);
}

[data-theme="dark"] .discover-lens-bar a {
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(125, 211, 252, 0.16);
}

[data-theme="dark"] .discover-lens-bar a:hover,
[data-theme="dark"] .discover-lens-bar a:focus-visible {
    color: #f0f9ff;
    background: rgba(14, 165, 233, 0.18);
    border-color: rgba(125, 211, 252, 0.28);
}

[data-theme="dark"] .discover-briefing {
    border-color: rgba(125, 211, 252, 0.14);
    background:
        radial-gradient(circle at 6% 0%, rgba(14, 165, 233, 0.18), transparent 36%),
        radial-gradient(circle at 94% 18%, rgba(34, 197, 94, 0.11), transparent 32%),
        linear-gradient(135deg, color-mix(in srgb, var(--bg-surface) 92%, #0ea5e9 8%), var(--bg-surface));
    box-shadow: none;
}

[data-theme="dark"] .discover-kicker {
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.14);
    border-color: rgba(125, 211, 252, 0.18);
}

[data-theme="dark"] .discover-briefing-actions a + a {
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(125, 211, 252, 0.16);
}

[data-theme="dark"] .discover-section-head h2 i {
    color: #7dd3fc;
    background: rgba(125, 211, 252, 0.12);
}

[data-theme="dark"] .discover-scroll .discover-card:first-child {
    background:
        radial-gradient(circle at 14% 12%, rgba(14, 165, 233, 0.14), transparent 34%),
        var(--bg-surface);
}

[data-theme="dark"] .discover-fallback {
    color: #93c5fd;
    background:
        radial-gradient(circle at 22% 18%, rgba(14, 165, 233, 0.16), transparent 30%),
        radial-gradient(circle at 82% 72%, rgba(37, 99, 235, 0.12), transparent 32%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(17, 30, 50, 0.96));
}

[data-theme="dark"] .discover-empty-state {
    border-color: rgba(125, 211, 252, 0.2);
    background:
        radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.14), transparent 40%),
        color-mix(in srgb, var(--bg-surface) 90%, #0ea5e9 10%);
}

[data-theme="dark"] .discover-category {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(147, 197, 253, 0.18);
}

[data-theme="dark"] .discover-reason {
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(125, 211, 252, 0.16);
}

.latest-chip > span:not(.latest-chip-badge) {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.latest-chip-reason {
    color: #0369a1 !important;
    font-size: 0.72rem !important;
    font-weight: 850;
    line-height: 1.35;
}

.latest-chip-badge {
    color: #ffffff;
}

.latest-chip-badge.badge-signal {
    background: rgba(51, 65, 85, 0.88);
    color: #f8fafc;
}

[data-theme="dark"] .latest-chip-reason {
    color: #bae6fd !important;
}

[data-theme="dark"] .discover-methodology {
    border-color: rgba(125, 211, 252, 0.14);
    background:
        radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.12), transparent 36%),
        var(--bg-surface);
}

@media (max-width: 1200px) {
    .discover-scroll {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

@media (max-width: 991px) {
    .discover-head {
        flex-direction: column;
        align-items: stretch;
    }

    .discover-search {
        min-width: 0;
        width: 100%;
    }

    .discover-scroll,
    .discover-video-grid,
    .discover-latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .discover-section-head {
        align-items: start;
        flex-direction: column;
    }

    .discover-section-note {
        text-align: left;
    }

    .discover-briefing {
        grid-template-columns: 1fr;
    }

    .discover-lens-bar {
        align-items: flex-start;
        padding: 0.65rem;
    }

    .discover-lens-bar span {
        min-width: min(520px, 86vw);
        margin-left: 0;
        white-space: normal;
        line-height: 1.45;
    }
}

@media (max-width: 640px) {
    .discover-scroll,
    .discover-video-grid,
    .discover-latest-grid {
        grid-template-columns: 1fr;
    }

    .discover-scroll .discover-card:first-child {
        grid-column: auto;
    }

    .discover-scroll .discover-card:first-child .discover-thumb {
        aspect-ratio: 1.42 / 1;
    }

    .discover-scroll .discover-card:first-child .discover-body,
    .discover-scroll .discover-card:first-child .discover-reaction-bar {
        padding-inline: 0.72rem;
    }

    .discover-scroll .discover-card:first-child .discover-body h3 {
        font-size: 1.04rem;
        line-height: 1.38;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .discover-section {
        padding: 0.9rem;
        border-radius: 14px;
    }

    .discover-query-note {
        align-items: flex-start;
        flex-direction: column;
    }

    .discover-briefing {
        padding: 0.9rem;
        border-radius: 16px;
    }

    .discover-briefing-panel {
        grid-template-columns: 1fr;
    }

    .discover-briefing-actions a {
        width: 100%;
    }

    .discover-body {
        padding: 0.72rem;
    }

    .discover-meta {
        gap: 0.5rem;
    }

    .discover-reaction-bar {
        padding: 0.55rem 0.6rem 0.65rem;
        gap: 0.4rem;
    }

    .reaction-btn {
        font-size: 0.75rem;
        padding: 0.18rem 0.44rem;
    }

    .reaction-score {
        width: 100%;
        margin-left: 0;
        padding-top: 0.15rem;
    }

    .video-open-btn {
        aspect-ratio: 9 / 14;
    }

    .discover-methodology-grid {
        grid-template-columns: 1fr;
    }

    .discover-methodology summary {
        align-items: flex-start;
    }
}

/* Reading comfort: Discover cards should highlight without jumping under the cursor. */
.discover-card:hover,
.discover-video-card:hover,
.latest-chip:hover,
.reaction-btn:hover,
.discover-search:focus-within {
    transform: none;
}

.discover-card,
.discover-video-card,
.latest-chip {
    transition: border-color 0.26s ease, background 0.26s ease, box-shadow 0.26s ease;
}

.reaction-btn {
    transition: border-color 0.24s ease, background 0.24s ease, color 0.24s ease;
}
