/* ==========================================================================
   Virtual Radio CR — Samsung One UI Official Color Palette
   Precision 5% Sub-rounded Geometry (Flat & Sleek Modern)
   Dark Mode:  #000000 (bg), #171717 / #252525 (surfaces), #3E91FF / #0381FE
   Light Mode: #F6F6F6 (bg), #FCFCFC (surfaces), #171717 (text), #0381FE / #1259C3
   Brand:      #1428A0 (Samsung Blue)
   ========================================================================== */

:root {
    --one-bg: #000000;
    --one-surface-base: #171717;
    --one-surface-card: #171717;
    --one-surface-card-hover: #252525;
    --one-surface-elevated: #171717;
    --one-surface-subtle: #252525;
    --one-card-border: rgba(255, 255, 255, 0.08);
    --one-card-border-active: rgba(62, 145, 255, 0.5);
    --one-header-bg: rgba(0, 0, 0, 0.86);
    --one-dock-bg: rgba(23, 23, 23, 0.94);
    --one-sheet-bg: #171717;
    --one-toast-bg: #252525;
    --one-hero-bg:
        radial-gradient(circle at 15% 20%, rgba(62, 145, 255, 0.14) 0%, transparent 48%),
        radial-gradient(circle at 88% 82%, rgba(20, 40, 160, 0.18) 0%, transparent 50%),
        #171717;
    --one-art-fallback-bg: radial-gradient(circle at center, #252525 0%, #171717 100%);
    --one-shadow-card: 0 12px 32px rgba(0, 0, 0, 0.55);

    /* Samsung One UI Blue Hierarchy (Dark Mode calibrated) */
    --oneui-blue: #3e91ff;
    --oneui-blue-vivid: #0381fe;
    --oneui-blue-deep: #1259c3;
    --oneui-samsung-blue: #1428a0;
    --accent-green: #0cd664;

    --brand-gradient: linear-gradient(135deg, #3e91ff 0%, #0381fe 100%);
    --brand-duo-gradient: linear-gradient(135deg, #3e91ff 0%, #1259c3 100%);

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #787878;

    /* Precision 5% Sub-rounded Geometry */
    --radius-xs: 3px;
    --radius-sm: 4px;
    --radius-md: 5px;
    --radius-lg: 6px;
    --radius-card: 6px;
    --radius-pill: 5px;

    --ease-samsung: cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "SamsungOne", "Samsung Sans", "Segoe UI", sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "SamsungOne", "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   Samsung One UI Light Theme
   ========================================================================== */
html.light-theme {
    --one-bg: #f6f6f6;
    --one-surface-base: #fcfcfc;
    --one-surface-card: #fcfcfc;
    --one-surface-card-hover: #efefef;
    --one-surface-elevated: #fcfcfc;
    --one-surface-subtle: #efefef;
    --one-card-border: rgba(23, 23, 23, 0.08);
    --one-card-border-active: rgba(3, 129, 254, 0.4);
    --one-header-bg: rgba(246, 246, 246, 0.9);
    --one-dock-bg: rgba(252, 252, 252, 0.95);
    --one-sheet-bg: #fcfcfc;
    --one-toast-bg: #252525;
    --one-hero-bg:
        radial-gradient(circle at 15% 20%, rgba(3, 129, 254, 0.08) 0%, transparent 48%),
        radial-gradient(circle at 88% 82%, rgba(20, 40, 160, 0.06) 0%, transparent 50%),
        #fcfcfc;
    --one-art-fallback-bg: radial-gradient(circle at center, #eef5ff 0%, #ddeaff 100%);
    --one-shadow-card: 0 8px 24px rgba(23, 23, 23, 0.06);

    --oneui-blue: #0381fe;
    --oneui-blue-vivid: #0381fe;
    --oneui-blue-deep: #1259c3;
    --brand-gradient: linear-gradient(135deg, #0381fe 0%, #1259c3 100%);
    --brand-duo-gradient: linear-gradient(135deg, #0381fe 0%, #1428a0 100%);

    --text-primary: #171717;
    --text-secondary: #5c5c5c;
    --text-muted: #7a7a7a;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    background: var(--one-bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: background-color 0.25s ease, color 0.25s ease;
}

body {
    background-color: var(--one-bg);
    color: var(--text-primary);
    min-height: 100dvh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
    transition: background-color 0.25s ease, color 0.25s ease;
}

button,
input,
textarea {
    font-family: inherit;
    color: inherit;
}

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

/* ==========================================================================
   Ambient One UI Glows
   ========================================================================== */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(85px);
    opacity: 0.65;
    animation: ambientFloat 14s ease-in-out infinite alternate;
}

.ambient-glow--blue {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(3, 129, 254, 0.2) 0%, rgba(20, 40, 160, 0.06) 55%, transparent 75%);
    top: -180px;
    left: -120px;
}

.ambient-glow--orange {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(62, 145, 255, 0.14) 0%, rgba(18, 89, 195, 0.04) 55%, transparent 75%);
    top: 120px;
    right: -140px;
    animation-delay: -5s;
}

html.light-theme .ambient-glow--blue {
    background: radial-gradient(circle, rgba(3, 129, 254, 0.1) 0%, transparent 70%);
}

html.light-theme .ambient-glow--orange {
    background: radial-gradient(circle, rgba(18, 89, 195, 0.08) 0%, transparent 70%);
}

@keyframes ambientFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(28px, 32px) scale(1.1); }
}

/* ==========================================================================
   One UI Toast
   ========================================================================== */
.one-toast {
    position: fixed;
    top: 116px;
    left: 50%;
    transform: translateX(-50%) translateY(-160px);
    background: var(--one-toast-bg);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    color: #fff;
    padding: 11px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.36s var(--ease-bounce), opacity 0.3s ease;
    max-width: calc(100vw - 32px);
}

.one-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.one-toast__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--oneui-blue);
    box-shadow: 0 0 10px var(--oneui-blue);
    flex-shrink: 0;
}

/* ==========================================================================
   Galaxy Status Strip & Sticky Header
   ========================================================================== */
.galaxy-status-strip {
    position: relative;
    z-index: 5;
    max-width: 1120px;
    margin: 0 auto;
    padding: 10px 20px 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.status-left,
.status-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

#cr-clock {
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.status-tag {
    color: var(--oneui-blue);
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 0.72rem;
}

.status-signal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--one-surface-card);
    border: 1px solid var(--one-card-border);
    padding: 2px 9px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.status-pill svg {
    width: 13px;
    height: 13px;
    fill: var(--oneui-blue);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--one-header-bg);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-bottom: 1px solid var(--one-card-border);
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-logo {
    height: 36px;
    width: auto;
    display: block;
    object-fit: contain;
}

.brand-tagline {
    font-size: 0.78rem;
    color: var(--text-secondary);
    border-left: 1px solid var(--one-card-border);
    padding-left: 12px;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--one-surface-card);
    border: 1px solid var(--one-card-border);
    padding: 4px;
    border-radius: var(--radius-md);
}

.nav-pill {
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s var(--ease-samsung);
}

.nav-pill:hover {
    color: var(--text-primary);
    background: var(--one-surface-card-hover);
}

.nav-pill.active {
    color: #ffffff;
    background: var(--oneui-blue-vivid);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Theme Switcher Button */
.theme-toggle-btn {
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--one-card-border);
    background: var(--one-surface-card);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s var(--ease-samsung);
}

.theme-toggle-btn:hover {
    background: var(--one-surface-card-hover);
    border-color: var(--one-card-border-active);
}

.theme-toggle-btn svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.theme-toggle-btn .icon-moon {
    display: none;
}

.theme-toggle-btn .icon-sun {
    display: block;
    fill: var(--oneui-blue);
}

html.light-theme .theme-toggle-btn .icon-sun {
    display: none;
}

html.light-theme .theme-toggle-btn .icon-moon {
    display: block;
    fill: var(--oneui-blue-deep);
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--one-card-border);
    background: var(--one-surface-card);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.22s var(--ease-samsung);
}

.icon-btn svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.icon-btn:hover {
    background: var(--one-surface-card-hover);
    border-color: var(--one-card-border-active);
    transform: translateY(-1px);
}

.icon-btn:active {
    transform: scale(0.95);
}

.icon-btn--whatsapp {
    background: var(--oneui-blue-vivid);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 18px rgba(3, 129, 254, 0.35);
}

.icon-btn--whatsapp:hover {
    background: var(--oneui-blue-deep);
    box-shadow: 0 8px 24px rgba(3, 129, 254, 0.45);
}

.icon-btn--soft {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--one-surface-subtle);
}

/* ==========================================================================
   Main Container & Cards (5% Corners)
   ========================================================================== */
.galaxy-shell {
    position: relative;
    z-index: 2;
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 20px 110px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.one-card {
    background: var(--one-surface-card);
    border: 1px solid var(--one-card-border);
    border-radius: var(--radius-card);
    padding: 26px;
    box-shadow: var(--one-shadow-card);
    position: relative;
    overflow: hidden;
}

.eyebrow-accent {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--oneui-blue);
    margin-bottom: 4px;
}

.eyebrow-muted {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* ==========================================================================
   Sponsor Strip
   ========================================================================== */
.sponsor-strip {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sponsor-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}

.sponsor-meta-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sponsor-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sponsor-dot {
    width: 8px;
    height: 5px;
    border-radius: var(--radius-xs);
    background: rgba(127, 140, 175, 0.35);
    border: none;
    cursor: pointer;
    transition: all 0.25s var(--ease-samsung);
}

.sponsor-dot.active {
    width: 22px;
    background: var(--oneui-blue);
}

.pill-outline {
    background: var(--one-surface-card);
    border: 1px solid rgba(62, 145, 255, 0.5);
    color: var(--oneui-blue);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease-samsung);
}

.pill-outline--sm {
    padding: 4px 12px;
    font-size: 0.74rem;
}

.pill-outline:hover {
    background: rgba(3, 129, 254, 0.14);
}

.sponsor-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(90deg, rgba(20, 40, 160, 0.28) 0%, #171717 55%, rgba(3, 129, 254, 0.18) 100%);
    border: 1px solid var(--one-card-border);
    border-radius: var(--radius-lg);
    padding: 13px 18px;
    transition: border-color 0.25s var(--ease-samsung), transform 0.25s var(--ease-samsung);
}

html.light-theme .sponsor-card {
    background: linear-gradient(90deg, rgba(3, 129, 254, 0.08) 0%, #fcfcfc 55%, rgba(18, 89, 195, 0.08) 100%);
    border-color: rgba(3, 129, 254, 0.16);
    box-shadow: var(--one-shadow-card);
}

.sponsor-card:hover {
    border-color: var(--oneui-blue);
    transform: translateY(-1px);
}

.sponsor-card.has-image {
    padding: 0;
    overflow: hidden;
    justify-content: center;
    background: var(--one-surface-card);
}

.sponsor-card img {
    width: 100%;
    max-height: 92px;
    object-fit: cover;
    display: block;
}

.sponsor-card__badge {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: rgba(62, 145, 255, 0.18);
    border: 1px solid rgba(62, 145, 255, 0.4);
    color: #9ec8ff;
    white-space: nowrap;
}

html.light-theme .sponsor-card__badge {
    background: rgba(3, 129, 254, 0.12);
    border-color: rgba(3, 129, 254, 0.26);
    color: var(--oneui-blue-deep);
}

.sponsor-card__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.sponsor-card__text strong {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sponsor-card__text span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.sponsor-card__cta {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--oneui-blue);
    white-space: nowrap;
}

/* ==========================================================================
   Hero Player (Samsung One UI Media Control)
   ========================================================================== */
.player-hero {
    background: var(--one-hero-bg);
    border-color: var(--one-card-border);
}

.player-hero__grid {
    display: grid;
    grid-template-columns: minmax(250px, 320px) 1fr;
    gap: 32px;
    align-items: center;
}

/* Artwork Container (5% sub-rounded) */
.artwork-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.artwork-halo {
    position: absolute;
    inset: -12px;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle, rgba(3, 129, 254, 0.42) 0%, rgba(20, 40, 160, 0.24) 55%, transparent 72%);
    filter: blur(26px);
    opacity: 0.5;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

html.light-theme .artwork-halo {
    opacity: 0.22;
}

.is-playing .artwork-halo {
    opacity: 0.88;
    animation: haloBeat 2.4s ease-in-out infinite alternate;
}

@keyframes haloBeat {
    0% { transform: scale(0.97); }
    100% { transform: scale(1.04); }
}

.artwork-squircle {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 320px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--one-art-fallback-bg);
    border: 1px solid var(--one-card-border);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.25s ease, transform 0.25s var(--ease-samsung);
}

.artwork-squircle:hover {
    border-color: var(--oneui-blue);
}

.artwork-squircle:active {
    transform: scale(0.985);
}

html.light-theme .artwork-squircle {
    box-shadow: 0 14px 32px rgba(23, 23, 23, 0.12);
}

.artwork-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease-samsung), opacity 0.3s ease;
}

.artwork-img.is-fallback {
    width: 74%;
    height: auto;
    object-fit: contain;
}

.is-playing .artwork-img:not(.is-fallback) {
    transform: scale(1.03);
}

.artwork-badge {
    position: absolute;
    background: rgba(23, 23, 23, 0.84);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 5px 11px;
    border-radius: var(--radius-sm);
    font-size: 0.74rem;
    font-weight: 700;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.artwork-badge--top {
    top: 12px;
    left: 12px;
    color: #8cc2ff;
    border-color: rgba(62, 145, 255, 0.45);
}

.artwork-badge--bottom {
    bottom: 12px;
    right: 12px;
}

/* Player Info & Metadata */
.player-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.player-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    background: rgba(62, 145, 255, 0.16);
    border: 1px solid rgba(62, 145, 255, 0.36);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #a3cbff;
    text-transform: uppercase;
}

#live-status-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

html.light-theme .live-pill {
    background: rgba(3, 129, 254, 0.1);
    border-color: rgba(3, 129, 254, 0.25);
    color: var(--oneui-blue-deep);
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
    animation: livePulse 2s infinite;
}

.live-dot--sm {
    width: 6px;
    height: 6px;
}

.live-dot.is-offline {
    background: #ff4d4d;
    box-shadow: 0 0 8px #ff4d4d;
    animation: none;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(1.25); }
}

.playlist-pill {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--one-surface-subtle);
    border: 1px solid var(--one-card-border);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
}

.audio-meta-pill {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--one-surface-subtle);
    border: 1px solid var(--one-card-border);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
}

.audio-meta-pill--accent {
    color: #9ec8ff;
    border-color: rgba(62, 145, 255, 0.32);
    background: rgba(62, 145, 255, 0.12);
    font-weight: 700;
}

html.light-theme .audio-meta-pill--accent {
    color: var(--oneui-blue-deep);
    background: rgba(3, 129, 254, 0.1);
}

.track-headings {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.track-title {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3.6vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.12;
    color: var(--text-primary);
    word-break: break-word;
}

.track-artist {
    font-size: clamp(1rem, 1.8vw, 1.22rem);
    font-weight: 500;
    color: var(--text-secondary);
}

/* Signature Audio Waveform Visualizer */
.waveform-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.waveform-bars {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 36px;
}

.wave-bar {
    flex: 1;
    max-width: 10px;
    height: 6px;
    border-radius: var(--radius-xs);
    background: rgba(160, 160, 160, 0.3);
    transition: height 0.25s ease, background 0.3s ease;
}

.wave-bar:nth-child(odd) {
    background: rgba(62, 145, 255, 0.45);
}

.wave-bar:nth-child(3n) {
    background: rgba(18, 89, 195, 0.45);
}

.is-playing .wave-bar {
    animation: waveDance var(--bar-speed, 0.85s) ease-in-out infinite alternate;
    animation-delay: var(--bar-delay, 0s);
}

.is-playing .wave-bar:nth-child(odd) {
    background: linear-gradient(180deg, #6eb0ff 0%, #3e91ff 100%);
    box-shadow: 0 0 10px rgba(62, 145, 255, 0.35);
}

.is-playing .wave-bar:nth-child(3n) {
    background: linear-gradient(180deg, #3e91ff 0%, #0381fe 100%);
    box-shadow: 0 0 10px rgba(3, 129, 254, 0.3);
}

@keyframes waveDance {
    0% { height: 7px; }
    100% { height: var(--bar-max, 32px); }
}

.track-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.74rem;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
}

.track-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(160, 160, 160, 0.24);
    border-radius: var(--radius-xs);
    overflow: hidden;
}

.track-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--brand-gradient);
    border-radius: var(--radius-xs);
    transition: width 0.6s linear;
}

/* Main Play + Volume Row (5% rounded buttons) */
.controls-main {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.play-fab {
    width: 66px;
    height: 66px;
    border-radius: var(--radius-lg);
    border: none;
    background: var(--oneui-blue-vivid);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(3, 129, 254, 0.38);
    transition: transform 0.22s var(--ease-bounce), background-color 0.2s ease, box-shadow 0.25s ease;
    position: relative;
    flex-shrink: 0;
}

.play-fab:hover {
    background: var(--oneui-blue-deep);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(3, 129, 254, 0.48);
}

.play-fab:active {
    transform: scale(0.95);
}

.play-fab svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.play-fab .icon-play {
    margin-left: 3px;
}

.play-fab .icon-pause,
.play-fab .play-spinner {
    display: none;
}

.is-playing .play-fab .icon-play {
    display: none;
}

.is-playing .play-fab .icon-pause {
    display: block;
}

.is-buffering .play-fab .icon-play,
.is-buffering .play-fab .icon-pause {
    display: none;
}

.is-buffering .play-fab .play-spinner {
    display: block;
    width: 26px;
    height: 26px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--one-surface-subtle);
    border: 1px solid var(--one-card-border);
    padding: 6px 14px 6px 8px;
    border-radius: var(--radius-md);
    flex: 1;
    max-width: 280px;
    min-width: 190px;
}

.volume-control .icon-vol-off {
    display: none;
}

.volume-control.is-muted .icon-vol-on {
    display: none;
}

.volume-control.is-muted .icon-vol-off {
    display: block;
    fill: var(--oneui-blue);
}

.one-slider {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 5px;
    border-radius: var(--radius-xs);
    background: rgba(160, 160, 160, 0.32);
    outline: none;
    cursor: pointer;
}

.one-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-xs);
    background: var(--oneui-blue);
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease;
}

.one-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.one-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: var(--radius-xs);
    background: var(--oneui-blue);
    border: 2px solid #fff;
}

.volume-pct {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 34px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Quick Action Buttons (5% sub-rounded) */
.quick-pills-scroll,
.player-quick-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--one-surface-subtle);
    border: 1px solid var(--one-card-border);
    padding: 9px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s var(--ease-samsung);
}

.quick-pill svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.quick-pill:hover {
    background: var(--one-surface-card-hover);
    border-color: var(--one-card-border-active);
    transform: translateY(-1px);
}

.quick-pill:active {
    transform: scale(0.96);
}

.quick-pill.active {
    background: var(--oneui-blue-vivid);
    border-color: var(--oneui-blue-vivid);
    color: #fff;
}

.quick-pill--accent {
    border-color: rgba(62, 145, 255, 0.45);
    color: var(--oneui-blue);
}

html:not(.light-theme) .quick-pill--accent {
    color: #9ec8ff;
}

.quick-pill--accent svg {
    fill: var(--oneui-blue);
}

.quick-pill.is-timer-active {
    background: rgba(3, 129, 254, 0.18);
    border-color: var(--oneui-blue);
    color: var(--text-primary);
}

.previous-track-row {
    border-top: 1px solid var(--one-card-border);
    padding-top: 14px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.86rem;
}

.previous-label {
    color: var(--text-muted);
    font-weight: 600;
}

.previous-value {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.previous-value:hover {
    color: var(--oneui-blue);
}

/* ==========================================================================
   Section Headers & History Grid
   ========================================================================== */
.section-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.section-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.section-header--outer {
    padding: 4px 4px 0;
}

.section-note {
    font-size: 0.84rem;
    color: var(--text-secondary);
}

/* One UI Switch (5% track) */
.one-switch-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
}

.one-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
}

.one-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;
    background: rgba(160, 160, 160, 0.35);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.25s var(--ease-samsung);
}

.slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: var(--radius-xs);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s var(--ease-bounce);
}

.one-switch input:checked + .slider {
    background: var(--oneui-blue-vivid);
}

.one-switch input:checked + .slider::before {
    transform: translateX(20px);
}

/* History Grid */
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    font-family: inherit;
    color: inherit;
    cursor: pointer;
    background: var(--one-surface-subtle);
    border: 1px solid var(--one-card-border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    transition: all 0.2s var(--ease-samsung);
}

.history-play-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(62, 145, 255, 0.14);
    color: #9ec8ff;
    font-size: 0.75rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.history-item:hover .history-play-badge {
    background: var(--oneui-blue-vivid);
    color: #ffffff;
    transform: scale(1.06);
}

html.light-theme .history-play-badge {
    background: rgba(3, 129, 254, 0.12);
    color: var(--oneui-blue-deep);
}

.history-player-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.history-player-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--one-surface-subtle);
    border: 1px solid var(--one-card-border);
}

.history-player-hero img {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #222;
    flex-shrink: 0;
}

.history-player-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-player-meta strong {
    font-size: 1rem;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.history-player-meta span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.history-player-audio {
    width: 100%;
    height: 44px;
    border-radius: var(--radius-md);
}

html.light-theme .history-item {
    background: #f6f6f6;
}

.history-item:hover {
    background: var(--one-surface-card-hover);
    border-color: var(--one-card-border-active);
    transform: translateY(-1px);
}

.history-thumb {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #252525;
    flex-shrink: 0;
}

.history-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.history-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-artist {
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.history-era-tag {
    color: #9ec8ff;
    background: rgba(62, 145, 255, 0.16);
    padding: 2px 7px;
    border-radius: var(--radius-xs);
    font-weight: 600;
}

html.light-theme .history-era-tag {
    color: var(--oneui-blue-deep);
    background: rgba(3, 129, 254, 0.12);
}

.history-skeleton {
    grid-column: 1 / -1;
    padding: 26px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================================================
   Noticias (Costa Rica, Música & Cabina — One UI Cards, 5% Corners)
   ========================================================================== */
.news-updated-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--one-surface-subtle);
    border: 1px solid var(--one-card-border);
    padding: 5px 10px;
    border-radius: var(--radius-xs);
    white-space: nowrap;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.news-grid--featured {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.news-more-row {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.news-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--one-surface-subtle);
    border: 1px solid var(--one-card-border);
    color: var(--text-primary);
    padding: 11px 22px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-samsung);
}

.news-more-btn:hover {
    background: var(--one-surface-card-hover);
    border-color: var(--oneui-blue);
    transform: translateY(-1px);
}

.news-more-btn:active {
    transform: scale(0.98);
}

.news-more-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 7px;
    border-radius: var(--radius-xs);
    background: var(--oneui-blue-vivid);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 700;
}

.news-popup-filters {
    margin-bottom: 14px;
}

.news-grid--popup {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sheet-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--one-card-border);
    background: var(--one-surface-subtle);
    color: var(--oneui-blue);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.sheet-back-btn:hover {
    background: var(--one-surface-card-hover);
    border-color: var(--oneui-blue);
}

.news-card {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    width: 100%;
    background: var(--one-surface-subtle);
    border: 1px solid var(--one-card-border);
    border-radius: var(--radius-md);
    padding: 15px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.22s var(--ease-samsung), border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.news-card:hover {
    transform: translateY(-2px);
    background: var(--one-surface-card-hover);
    border-color: var(--oneui-blue);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

html.light-theme .news-card:hover {
    box-shadow: 0 10px 24px rgba(23, 23, 23, 0.08);
}

.news-card:active {
    transform: scale(0.985);
}

.news-card.is-emisora {
    border-color: rgba(62, 145, 255, 0.36);
    background: linear-gradient(180deg, rgba(3, 129, 254, 0.09) 0%, var(--one-surface-subtle) 100%);
}

html.light-theme .news-card.is-emisora {
    border-color: rgba(3, 129, 254, 0.28);
    background: linear-gradient(180deg, rgba(3, 129, 254, 0.07) 0%, #fcfcfc 100%);
}

.news-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.news-card__text {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.news-card__badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.news-cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--radius-xs);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.news-cat-pill--cr {
    color: #9ec8ff;
    background: rgba(62, 145, 255, 0.16);
}

html.light-theme .news-cat-pill--cr {
    color: var(--oneui-blue-deep);
    background: rgba(3, 129, 254, 0.12);
}

.news-cat-pill--music {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.16);
}

html.light-theme .news-cat-pill--music {
    color: #047857;
    background: rgba(16, 185, 129, 0.14);
}

.news-cat-pill--emisora {
    color: #ffffff;
    background: var(--oneui-blue-vivid);
}

.news-card__source {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-card__title {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__thumb-wrap {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--one-surface-base);
    border: 1px solid var(--one-card-border);
}

.news-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card__excerpt {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.46;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 9px;
    border-top: 1px solid var(--one-card-border);
    font-size: 0.74rem;
    color: var(--text-muted);
}

.news-card__cta {
    color: var(--oneui-blue);
    font-weight: 700;
    white-space: nowrap;
}

.news-sheet-hero {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--one-card-border);
    margin-bottom: 14px;
    display: block;
}

.news-sheet-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.news-sheet-summary {
    background: var(--one-surface-subtle);
    border: 1px solid var(--one-card-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-size: 0.94rem;
    line-height: 1.62;
    color: var(--text-primary);
    white-space: pre-line;
    margin-bottom: 16px;
}

.news-sheet-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.news-sheet-actions .one-submit-btn {
    text-decoration: none;
    text-align: center;
    flex: 1;
}

/* ==========================================================================
   Programación Cards (5% corners, Samsung One UI Blue Gradients)
   ========================================================================== */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 16px;
}

.show-card {
    background: var(--one-surface-elevated);
    border: 1px solid var(--one-card-border);
    border-radius: var(--radius-card);
    box-shadow: var(--one-shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s var(--ease-samsung), border-color 0.25s ease;
}

.show-card:hover {
    transform: translateY(-3px);
    border-color: var(--oneui-blue);
}

.show-card.is-live {
    border-color: var(--oneui-blue);
    box-shadow: 0 12px 30px rgba(3, 129, 254, 0.22);
}

.show-card__banner {
    position: relative;
    height: 132px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: #fff;
}

.show-card__banner--morning {
    background: linear-gradient(135deg, #1428a0 0%, #0381fe 100%);
}

.show-card__banner--requests {
    background: linear-gradient(135deg, #1259c3 0%, #3e91ff 100%);
}

.show-card__banner--drive {
    background: linear-gradient(135deg, #0d1b6b 0%, #1259c3 55%, #0381fe 100%);
}

.show-card__banner--club {
    background: linear-gradient(135deg, #171717 0%, #1428a0 65%, #3e91ff 100%);
}

.show-card__wave {
    position: absolute;
    right: -12px;
    bottom: -12px;
    font-size: 4.5rem;
    opacity: 0.16;
    pointer-events: none;
}

.show-countdown {
    align-self: flex-start;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.show-card.is-live .show-countdown {
    background: rgba(12, 214, 100, 0.24);
    border-color: rgba(12, 214, 100, 0.7);
    color: #baffd6;
}

.show-banner-title {
    font-family: var(--font-display);
    font-size: 1.24rem;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 1;
}

.show-card__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.show-card__title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-primary);
}

.show-card__time {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--oneui-blue);
    text-transform: uppercase;
}

.show-card__desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* ==========================================================================
   About & Quick Ecosystem Widgets
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
    align-items: start;
}

.about-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-logo {
    height: 44px;
    width: auto;
    align-self: flex-start;
}

.about-copy {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.chips-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.decade-chip {
    padding: 6px 13px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid rgba(62, 145, 255, 0.38);
    background: rgba(62, 145, 255, 0.14);
    color: #9ec8ff;
}

html.light-theme .decade-chip {
    background: rgba(3, 129, 254, 0.1);
    border-color: rgba(3, 129, 254, 0.28);
    color: var(--oneui-blue-deep);
}

.decade-chip--hot {
    border-color: var(--oneui-blue-vivid);
    background: var(--oneui-blue-vivid);
    color: #ffffff;
}

html.light-theme .decade-chip--hot {
    background: var(--oneui-blue-vivid);
    border-color: var(--oneui-blue-vivid);
    color: #ffffff;
}

.genre-chip {
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    font-weight: 500;
    background: var(--one-surface-subtle);
    border: 1px solid var(--one-card-border);
    color: var(--text-secondary);
}

.about-widgets {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.one-mini-widget {
    background: var(--one-surface-subtle);
    border: 1px solid var(--one-card-border);
    border-radius: var(--radius-card);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

html.light-theme .one-mini-widget {
    background: #f6f6f6;
}

.mini-widget-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-widget-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.mini-widget-icon--blue {
    background: rgba(62, 145, 255, 0.18);
}

.mini-widget-icon--orange {
    background: rgba(20, 40, 160, 0.25);
}

html.light-theme .mini-widget-icon--orange {
    background: rgba(3, 129, 254, 0.12);
}

.mini-widget-head h3 {
    font-size: 0.96rem;
    font-weight: 700;
}

.mini-widget-head p {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.mini-widget-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.signal-widget-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mini-widget-actions--col {
    flex-direction: column;
    align-items: stretch;
    flex: 1 1 auto;
    min-width: 0;
}

.mini-widget-actions--col .squircle-btn {
    width: 100%;
    text-align: center;
    display: block;
}

.signal-widget-logo {
    flex-shrink: 0;
    width: 108px;
    height: 120px;
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signal-widget-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 420px) {
    .signal-widget-split {
        gap: 12px;
    }

    .signal-widget-logo {
        width: 88px;
        height: 98px;
    }
}

.squircle-btn {
    background: var(--one-surface-card);
    border: 1px solid var(--one-card-border);
    color: var(--text-primary);
    padding: 8px 13px;
    border-radius: var(--radius-md);
    font-size: 0.79rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease-samsung);
}

.squircle-btn:hover {
    background: var(--one-surface-card-hover);
    border-color: var(--one-card-border-active);
}

.squircle-btn--orange {
    background: var(--oneui-blue-vivid);
    border-color: transparent;
    color: #fff;
}

.squircle-btn--orange:hover {
    background: var(--oneui-blue-deep);
}

/* ==========================================================================
   Redes Sociales & WhatsApp Strip (5% Corners)
   ========================================================================== */
.social-strip-card {
    padding: 20px 24px;
}

.social-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.social-strip__title {
    font-size: clamp(1.12rem, 2vw, 1.38rem);
    margin-top: 2px;
}

.social-pills-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: var(--radius-md);
    background: var(--one-surface-subtle);
    border: 1px solid var(--one-card-border);
    color: var(--text-primary);
    text-decoration: none;
    transition: transform 0.2s var(--ease-samsung), border-color 0.2s ease, background-color 0.2s ease;
}

.social-pill-btn:hover {
    transform: translateY(-2px);
    background: var(--one-surface-card-hover);
    border-color: var(--oneui-blue);
}

.social-pill-btn svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
    flex-shrink: 0;
    color: var(--oneui-blue);
}

.social-pill-btn--wa {
    background: rgba(37, 211, 102, 0.14);
    border-color: rgba(37, 211, 102, 0.42);
}

.social-pill-btn--wa:hover {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.22);
}

.social-pill-btn--wa svg {
    color: #25d366;
}

html.light-theme .social-pill-btn--wa svg {
    color: #15803d;
}

.social-pill-btn__meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.social-pill-btn__meta strong {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-primary);
}

.social-pill-btn__meta span {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.galaxy-footer {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.footer-links a,
.footer-link-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.82rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-link-btn:hover {
    color: var(--oneui-blue);
}

/* ==========================================================================
   Samsung One UI Now Bar (Sticky Mini-Player — 5% Corners)
   ========================================================================== */
.now-bar {
    position: fixed;
    bottom: 20px;
    right: 22px;
    z-index: 80;
    background: var(--one-dock-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--one-card-border);
    border-radius: var(--radius-lg);
    padding: 7px 10px 7px 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 340px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    transform: translateY(130px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease-samsung), opacity 0.25s ease;
}

.now-bar.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.now-bar__info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    text-align: left;
    min-width: 0;
    flex: 1;
    cursor: pointer;
}

.now-bar__art {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #252525;
    flex-shrink: 0;
}

.now-bar__meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.now-bar__title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.now-bar__artist {
    font-size: 0.72rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.now-bar__play {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--oneui-blue-vivid);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.now-bar__play svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.now-bar__play .icon-pause {
    display: none;
}

.is-playing .now-bar__play .icon-play {
    display: none;
}

.is-playing .now-bar__play .icon-pause {
    display: block;
}

/* ==========================================================================
   Mobile One UI Floating Bottom Dock
   ========================================================================== */
.dock-container {
    display: none;
}

/* ==========================================================================
   One UI Bottom Sheet / Modal Dialog (5% Corners)
   ========================================================================== */
.sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s var(--ease-samsung);
}

.sheet-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.bottom-sheet {
    width: 100%;
    max-width: 600px;
    max-height: 88dvh;
    background: var(--one-sheet-bg);
    border-top: 1px solid var(--one-card-border);
    border-left: 1px solid var(--one-card-border);
    border-right: 1px solid var(--one-card-border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 14px 24px 32px;
    box-shadow: 0 -16px 50px rgba(0, 0, 0, 0.45);
    transform: translateY(100%);
    transition: transform 0.34s var(--ease-samsung);
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
}

.sheet-overlay.active .bottom-sheet {
    transform: translateY(0);
}

@media (min-width: 680px) {
    .sheet-overlay.is-popup {
        align-items: center;
        padding: 24px;
    }

    .bottom-sheet--wide {
        max-width: 920px;
        max-height: 86dvh;
        border: 1px solid var(--one-card-border);
        border-radius: var(--radius-lg);
        box-shadow: var(--one-shadow-modal);
    }
}

@media (max-width: 679px) {
    .news-grid--popup {
        grid-template-columns: 1fr;
    }
}

.sheet-handle-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.sheet-handle {
    grid-column: 2;
    width: 44px;
    height: 5px;
    border: none;
    border-radius: var(--radius-xs);
    background: rgba(160, 160, 160, 0.35);
    cursor: pointer;
}

.sheet-close {
    grid-column: 3;
    justify-self: end;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--one-card-border);
    background: var(--one-surface-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
}

.sheet-title {
    font-family: var(--font-display);
    font-size: 1.38rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sheet-content {
    overflow-y: auto;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

/* Sheet Components */
.sheet-lyrics-box {
    white-space: pre-wrap;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--one-surface-subtle);
    border: 1px solid var(--one-card-border);
    border-radius: var(--radius-md);
    padding: 18px;
    font-size: 0.94rem;
}

/* YouTube Music-Style Karaoke Lyrics View */
.bottom-sheet--karaoke {
    max-width: 660px;
}

.bottom-sheet--karaoke .sheet-content {
    overflow: hidden;
    gap: 10px;
}

.karaoke-submeta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.karaoke-clock {
    font-variant-numeric: tabular-nums;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--oneui-blue);
    background: rgba(3, 129, 254, 0.12);
    border: 1px solid rgba(3, 129, 254, 0.25);
    padding: 3px 9px;
    border-radius: var(--radius-sm);
}

.karaoke-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    background: var(--one-surface-subtle);
    border: 1px solid var(--one-card-border);
}

.karaoke-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.karaoke-sync-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.karaoke-ctrl-btn {
    background: var(--one-surface-subtle);
    border: 1px solid var(--one-card-border);
    color: var(--text-secondary);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s var(--ease-samsung);
}

.karaoke-ctrl-btn:hover {
    color: var(--text-primary);
    border-color: var(--one-card-border-active);
}

.karaoke-ctrl-btn.is-active {
    background: var(--oneui-blue-vivid);
    border-color: var(--oneui-blue-vivid);
    color: #ffffff;
}

.karaoke-offset-pill {
    min-width: 52px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
}

.karaoke-stage-wrap {
    position: relative;
}

.karaoke-stage {
    position: relative;
    height: min(48dvh, 420px);
    overflow-y: auto;
    padding: 36px 8px 110px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scroll-behavior: smooth;
    background: var(--one-surface-subtle);
    border: 1px solid var(--one-card-border);
    border-radius: var(--radius-md);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 84%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 84%, transparent 100%);
}

html.light-theme .karaoke-stage {
    background: #f6f6f6;
}

.karaoke-line {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    border-radius: var(--radius-sm);
    padding: 9px 14px;
    font-family: var(--font-display);
    font-size: clamp(1.06rem, 2.2vw, 1.24rem);
    font-weight: 600;
    line-height: 1.42;
    color: var(--text-secondary);
    opacity: 0.56;
    cursor: pointer;
    transition: opacity 0.25s ease, color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-samsung);
}

.karaoke-line:hover {
    opacity: 0.9;
    background: rgba(62, 145, 255, 0.08);
}

.karaoke-line.is-past {
    opacity: 0.34;
}

.karaoke-line.is-upcoming {
    opacity: 0.62;
}

.karaoke-line.is-break {
    font-size: 0.95rem;
    letter-spacing: 0.1em;
}

.karaoke-line.is-active {
    opacity: 1;
    color: var(--text-primary);
    font-weight: 800;
    background: rgba(62, 145, 255, 0.16);
    border-left-color: var(--oneui-blue);
    transform: translateX(4px);
}

html.light-theme .karaoke-line.is-active {
    background: rgba(3, 129, 254, 0.12);
    color: #171717;
}

.karaoke-jump-btn {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--oneui-blue-vivid);
    color: #ffffff;
    border: none;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(3, 129, 254, 0.4);
    z-index: 5;
}

.karaoke-tip {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.one-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.one-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.one-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.one-field input,
.one-field textarea {
    width: 100%;
    background: var(--one-surface-subtle);
    border: 1px solid var(--one-card-border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font-size: 0.92rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.one-field input:focus,
.one-field textarea:focus {
    border-color: var(--oneui-blue);
    box-shadow: 0 0 0 3px rgba(3, 129, 254, 0.22);
}

.one-submit-btn {
    border: none;
    background: var(--oneui-blue-vivid);
    color: #fff;
    font-size: 0.94rem;
    font-weight: 700;
    padding: 13px 20px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(3, 129, 254, 0.32);
    transition: background-color 0.2s ease, transform 0.2s var(--ease-samsung);
}

.one-submit-btn:hover {
    background: var(--oneui-blue-deep);
}

.one-submit-btn:active {
    transform: scale(0.97);
}

.sheet-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.sheet-tile-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--one-surface-subtle);
    border: 1px solid var(--one-card-border);
    border-radius: var(--radius-md);
    padding: 14px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.sheet-tile-btn:hover {
    background: var(--one-surface-card-hover);
    border-color: var(--one-card-border-active);
}

.sheet-tile-btn strong {
    color: var(--text-primary);
    font-size: 0.92rem;
}

.sheet-tile-btn span {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.sheet-tile-btn.is-active {
    background: rgba(3, 129, 254, 0.14);
    border-color: var(--oneui-blue);
}

/* ==========================================================================
   Responsive (Galaxy S Mobile Layout)
   ========================================================================== */
@media (max-width: 860px) {
    .desktop-nav,
    .brand-tagline {
        display: none;
    }

    .player-hero__grid {
        grid-template-columns: 1fr;
        gap: 22px;
        text-align: center;
    }

    .artwork-squircle {
        max-width: 260px;
        margin: 0 auto;
    }

    .player-status-row,
    .controls-main,
    .player-quick-actions,
    .previous-track-row {
        justify-content: center;
    }

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

    .galaxy-shell {
        padding-bottom: 132px;
    }

    .dock-container {
        position: fixed;
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 24px);
        max-width: 460px;
        z-index: 95;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .one-dock {
        width: 100%;
        background: var(--one-dock-bg);
        border: 1px solid var(--one-card-border);
        backdrop-filter: blur(26px) saturate(180%);
        -webkit-backdrop-filter: blur(26px) saturate(180%);
        border-radius: var(--radius-lg);
        padding: 7px 10px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
    }

    .dock-btn {
        background: transparent;
        border: none;
        color: var(--text-secondary);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        flex: 1;
        min-width: 0;
        padding: 6px 4px;
        border-radius: var(--radius-sm);
        cursor: pointer;
        font-size: 0.65rem;
        font-weight: 600;
        transition: all 0.2s var(--ease-samsung);
    }

    .dock-btn svg {
        width: 21px;
        height: 21px;
        fill: currentColor;
    }

    .dock-btn.active {
        color: var(--text-primary);
        background: rgba(3, 129, 254, 0.14);
    }

    .dock-btn.active svg {
        fill: var(--oneui-blue);
    }

    .gesture-bar {
        width: 112px;
        height: 4px;
        border-radius: var(--radius-xs);
        background: rgba(160, 160, 160, 0.4);
    }

    .now-bar {
        left: 12px;
        right: 12px;
        bottom: 84px;
        max-width: none;
    }
}

@media (max-width: 520px) {
    .one-toast {
        top: 68px;
    }

    .theme-toggle-label {
        display: none;
    }

    .theme-toggle-btn {
        width: 40px;
        padding: 0;
        justify-content: center;
    }

    #history-filter-pills,
    #news-filter-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    #history-filter-pills::-webkit-scrollbar,
    #news-filter-pills::-webkit-scrollbar {
        display: none;
    }

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

    .one-card {
        padding: 20px 18px;
        border-radius: var(--radius-card);
    }

    .brand-logo {
        height: 30px;
    }

    .volume-control {
        min-width: 0;
        flex: 0 1 auto;
        padding: 5px 10px 5px 6px;
    }

    .one-slider {
        width: 84px;
    }

    .sponsor-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .sheet-actions-grid {
        grid-template-columns: 1fr;
    }
}
