* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #FFFFFF;
    padding: 8px 12px 12px 12px;
    display: block;
    overflow-x: hidden;
    position: relative;
}

/* Floating Particles */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* Main Container */
.widget-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    display: block;
    position: relative;
    z-index: 1;
}

/* Glowing background effects */
.glow-bg {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(40px);
    opacity: 0.15;
}

.glow-orange {
    display: none;
}

.glow-blue {
    width: 250px;
    height: 250px;
    background: #4FB6FF;
    bottom: -80px;
    right: -30px;
}

/* Player Card */
.player-card {
    width: calc(100% - 24px);
    margin: 0 12px;
    background: rgba(249, 249, 249, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(228, 228, 228, 0.8);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 40px;
    height: auto;
    min-height: 320px;
    position: relative;
}

.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(79, 182, 255, 0.03) 100%);
    pointer-events: none;
}

/* Left Zone (65-70%) */
.left-zone {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
}

/* Right Zone (30-35%) */
.right-zone {
    width: 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Header Section */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.title-with-live {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, rgba(232, 161, 59, 0.1), rgba(79, 182, 255, 0.1));
    border-radius: 6px;
    padding: 4px;
    box-shadow: 0 0 12px rgba(232, 161, 59, 0.2), inset 0 0 8px rgba(79, 182, 255, 0.1);
}

.viz-bar {
    width: 2.5px;
    background: linear-gradient(180deg, #E8A13B 0%, #4FB6FF 100%);
    border-radius: 1px;
    height: 4px;
    animation: visualizer-bar 0.8s ease-in-out infinite;
}

.viz-bar:nth-child(1) { animation-delay: 0s; }
.viz-bar:nth-child(2) { animation-delay: 0.1s; }
.viz-bar:nth-child(3) { animation-delay: 0s; }

@keyframes visualizer-bar {
    0%, 100% { height: 4px; }
    50% { height: 14px; }
}

.widget-title {
    font-size: 18px;
    font-weight: 800;
    color: #222222;
    letter-spacing: 0.3px;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(232, 161, 59, 0.12);
    border: 1px solid rgba(232, 161, 59, 0.4);
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    color: #E8A13B;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
    box-shadow: 0 0 8px rgba(232, 161, 59, 0.2);
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #E8A13B;
    display: inline-block;
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.listeners-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    background: rgba(79, 182, 255, 0.08);
    border: 1px solid rgba(79, 182, 255, 0.3);
    border-radius: 18px;
    font-size: 12px;
    font-weight: 700;
    color: #222222;
    white-space: nowrap;
    box-shadow: 0 0 8px rgba(79, 182, 255, 0.15);
}

.listeners-icon {
    opacity: 0.8;
    color: #4FB6FF;
}

.share-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(232, 161, 59, 0.4);
    background: rgba(232, 161, 59, 0.08);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E8A13B;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.share-btn:hover {
    border-color: #E8A13B;
    background: rgba(232, 161, 59, 0.15);
    box-shadow: 0 0 12px rgba(232, 161, 59, 0.3);
    transform: scale(1.1);
}

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

.share-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(34, 34, 34, 0.95);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.share-tooltip.show {
    opacity: 1;
}

/* Track Info Section */
.track-info-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.track-title {
    font-size: 20px;
    font-weight: 800;
    color: #222222;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.track-artist {
    font-size: 13px;
    font-weight: 500;
    color: #6B6B6B;
}

.track-category {
    font-size: 11px;
    font-weight: 700;
    color: #E8A13B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Soundwave Container */
.soundwave-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    margin: 4px 0;
}

.soundwave {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    height: 100%;
}

.soundwave-bar {
    width: 3px;
    background: linear-gradient(180deg, #E8A13B 0%, #4FB6FF 100%);
    border-radius: 1.5px;
    height: 4px;
    opacity: 0.4;
    transition: height 0.2s ease;
}

.soundwave.active .soundwave-bar {
    opacity: 0.9;
    animation: soundwave-pulse 0.6s ease-in-out infinite;
}

.soundwave-bar:nth-child(1) { animation-delay: 0s; }
.soundwave-bar:nth-child(2) { animation-delay: 0.1s; }
.soundwave-bar:nth-child(3) { animation-delay: 0.2s; }
.soundwave-bar:nth-child(4) { animation-delay: 0.1s; }
.soundwave-bar:nth-child(5) { animation-delay: 0s; }
.soundwave-bar:nth-child(6) { animation-delay: 0.1s; }

@keyframes soundwave-pulse {
    0%, 100% { height: 4px; }
    50% { height: 14px; }
}

/* Progress Section */
.progress-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-label {
    font-size: 11px;
    font-weight: 600;
    color: #6B6B6B;
    min-width: 32px;
}

.progress-bar {
    flex: 1;
    height: 5px;
    background: #E4E4E4;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #E8A13B, #E8A13B);
    border-radius: 8px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(232, 161, 59, 0.5);
}

/* Reactions Container */
.reactions-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(232, 161, 59, 0.08);
    border: 1px solid rgba(232, 161, 59, 0.3);
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    color: #222222;
    transition: all 0.3s ease;
    user-select: none;
    flex-shrink: 0;
}

.reaction-btn:hover {
    background: rgba(232, 161, 59, 0.15);
    border-color: rgba(232, 161, 59, 0.5);
    box-shadow: 0 0 12px rgba(232, 161, 59, 0.2);
    transform: scale(1.05);
}

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

.heart-btn .heart-icon {
    display: inline-block;
    font-size: 14px;
    transition: all 0.3s ease;
}

.heart-btn.clicked .heart-icon {
    animation: heart-pulse 0.4s ease-out;
}

@keyframes heart-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.hallelu-btn {
    border-color: rgba(79, 182, 255, 0.3);
    background: rgba(79, 182, 255, 0.08);
}

.hallelu-btn:hover {
    background: rgba(79, 182, 255, 0.15);
    border-color: rgba(79, 182, 255, 0.5);
    box-shadow: 0 0 12px rgba(79, 182, 255, 0.2);
}

.hallelu-btn .hallelu-icon {
    display: inline-block;
    font-size: 14px;
    transition: all 0.3s ease;
}

.hallelu-btn.clicked .hallelu-icon {
    animation: spark-pulse 0.5s ease-out;
}

@keyframes spark-pulse {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.4) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.reaction-count {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.reaction-btn.count-updated .reaction-count {
    animation: count-pop 0.3s ease-out;
}

@keyframes count-pop {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Controls */
.controls-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.control-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border: 1.5px solid #E4E4E4;
    background: #FFFFFF;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222222;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.control-btn:hover {
    border-color: #E8A13B;
    background: rgba(232, 161, 59, 0.08);
    transform: scale(1.08);
}

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

.play-btn {
    width: 56px;
    height: 56px;
    border: none;
    background: linear-gradient(135deg, #E8A13B, #E8A13B);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(232, 161, 59, 0.4);
    position: relative;
    overflow: hidden;
}

.play-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 28px rgba(232, 161, 59, 0.6);
}

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

.play-btn svg {
    position: relative;
    z-index: 1;
}

.volume-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-icon {
    font-size: 16px;
    opacity: 0.7;
}

.volume-slider {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #E4E4E4;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #E8A13B;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(232, 161, 59, 0.4);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #E8A13B;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(232, 161, 59, 0.4);
}

/* Logo Orb (Right Zone) */
.logo-container {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-orb {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Outline Rings */
.logo-orb::before,
.logo-orb::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(165, 255, 79, 0.25);
}

.logo-orb::before {
    width: 110%;
    height: 110%;
}

.logo-orb::after {
    width: 125%;
    height: 125%;
    border-color: rgba(79, 182, 255, 0.2);
}

.logo-orb.playing::before,
.logo-orb.playing::after {
    animation: rotate-rings 12s linear infinite;
}

@keyframes rotate-rings {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Inner gradient orb */
.orb-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 35% 35%, #A5FF4F 0%, #4FB6FF 70%, #4FB6FF 100%);
    border-radius: 50%;
    box-shadow: 
        /* Inner glow */
        inset -2px -2px 8px rgba(0, 0, 0, 0.1),
        inset 2px 2px 8px rgba(255, 255, 255, 0.4),
        /* Outer shadow */
        0 0 2px rgba(0, 0, 0, 0.1);
    filter: drop-shadow(0 0 12px rgba(165, 255, 79, 0.3));
}

.logo-orb.playing .orb-inner {
    animation: orb-shimmer 3s ease-in-out infinite, orb-pulse 2s ease-in-out infinite;
}

@keyframes orb-shimmer {
    0%, 100% { 
        filter: drop-shadow(0 0 12px rgba(165, 255, 79, 0.3)) drop-shadow(0 0 8px rgba(79, 182, 255, 0.15));
    }
    50% {
        filter: drop-shadow(0 0 18px rgba(165, 255, 79, 0.5)) drop-shadow(0 0 14px rgba(79, 182, 255, 0.3));
    }
}

@keyframes orb-pulse {
    0%, 100% { 
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

/* Outer halo glow */
.orb-glow {
    position: absolute;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle, rgba(165, 255, 79, 0.25) 0%, rgba(79, 182, 255, 0.15) 50%, transparent 100%);
    border-radius: 50%;
    filter: blur(15px);
}

.logo-orb.playing .orb-glow {
    animation: glow-pulse-playing 2s ease-in-out infinite;
}

.logo-orb:not(.playing) .orb-glow {
    animation: glow-pulse-paused 2s ease-in-out infinite;
}

@keyframes glow-pulse-playing {
    0%, 100% { 
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes glow-pulse-paused {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.45;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 720px) {
    .player-card {
        flex-direction: column;
        gap: 20px;
        min-height: auto;
        padding: 20px;
    }

    .left-zone {
        flex: 1;
    }

    .right-zone {
        width: 100%;
        height: 180px;
    }

    .logo-container {
        width: 160px;
        height: 160px;
    }

    .logo-orb {
        width: 120px;
        height: 120px;
    }

    .widget-title {
        font-size: 16px;
    }

    .track-title {
        font-size: 18px;
    }

    .volume-group {
        display: none;
    }
}

@media (max-width: 480px) {
    .widget-container {
        padding: 8px;
    }

    .player-card {
        padding: 16px;
        gap: 16px;
    }

    .card-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .widget-title {
        font-size: 14px;
    }

    .track-title {
        font-size: 16px;
    }

    .control-group {
        gap: 8px;
    }

    .control-btn {
        width: 36px;
        height: 36px;
    }

    .play-btn {
        width: 48px;
        height: 48px;
    }

    .logo-container {
        width: 120px;
        height: 120px;
    }

    .logo-orb {
        width: 100px;
        height: 100px;
    }

    .volume-slider {
        width: 70px;
    }
}
