
    /* =========================================================
       🎨 THEME VARIABLES (GLOBAL COLOR SYSTEM)
    ========================================================= */
        :root {
          --primary-blue: #0b3c78;
          /* deep royal blue */
          --secondary-blue: #1456a0;
          /* brighter accent blue */
          --accent-gold: #d4af37;
          /* gold ring */
          --light-gold: #f1d27a;
          /* glow gold */
          --text-light: #ffffff;
          --text-muted: #cfd8e3;
          --glass-bg: rgba(11, 60, 120, 0.75);
          --glass-border: rgba(255,255,255,0.15);
        }

    /* =========================================================
       🧱 BASE / RESET
    ========================================================= */
        html, body {
          margin: 0;
          padding: 0;
          height: auto;
          overflow-x: hidden;
          overflow-y: auto;
          color: var(--text-light);
        }

    /* =========================================================
       🧱 STATION INFO
    ========================================================= */
        #station_info {
          gap: 10px;
        }

        #station-logo {
          margin: 0;
          /* remove center margin */
        }

    /* =========================================================
       🎧 MAIN PLAYER CONTAINER
    ========================================================= */
        .radio-player {
          position: relative;
          min-height: calc(var(--vh, 1vh) * 100);
          height: auto;
          width: 100vw;
          padding: 12px;
          display: flex;
          flex-direction: column;
          backdrop-filter: blur(14px);
          background: linear-gradient(to bottom, rgba(11, 60, 120, 0.85), rgba(5, 20, 50, 0.95));
          border: 1px solid var(--glass-border);
          box-sizing: border-box;
          min-width: 320px;
        }

    /* =========================================================
       🖼️ BACKGROUND IMAGE + OVERLAY
    ========================================================= */
        #radio_player_background {
          background: linear-gradient(rgba(11, 60, 120, 0.65), rgba(5, 20, 50, 0.75)), url('<?=CT_ASSETS?>assets/imgs/christiantuners.png') center / cover no-repeat;
        }

        #radio_player_background::before {
          content: "";
          inset: 0;
          background: rgba(0, 0, 0, 0.5);
          z-index: 0;
        }

        #radio_player_background * {
          position: relative;
          z-index: 1;
        }

    /* =========================================================
       📡 STATION HEADER / INFO
    ========================================================= */
        #station_info {
          min-width: 320px;
        }

        #station_visit {
          text-align: left;
        }

        #station-logo {
          width: 85px;
          height: 85px;
          object-fit: cover;
          margin: 8px auto;
          border-radius: 20px;
        }

        /* Text alignment */
        #title, #desc, #song {
          text-align: center;
        }

    /* =========================================================
       🎵 NOW PLAYING / TEXT STYLES
    ========================================================= */
        #song {
          color: var(--light-gold);
          font-weight: 500;
        }

        #title {
          color: var(--text-light);
        }

        #desc {
          color: var(--text-muted);
        }

        #info {
          text-align: center;
          font-size: 12px;
          opacity: 0.85;
        }

    /* =========================================================
       📜 STATION LIST (LEGACY LIST STYLE)
    ========================================================= */
        #station-list {
          max-height: 70vh;
          /* important */
          flex: 1;
          overflow-y: auto !important;
          overflow-x: hidden !important;
          margin: 0;
          padding: 0;
          list-style: none;
          -webkit-overflow-scrolling: touch;
          /* smooth iOS scroll */
          padding-bottom: 80px;
          /* prevents last item being hidden */
        }

        #station-list li {
          display: flex;
          align-items: center;
          gap: 10px;
          padding: 12px;
          cursor: pointer;
          border-radius: 10px;
        }

        #station-list li:hover {
          background: rgba(255, 255, 255, 0.1);
        }

        #station-list li.active {
          background: #0D6EFD;
        }

        #station-list img {
          border-radius: 20px;

          width: 140px !important;
          height: 140px !important;
          object-fit: contain;
          margin: 0 auto !important;
          border-radius: 10px;
          opacity: 0.95;
        }

    /* =========================================================
       🔲 GRID LAYOUT (MODERN STATION VIEW)
    ========================================================= */
        .station-grid {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
          justify-content: center;
          /* THIS centers the whole grid */
          gap: 22px;
          overflow-y: auto;
          padding-bottom: 120px;
        }

    /* =========================================================
    🎛️  STATION BUTTONS (CARD STYLE)
    ========================================================= */
        .station-btn {
            width: 168px !important;
            height: 168px !important;
            background: rgba(255, 255, 255, 0.08);
            border: none; /* 🔥 important */
            outline: none; /* 🔥 remove focus border */
            border-radius: 14px;
            padding: 8px;
            text-align: center;
            cursor: pointer;
            border: 1px solid rgba(255, 255, 255, 0.08);
            transition: all 0.25s ease;
            padding: 0;              /* 🔥 remove inner spacing */
        }

        .station-btn:focus {
            outline: 2px solid var(--accent-gold);
        }
        /* Hover state */
        .station-btn:hover {
          background: rgba(20, 86, 160, 0.35);
          transform: translateY(-3px);
          box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
        }

        .station-btn:hover img {
          opacity: 0.9;
        }

        /* Active (currently playing) */
        .station-btn.active {
          background: linear-gradient( 135deg, var(--secondary-blue), var(--primary-blue) );
          border: 1px solid var(--accent-gold);
          box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
        }

        .station-btn.active span {
          color: var(--light-gold);
          font-weight: bold;
        }

        /* Glow on active station */
        .station-btn.playing {
          animation: playerGlow 2s infinite ease-in-out;
          border: 1px solid var(--accent-gold);
        }

        #station-logo.playing {
          animation: playerGlow 2s infinite ease-in-out;
        }

        /* Logo inside card */
        .station-btn img {
          width: 128px;
          /* was 50px */
          height: 128px;
          border-radius: 12px;
          margin-bottom: 5px;
          opacity: 0.9;
          transition: 0.2s ease;
        }

        /* Text inside card */
        .station-btn span {
          font-size: 10px;
          /* was 12px */
          line-height: 1.1;
          margin-top: 2px;
          display: -webkit-box;
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
          overflow: hidden;
        }

    /* =========================================================
       🔘 BUTTONS (BOOTSTRAP OVERRIDES)
    ========================================================= */
        .btn-primary {
          background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
          border: none;
        }

        .btn-success {
          background: linear-gradient(135deg, #1DB954, #0B6623);
          border: none;
        }

        .btn-outline-info {
          border-color: var(--accent-gold);
          color: var(--accent-gold);
        }

        .btn-outline-info:hover {
          background: var(--accent-gold);
          color: #000;
        }

    /* =========================================================
       📢 DISCLAIMER BAR
    ========================================================= */
        .disclaimer {
          background: linear-gradient(to right, #020B1F, #0B3C78) !important;
          color: var(--text-muted);
          border-top: 1px solid rgba(255, 255, 255, 0.1);
          text-align: justify;
          font-size: 0.8em;
          line-height: 1.1;
          position: fixed;
          bottom: 0;
          left: 0;
          width: 100%;
          min-width: 320px;
          padding: 10px 20px;
          z-index: 999;
        }

        /* Button */
        .disclaimer-toggle {
          position: fixed;
          bottom: 10px;
          right: 10px;
          z-index: 999;
        }

        /* Overlay */
        .disclaimer-popup {
          position: fixed;
          inset: 0;
          background: rgba(0, 0, 0, 0.6);
          display: flex;
          align-items: center;
          justify-content: center;
          opacity: 0;
          pointer-events: none;
          transition: 0.3s ease;
        }

        /* Active */
        .disclaimer-popup.show {
          opacity: 1;
          pointer-events: auto;
        }

        /* Box */
        .disclaimer-box {
          background: linear-gradient(to bottom, #0B3C78, #020B1F);
          padding: 20px;
          border-radius: 12px;
          max-width: 500px;
          width: 90%;
          color: #FFF;
          text-align: justify;
          font-size: 0.9em;
          line-height: 1.4;
          position: relative;
        }

        /* Close button */
        .close-btn {
          position: absolute;
          top: 8px;
          right: 12px;
          background: none;
          border: none;
          font-size: 20px;
          color: white;
          cursor: pointer;
        }

    /* =========================================================
       🎛️ CONTROL BUTTONS (Play / Next / Prev)
    ========================================================= */
        /* 🎛️ CONTROL BAR (INLINE) */
        .controls-bar {
          margin-top: -33px;
          margin-bottom: -33px;
          display: flex;
          align-items: center;
          justify-content: center;
          gap: 8px;
          flex-wrap: wrap;
          /* prevents breaking on small screens */
        }

        /* 🔘 Compact Buttons */
        #prev, #play, #next {
          width: 42px;
          height: 42px;
          padding: 0;
          display: flex;
          align-items: center;
          justify-content: center;
          border-radius: 50%;
          font-size: 14px;
        }

        /* Slight emphasis on play */
        #play {
          width: 48px;
          height: 48px;
          font-size: 16px;
        }

        #prev, #next {
          width: 24px;
          height: 24px;
        }

        #prev i, #next i {
          font-size: 8px;
        }

        #prev, #next {
          opacity: 0.85;
        }

        #prev:hover, #next:hover {
          opacity: 1;
        }

    /* =========================================================
       NOW PLAYING AND CONTROLLER
    ========================================================= */
        /* Remove Bootstrap row spacing ONLY here */
        .player-controls .row {
          margin-bottom: 0 !important;
        }

        /* Remove paragraph spacing */
        #song {
          margin-bottom: 2px !important;
        }

        /* Tighten timer */
        #info {
          margin-bottom: 2px !important;
          line-height: 1.2;
        }

        .timer-block {
          text-align: center;
          margin-bottom: 2px;
        }

    /* ===============================
    🔊 FINAL VERTICAL VOLUME FIX
    =============================== */
        /* Container */
        .volume-container {
          position: relative;
          display: flex;
          align-items: center;
          bottom: 0;
        }

        /* Popup (hidden by default) */
        .volume-popup {
          position: absolute;
          right: 0;
          bottom: 100%;
          margin-bottom: 6px;
          transform: scaleY(0);
          transform-origin: bottom;
          width: 18px;
          /* 🔥 MUCH THINNER */
          height: 120px;
          display: flex;
          align-items: center;
          justify-content: center;
          background: rgba(0, 0, 0, 0.4);
          /* lighter, less bulky */
          border-radius: 10px;
          opacity: 0;
          pointer-events: none;
          transition: 0.2s ease;
        }

        /* Show popup */
        .volume-container:hover .volume-popup, .volume-popup.show {
          transform: translateX(-50%) scaleY(1);
          opacity: 1;
          pointer-events: auto;
        }

        /* 🔥 IMPORTANT: wrapper handles rotation */
        .volume-slider-wrapper {
          transform: rotate(-90deg);
          width: 120px;
          display: flex;
          justify-content: center;
        }

        /* Slider */
        .volume-slider-wrapper input[type="range"] {
          -webkit-appearance: none;
          appearance: none;
          width: 100px;
          height: 4px;
          background: transparent;
          cursor: pointer;
        }

        /* Track */
        .volume-slider-wrapper input[type="range"]::-webkit-slider-runnable-track {
          height: 4px;
          background: rgba(255, 255, 255, 0.4);
          border-radius: 10px;
        }

        .volume-slider-wrapper input[type="range"]::-moz-range-track {
          height: 4px;
          background: rgba(255, 255, 255, 0.4);
          border-radius: 10px;
        }

        /* Thumb */
        .volume-slider-wrapper input[type="range"]::-webkit-slider-thumb {
          -webkit-appearance: none;
          width: 12px;
          height: 12px;
          background: #FFF;
          border-radius: 50%;
          margin-top: -4px;
        }

        .volume-slider-wrapper input[type="range"]::-moz-range-thumb {
          width: 12px;
          height: 12px;
          background: #FFF;
          border-radius: 50%;
        }

    /* =========================================
    ✨ PLAYING GLOW ANIMATION
    ========================================= */
        @keyframes playerGlow {
          0% {
            box-shadow: 0 0 5px rgba(212, 175, 55, 0.3), 0 0 10px rgba(20, 86, 160, 0.2);
          }
          
          50% {
            box-shadow: 0 0 15px rgba(212, 175, 55, 0.7), 0 0 25px rgba(20, 86, 160, 0.5);
          }
          
          100% {
            box-shadow: 0 0 5px rgba(212, 175, 55, 0.3), 0 0 10px rgba(20, 86, 160, 0.2);
          }
        }

    /* =========================================================
    📱 RESPONSIVE (MOBILE ADJUSTMENTS)
    ========================================================= */
    /* Standard mobile */
        @media (max-width: 768px) {
            #title, #desc {
                text-align: left !important;
            }
          
            .radio-player {
                padding: 10px;
            }
          
            #station-logo {
                width: 70px;
                height: 70px;
                border-radius: 20px;
                box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
            }
          
            .controls {
                flex-direction: column;
                align-items: stretch;
            }
          
            .controls button {
                width: 100%;
            }
          
            #station-list li {
                padding: 8px;
                font-size: 14px;
            }
          
            #station-list {
                height: 100% !important;
            }
          
            #station_visit {
                text-align: center;
            }
          
            .station-grid {
                max-width: 900px;
                margin: 0 auto;
                grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
                grid-template-columns: repeat(2, 1fr) !important; /* 🔥 always 2 per row */
                justify-content: initial;
            }

        }

    /* Small phones */
    @media (max-width: 500px) {
      #station-list {
        height: 100% !important;
      }
      
      #station_visit {
        text-align: left;
      }
    }


