    :root {
        --bg-deep: #090b10;
        --bg-card: #111520;
        --bg-elevated: #181d2a;
        --accent: #e8ff47;
        --accent2: #ff6b6b;
        --accent3: #6bffd4;
        --text-primary: #f0f2ff;
        --text-muted: #5a6180;
        --border: rgba(255, 255, 255, 0.06);
        --glow: rgba(232, 255, 71, 0.15);
    }

    * {
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
    }

    html,
    body {
        height: 100%;
        margin: 0;
        padding: 0;
        background: var(--bg-deep);
        font-family: 'DM Sans', sans-serif;
        color: var(--text-primary);
        overflow: hidden;
    }

    #app {
        display: flex;
        flex-direction: column;
        height: 100dvh;
        max-width: 430px;
        margin: 0 auto;
        position: relative;
        overflow: hidden;
    }

    /* Background aurora effect */
    .aurora {
        position: fixed;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        overflow: hidden;
    }

    .aurora-blob {
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
        opacity: 0.12;
        animation: drift 12s ease-in-out infinite alternate;
    }

    .aurora-blob:nth-child(1) {
        width: 300px;
        height: 300px;
        background: var(--accent);
        top: -100px;
        left: -100px;
        animation-delay: 0s;
    }

    .aurora-blob:nth-child(2) {
        width: 250px;
        height: 250px;
        background: var(--accent2);
        top: 30%;
        right: -80px;
        animation-delay: -4s;
    }

    .aurora-blob:nth-child(3) {
        width: 200px;
        height: 200px;
        background: var(--accent3);
        bottom: 20%;
        left: 10%;
        animation-delay: -8s;
    }

    @keyframes drift {
        from {
            transform: translate(0, 0) scale(1);
        }

        to {
            transform: translate(40px, 60px) scale(1.15);
        }
    }

    /* Header */
    .app-header {
        position: relative;
        z-index: 10;
        padding: 16px 20px 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid var(--border);
        background: rgba(9, 11, 16, 0.8);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-shrink: 0;
    }

    .brand {
        font-family: 'Syne', sans-serif;
        font-weight: 800;
        font-size: 20px;
        letter-spacing: -0.5px;
        background: linear-gradient(135deg, var(--accent) 0%, var(--accent3) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .back-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 7px 14px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid var(--border);
        color: var(--text-primary);
        font-size: 12px;
        font-family: 'DM Sans', sans-serif;
        font-weight: 500;
        cursor: pointer;
        text-decoration: none;
        transition: all 0.2s ease;
        letter-spacing: 0.2px;
    }

    .back-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .back-btn svg {
        width: 12px;
        height: 12px;
    }

    /* Live badge */
    .live-badge {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 11px;
        font-weight: 600;
        color: var(--accent2);
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .live-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--accent2);
        animation: pulse-dot 1.5s ease-in-out infinite;
    }

    @keyframes pulse-dot {

        0%,
        100% {
            opacity: 1;
            transform: scale(1);
        }

        50% {
            opacity: 0.4;
            transform: scale(0.7);
        }
    }

    /* Views */
    .views-container {
        flex: 1;
        overflow: hidden;
        position: relative;
        z-index: 1;
    }

    .view {
        position: absolute;
        inset: 0;
        overflow-y: auto;
        overflow-x: hidden;
        opacity: 0;
        transform: translateY(20px);
        pointer-events: none;
        transition: opacity 0.35s ease, transform 0.35s ease;
        padding-bottom: 20px;
    }

    .view.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
    }

    /* Player View */
    .player-section {
        padding: 24px 20px 0;
    }

    .artwork-container {
        position: relative;
        margin: 0 auto 28px;
        width: 100%;
        max-width: 300px;
        aspect-ratio: 1/1;
    }

    .artwork-glow {
        position: absolute;
        inset: -20px;
        border-radius: 50%;
        background: var(--glow);
        filter: blur(30px);
        animation: glow-pulse 3s ease-in-out infinite;
        transition: background 0.8s ease;
    }

    @keyframes glow-pulse {

        0%,
        100% {
            opacity: 0.6;
            transform: scale(0.95);
        }

        50% {
            opacity: 1;
            transform: scale(1.05);
        }
    }

    .artwork-frame {
        position: relative;
        z-index: 1;
        width: 100%;
        aspect-ratio: 1/1;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border);
        background: var(--bg-card);
    }

    .artwork-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: opacity 0.5s ease;
    }

    .artwork-spinner {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--bg-card);
        border-radius: 20px;
        z-index: 2;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .artwork-spinner.visible {
        opacity: 1;
    }

    .spinner-ring {
        width: 36px;
        height: 36px;
        border: 3px solid rgba(232, 255, 71, 0.15);
        border-top-color: var(--accent);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

    /* Vinyl disc overlay */
    .vinyl-ring {
        position: absolute;
        inset: 0;
        border-radius: 20px;
        background: radial-gradient(circle at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.3) 31%, rgba(0, 0, 0, 0.15) 40%, transparent 41%);
        pointer-events: none;
        z-index: 2;
    }

    .track-info {
        text-align: center;
        margin-bottom: 28px;
        padding: 0 10px;
    }

    .track-title {
        font-family: 'Syne', sans-serif;
        font-size: 22px;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 6px;
        color: var(--text-primary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .track-artist {
        font-size: 15px;
        font-weight: 400;
        color: var(--text-muted);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .track-artist span {
        color: var(--accent);
        font-weight: 500;
    }

    /* Waveform visualizer */
    .waveform {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
        height: 32px;
        margin-bottom: 28px;
    }

    .wave-bar {
        width: 3px;
        border-radius: 3px;
        background: var(--accent);
        opacity: 0.7;
        animation: wave 1.2s ease-in-out infinite;
    }

    .wave-bar:nth-child(1) {
        animation-delay: 0.0s;
        height: 40%;
    }

    .wave-bar:nth-child(2) {
        animation-delay: 0.1s;
        height: 70%;
    }

    .wave-bar:nth-child(3) {
        animation-delay: 0.2s;
        height: 55%;
    }

    .wave-bar:nth-child(4) {
        animation-delay: 0.3s;
        height: 85%;
    }

    .wave-bar:nth-child(5) {
        animation-delay: 0.4s;
        height: 65%;
    }

    .wave-bar:nth-child(6) {
        animation-delay: 0.5s;
        height: 90%;
    }

    .wave-bar:nth-child(7) {
        animation-delay: 0.6s;
        height: 70%;
    }

    .wave-bar:nth-child(8) {
        animation-delay: 0.7s;
        height: 50%;
    }

    .wave-bar:nth-child(9) {
        animation-delay: 0.8s;
        height: 80%;
    }

    .wave-bar:nth-child(10) {
        animation-delay: 0.9s;
        height: 60%;
    }

    .wave-bar:nth-child(11) {
        animation-delay: 1.0s;
        height: 45%;
    }

    .wave-bar:nth-child(12) {
        animation-delay: 1.1s;
        height: 75%;
    }

    @keyframes wave {

        0%,
        100% {
            transform: scaleY(0.4);
        }

        50% {
            transform: scaleY(1);
        }
    }

    .waveform.paused .wave-bar {
        animation-play-state: paused;
        transform: scaleY(0.3);
    }

    /* Controls */
    .controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 24px;
        margin-bottom: 32px;
    }

    .btn-play {
        width: 72px;
        height: 72px;
        border-radius: 50%;
        background: var(--accent);
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 40px rgba(232, 255, 71, 0.4);
        transition: transform 0.15s ease, box-shadow 0.15s ease;
        flex-shrink: 0;
    }

    .btn-play:active {
        transform: scale(0.93);
        box-shadow: 0 0 20px rgba(232, 255, 71, 0.2);
    }

    .btn-play svg {
        color: #090b10;
        width: 28px;
        height: 28px;
        margin-left: 3px;
    }

    .btn-play.playing svg {
        margin-left: 0;
    }

    .btn-icon {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--bg-elevated);
        border: 1px solid var(--border);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }

    .btn-icon:active {
        background: rgba(255, 255, 255, 0.1);
    }

    .btn-icon svg {
        width: 20px;
        height: 20px;
        color: var(--text-muted);
    }

    /* Volume */
    .volume-row {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 0 20px;
    }

    .volume-row svg {
        width: 18px;
        height: 18px;
        color: var(--text-muted);
        flex-shrink: 0;
    }

    input[type=range] {
        -webkit-appearance: none;
        flex: 1;
        height: 4px;
        background: var(--bg-elevated);
        border-radius: 4px;
        outline: none;
        cursor: pointer;
    }

    input[type=range]::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: var(--accent);
        box-shadow: 0 0 10px rgba(232, 255, 71, 0.5);
        cursor: pointer;
    }

    input[type=range]::-moz-range-thumb {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: var(--accent);
        border: none;
        cursor: pointer;
    }

    /* Station card */
    .station-card {
        margin: 16px 20px 0;
        padding: 16px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 16px;
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .station-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: linear-gradient(135deg, var(--accent) 0%, var(--accent3) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .station-icon svg {
        width: 22px;
        height: 22px;
        color: #090b10;
    }

    .station-info {
        flex: 1;
        min-width: 0;
    }

    .station-name {
        font-family: 'Syne', sans-serif;
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 2px;
    }

    .station-freq {
        font-size: 12px;
        color: var(--text-muted);
    }

    /* Tab bar */
    .tab-bar {
        position: relative;
        z-index: 10;
        display: flex;
        align-items: center;
        background: rgba(9, 11, 16, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--border);
        padding: 8px 0 max(8px, env(safe-area-inset-bottom));
        flex-shrink: 0;
    }

    .tab-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 8px 4px;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--text-muted);
        font-family: 'DM Sans', sans-serif;
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 0.3px;
        transition: color 0.2s ease;
    }

    .tab-btn svg {
        width: 22px;
        height: 22px;
        transition: transform 0.2s ease;
    }

    .tab-btn.active {
        color: var(--accent);
    }

    .tab-btn.active svg {
        transform: scale(1.1);
    }

    .tab-indicator {
        position: absolute;
        top: 0;
        left: 0;
        height: 2px;
        width: 33.33%;
        background: var(--accent);
        border-radius: 0 0 2px 2px;
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: 0 0 12px var(--accent);
    }

    /* Request View */
    .request-section {
        padding: 24px 20px;
    }

    .section-title {
        font-family: 'Syne', sans-serif;
        font-size: 24px;
        font-weight: 800;
        margin-bottom: 6px;
    }

    .section-sub {
        font-size: 13px;
        color: var(--text-muted);
        margin-bottom: 24px;
        line-height: 1.5;
    }

    .request-widget-wrap {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 20px;
        overflow: hidden;
        min-height: 400px;
    }

    .request-widget-wrap iframe {
        width: 100%;
        min-height: 400px;
        border: none;
        display: block;
    }

    /* Placeholder for widget if no URL provided */
    .widget-placeholder {
        padding: 40px 24px;
        text-align: center;
    }

    .widget-placeholder .icon {
        width: 64px;
        height: 64px;
        margin: 0 auto 16px;
        border-radius: 20px;
        background: linear-gradient(135deg, rgba(232, 255, 71, 0.15) 0%, rgba(107, 255, 212, 0.15) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .widget-placeholder .icon svg {
        width: 32px;
        height: 32px;
        color: var(--accent);
    }

    .widget-placeholder h3 {
        font-family: 'Syne', sans-serif;
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .widget-placeholder p {
        font-size: 13px;
        color: var(--text-muted);
        line-height: 1.6;
    }

    .request-form {
        padding: 20px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-label {
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: var(--text-muted);
        letter-spacing: 0.5px;
        text-transform: uppercase;
        margin-bottom: 8px;
    }

    .form-input {
        width: 100%;
        padding: 14px 16px;
        background: var(--bg-elevated);
        border: 1px solid var(--border);
        border-radius: 12px;
        color: var(--text-primary);
        font-family: 'DM Sans', sans-serif;
        font-size: 15px;
        outline: none;
        transition: border-color 0.2s ease;
    }

    .form-input:focus {
        border-color: rgba(232, 255, 71, 0.4);
    }

    .form-input::placeholder {
        color: var(--text-muted);
    }

    .submit-btn {
        width: 100%;
        padding: 16px;
        background: var(--accent);
        border: none;
        border-radius: 12px;
        font-family: 'Syne', sans-serif;
        font-size: 16px;
        font-weight: 700;
        color: #090b10;
        cursor: pointer;
        transition: all 0.2s ease;
        margin-top: 8px;
        box-shadow: 0 8px 30px rgba(232, 255, 71, 0.3);
    }

    .submit-btn:active {
        transform: scale(0.97);
    }

    /* History View */
    .history-section {
        padding: 24px 20px;
    }

    .history-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .history-item {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
        animation: fadeUp 0.4s ease both;
    }

    .history-item:last-child {
        border-bottom: none;
    }

    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(12px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .track-thumb {
        width: 48px;
        height: 48px;
        border-radius: 10px;
        object-fit: cover;
        background: var(--bg-elevated);
        flex-shrink: 0;
        border: 1px solid var(--border);
    }

    .track-thumb-placeholder {
        width: 48px;
        height: 48px;
        border-radius: 10px;
        background: var(--bg-elevated);
        border: 1px solid var(--border);
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .track-thumb-placeholder svg {
        width: 20px;
        height: 20px;
        color: var(--text-muted);
    }

    .track-meta {
        flex: 1;
        min-width: 0;
    }

    .track-name {
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 3px;
    }

    .track-by {
        font-size: 12px;
        color: var(--text-muted);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .track-time {
        font-size: 11px;
        color: var(--text-muted);
        flex-shrink: 0;
    }

    .history-now-playing {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 14px 16px;
        background: linear-gradient(135deg, rgba(232, 255, 71, 0.08) 0%, rgba(107, 255, 212, 0.08) 100%);
        border: 1px solid rgba(232, 255, 71, 0.2);
        border-radius: 14px;
        margin-bottom: 20px;
    }

    .now-badge {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--accent);
        background: rgba(232, 255, 71, 0.12);
        padding: 3px 8px;
        border-radius: 6px;
        flex-shrink: 0;
    }

    .now-text {
        font-size: 13px;
        font-weight: 500;
        min-width: 0;
    }

    .skeleton {
        background: linear-gradient(90deg, var(--bg-elevated) 25%, rgba(255, 255, 255, 0.04) 50%, var(--bg-elevated) 75%);
        background-size: 200% 100%;
        animation: shimmer 1.5s infinite;
        border-radius: 6px;
    }

    @keyframes shimmer {
        to {
            background-position: -200% 0;
        }
    }

    .error-banner {
        margin: 0 20px;
        padding: 12px 16px;
        background: rgba(255, 107, 107, 0.1);
        border: 1px solid rgba(255, 107, 107, 0.2);
        border-radius: 12px;
        font-size: 13px;
        color: var(--accent2);
        display: none;
    }

    .error-banner.visible {
        display: block;
    }

    /* Scrollbar */
    .view::-webkit-scrollbar {
        width: 0;
    }