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

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
      background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
      min-height: 100vh;
      color: white;
      position: relative;
      overflow-x: hidden;
    }

    .bg-glow {
      position: fixed;
      width: 400px;
      height: 400px;
      border-radius: 50%;
      filter: blur(100px);
      opacity: 0.2;
      pointer-events: none;
    }

    .glow-1 {
      top: 0;
      left: 25%;
      background: #06b6d4;
      animation: pulse 4s ease-in-out infinite;
    }

    .glow-2 {
      bottom: 0;
      right: 25%;
      background: #3b82f6;
      animation: pulse 4s ease-in-out infinite 2s;
    }

    @keyframes pulse {
      0%, 100% { opacity: 0.2; }
      50% { opacity: 0.3; }
    }

    .grid-bg {
      position: fixed;
      inset: 0;
      background-image: 
        linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
      background-size: 50px 50px;
      pointer-events: none;
    }

    .container {
      position: relative;
      max-width: 900px;
      margin: 0 auto;
      padding: 20px;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .card {
      background: rgba(15, 23, 42, 0.8);
      backdrop-filter: blur(20px);
      border-radius: 24px;
      border: 2px solid rgba(6, 182, 212, 0.3);
      padding: 40px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
      position: relative;
      width: 100%;
    }

    .corner {
      position: absolute;
      width: 60px;
      height: 60px;
      border-color: #06b6d4;
    }

    .corner-tl { top: 0; left: 0; border-top: 4px solid; border-left: 4px solid; }
    .corner-tr { top: 0; right: 0; border-top: 4px solid; border-right: 4px solid; }
    .corner-bl { bottom: 0; left: 0; border-bottom: 4px solid; border-left: 4px solid; }
    .corner-br { bottom: 0; right: 0; border-bottom: 4px solid; border-right: 4px solid; }

    .header {
      text-align: center;
      margin-bottom: 40px;
    }

    .icon-music {
      width: 80px;
      height: 80px;
      background: linear-gradient(135deg, #06b6d4, #3b82f6);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
      font-size: 40px;
      box-shadow: 0 0 40px rgba(6, 182, 212, 0.5);
      position: relative;
    }

    .icon-music::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 50%;
      background: #06b6d4;
      opacity: 0.2;
      animation: ping 2s ease-out infinite;
    }

    @keyframes ping {
      75%, 100% {
        transform: scale(1.5);
        opacity: 0;
      }
    }

    h1 {
      font-size: 32px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 2px;
      text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
      margin-bottom: 10px;
    }

    .tagline {
      color: #67e8f9;
      font-size: 14px;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    .nav-tabs {
      display: flex;
      gap: 10px;
      justify-content: center;
      margin-bottom: 30px;
      flex-wrap: wrap;
    }

    .nav-tab {
      padding: 12px 24px;
      background: rgba(30, 41, 59, 0.3);
      border: 2px solid rgba(6, 182, 212, 0.3);
      border-radius: 12px;
      color: #a5f3fc;
      font-size: 14px;
      font-weight: bold;
      text-transform: uppercase;
      letter-spacing: 1px;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .nav-tab:hover {
      border-color: #06b6d4;
      background: rgba(30, 41, 59, 0.5);
    }

    .nav-tab.active {
      background: rgba(6, 182, 212, 0.2);
      border-color: #06b6d4;
      color: #67e8f9;
    }

    .progress-container {
      width: 100%;
      background: rgba(30, 41, 59, 0.5);
      border-radius: 999px;
      height: 12px;
      overflow: hidden;
      border: 2px solid rgba(6, 182, 212, 0.3);
      margin-bottom: 10px;
    }

    .progress-bar {
      height: 100%;
      background: linear-gradient(90deg, #06b6d4, #3b82f6);
      border-radius: 999px;
      transition: width 0.5s ease;
      box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
    }

    .progress-text {
      text-align: center;
      color: #67e8f9;
      font-size: 14px;
      font-weight: bold;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 30px;
    }

    h2 {
      font-size: 28px;
      font-weight: 900;
      text-align: center;
      margin-bottom: 30px;
      text-transform: uppercase;
      letter-spacing: 1px;
      text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
    }

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

    .option-btn {
      background: rgba(30, 41, 59, 0.3);
      border: 2px solid rgba(6, 182, 212, 0.3);
      border-radius: 16px;
      padding: 20px;
      color: #a5f3fc;
      font-size: 18px;
      font-weight: bold;
      text-transform: uppercase;
      letter-spacing: 1px;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: space-between;
      backdrop-filter: blur(10px);
    }

    .option-btn:hover {
      background: rgba(30, 41, 59, 0.5);
      border-color: #06b6d4;
      color: #67e8f9;
      transform: scale(1.02);
      box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
    }

    .results-grid {
      display: flex;
      flex-direction: column;
      gap: 20px;
      margin-bottom: 30px;
    }

    .result-card {
      background: rgba(30, 41, 59, 0.3);
      border: 2px solid rgba(6, 182, 212, 0.3);
      border-radius: 16px;
      padding: 24px;
      transition: all 0.3s ease;
    }

    .result-card:hover {
      border-color: #06b6d4;
      transform: translateY(-2px);
      box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
    }

    .result-card.rank-1 {
      border-color: #fbbf24;
      background: rgba(234, 179, 8, 0.1);
    }

    .result-rank {
      display: inline-block;
      background: linear-gradient(135deg, #06b6d4, #3b82f6);
      color: white;
      font-size: 14px;
      font-weight: bold;
      padding: 6px 12px;
      border-radius: 8px;
      margin-bottom: 12px;
    }

    .result-card.rank-1 .result-rank {
      background: linear-gradient(135deg, #fbbf24, #f59e0b);
    }

    .result-title {
      font-size: 28px;
      font-weight: 900;
      background: linear-gradient(90deg, #06b6d4, #3b82f6, #06b6d4);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: 8px;
    }

    .result-card.rank-1 .result-title {
      font-size: 36px;
      background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      animation: shimmer 2s ease-in-out infinite;
    }

    @keyframes shimmer {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.8; }
    }

    .result-artist {
      font-size: 18px;
      color: #67e8f9;
      margin-bottom: 12px;
      font-weight: 300;
    }

    .result-match {
      font-size: 14px;
      color: #fbbf24;
      font-weight: bold;
      margin-bottom: 12px;
    }

    .result-reason {
      background: rgba(6, 182, 212, 0.1);
      border: 1px solid rgba(6, 182, 212, 0.3);
      border-radius: 12px;
      padding: 12px;
      color: #a5f3fc;
      line-height: 1.6;
      font-size: 14px;
      margin-bottom: 12px;
    }

    .result-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 12px;
    }

    .tag {
      background: rgba(6, 182, 212, 0.2);
      border: 1px solid rgba(6, 182, 212, 0.4);
      padding: 4px 12px;
      border-radius: 20px;
      font-size: 12px;
      color: #67e8f9;
    }

    .buttons {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }

    .btn {
      padding: 12px 20px;
      border: 2px solid;
      border-radius: 12px;
      font-weight: bold;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 1px;
      cursor: pointer;
      transition: all 0.3s ease;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      justify-content: center;
    }

    .btn-spotify {
      background: #1DB954;
      border-color: #1ed760;
      color: white;
    }

    .btn-spotify:hover {
      background: #1ed760;
      transform: scale(1.05);
      box-shadow: 0 10px 30px rgba(29, 185, 84, 0.5);
    }

    .btn-youtube {
      background: #FF0000;
      border-color: #ff3333;
      color: white;
    }

    .btn-youtube:hover {
      background: #ff3333;
      transform: scale(1.05);
      box-shadow: 0 10px 30px rgba(255, 0, 0, 0.5);
    }

    .btn-share {
      background: #3b82f6;
      border-color: #60a5fa;
      color: white;
    }

    .btn-share:hover {
      background: #60a5fa;
      transform: scale(1.05);
      box-shadow: 0 10px 30px rgba(59, 130, 246, 0.5);
    }

    .btn-back {
      background: transparent;
      border-color: #06b6d4;
      color: #06b6d4;
    }

    .btn-back:hover {
      background: rgba(6, 182, 212, 0.1);
      color: #67e8f9;
    }

    .btn-primary {
      background: linear-gradient(135deg, #06b6d4, #3b82f6);
      border-color: #06b6d4;
      color: white;
      padding: 16px 32px;
      font-size: 14px;
    }

    .btn-primary:hover {
      transform: scale(1.05);
      box-shadow: 0 10px 30px rgba(6, 182, 212, 0.5);
    }

    .btn:disabled,
    .btn-notify:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none !important;
    }

    .btn:disabled:hover,
    .btn-notify:disabled:hover {
      transform: none !important;
      box-shadow: none !important;
    }

    .text-center {
      text-align: center;
    }

    .back-nav {
      text-align: center;
      margin-top: 20px;
    }

    .back-link {
      color: #67e8f9;
      font-weight: bold;
      text-transform: uppercase;
      letter-spacing: 1px;
      cursor: pointer;
      text-decoration: none;
    }

    .back-link:hover {
      color: #a5f3fc;
    }

    /* Browse Mode Styles */
    .filters {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 16px;
      margin-bottom: 24px;
    }

    .filter-group {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .filter-label {
      color: #67e8f9;
      font-size: 12px;
      font-weight: bold;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .filter-select {
      background: rgba(30, 41, 59, 0.5);
      border: 2px solid rgba(6, 182, 212, 0.3);
      border-radius: 8px;
      padding: 10px;
      color: #a5f3fc;
      font-size: 14px;
      cursor: pointer;
    }

    .filter-select:focus {
      outline: none;
      border-color: #06b6d4;
    }

    .search-box {
      width: 100%;
      background: rgba(30, 41, 59, 0.5);
      border: 2px solid rgba(6, 182, 212, 0.3);
      border-radius: 12px;
      padding: 14px;
      color: white;
      font-size: 16px;
      margin-bottom: 24px;
    }

    .search-box:focus {
      outline: none;
      border-color: #06b6d4;
    }

    .search-box::placeholder {
      color: rgba(165, 243, 252, 0.5);
    }

    .song-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 16px;
    }

    .song-card {
      background: rgba(30, 41, 59, 0.3);
      border: 2px solid rgba(6, 182, 212, 0.3);
      border-radius: 16px;
      padding: 20px;
      transition: all 0.3s ease;
      cursor: pointer;
    }

    .song-card:hover {
      border-color: #06b6d4;
      transform: translateY(-4px);
      box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
    }

    .song-card-title {
      font-size: 20px;
      font-weight: bold;
      color: #67e8f9;
      margin-bottom: 6px;
      line-height: 1.3;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .song-card-artist {
      font-size: 15px;
      color: #a5f3fc;
      margin-bottom: 12px;
      opacity: 0.95;
    }

    /* History Styles */
    .history-grid {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .history-card {
      background: rgba(30, 41, 59, 0.3);
      border: 2px solid rgba(6, 182, 212, 0.3);
      border-radius: 16px;
      padding: 20px;
      transition: all 0.3s ease;
    }

    .history-card:hover {
      border-color: #06b6d4;
      transform: translateX(4px);
    }

    .history-date {
      color: #64748b;
      font-size: 12px;
      margin-bottom: 8px;
    }

    .empty-state {
      text-align: center;
      padding: 60px 20px;
      color: #64748b;
    }

    .empty-state-icon {
      font-size: 64px;
      margin-bottom: 16px;
      opacity: 0.3;
    }

    .footer {
      text-align: center;
      margin-top: 30px;
      padding-top: 20px;
      border-top: 1px solid rgba(6, 182, 212, 0.2);
      color: #64748b;
      font-size: 12px;
    }

    .footer a {
      color: #67e8f9;
      text-decoration: none;
    }

    .footer a:hover {
      color: #a5f3fc;
    }

    /* Share Screen Modal */
    .share-modal {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.9);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      padding: 20px;
    }

    .share-content {
      background: rgba(15, 23, 42, 0.95);
      border: 2px solid rgba(6, 182, 212, 0.5);
      border-radius: 24px;
      padding: 40px;
      max-width: 600px;
      width: 100%;
      text-align: center;
    }

    .share-preview {
      margin: 20px 0;
      border: 2px solid rgba(6, 182, 212, 0.3);
      border-radius: 16px;
      overflow: hidden;
    }

    .share-preview canvas {
      width: 100%;
      height: auto;
      display: block;
    }

    .share-buttons {
      display: flex;
      gap: 16px;
      justify-content: center;
      margin-top: 24px;
      flex-wrap: wrap;
    }

    @media (max-width: 768px) {
      .share-content {
        padding: 30px 20px;
      }

      .share-buttons {
        flex-direction: column;
      }

      .share-buttons .btn {
        width: 100%;
      }
    }

    /* Style 6 Compact Row Buttons - Used Site-Wide */
    .music-buttons {
      display: flex;
      gap: 3px;
      background: rgba(15, 23, 42, 0.5);
      padding: 4px;
      border-radius: 10px;
      border: 1px solid rgba(6, 182, 212, 0.2);
      margin-top: 12px;
      max-width: calc(100% + 32px);
      width: calc(100% + 32px);
      margin-left: -16px;
      margin-right: -16px;
      box-sizing: border-box;
    }

    .btn-music {
      background: rgba(6, 182, 212, 0.15);
      border: 1px solid rgba(6, 182, 212, 0.3);
      border-radius: 8px;
      padding: 8px 6px;
      cursor: pointer;
      transition: all 0.2s;
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 3px;
      flex: 1;
      justify-content: center;
      color: #67e8f9;
      font-weight: 700;
      font-size: 9px;
      min-width: 0;
      box-sizing: border-box;
      overflow: hidden;
    }

    .btn-music:hover {
      background: rgba(6, 182, 212, 0.25);
      border-color: rgba(6, 182, 212, 0.5);
      transform: scale(1.02);
    }

    .btn-music .icon {
      font-size: 14px;
      flex-shrink: 0;
    }

    .btn-music span:not(.icon) {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    
    .btn-music .full-text {
      display: inline;
    }
    
    .btn-music .short-text {
      display: none;
    }

    @media (max-width: 768px) {
      .music-buttons {
        gap: 2px;
        padding: 3px;
        max-width: calc(100% + 32px);
        width: calc(100% + 32px);
        margin-left: -16px;
        margin-right: -16px;
      }
      
      .btn-music {
        padding: 8px 6px;
        font-size: 9px;
        gap: 3px;
      }
      
      .btn-music .icon {
        font-size: 14px;
      }
      
      .btn-music .full-text {
        display: none;
      }
      
      .btn-music .short-text {
        display: inline;
      }
    }
      gap: 4px;
      flex: 1;
      justify-content: center;
      color: #67e8f9;
      font-weight: 700;
      font-size: 10px;
      min-width: 0;
    }

    .btn-music:hover {
      background: rgba(6, 182, 212, 0.25);
      border-color: rgba(6, 182, 212, 0.5);
      transform: scale(1.02);
    }

    .btn-music .icon {
      font-size: 18px;
    }

    @media (max-width: 768px) {
      .btn-music {
        padding: 12px 14px;
        font-size: 10px;
      }
      
      .btn-music .icon {
        font-size: 16px;
      }
    }

    @media (max-width: 768px) {
      .card {
        padding: 30px 20px;
      }
      
      h1 {
        font-size: 24px;
      }
      
      h2 {
        font-size: 22px;
      }
      
      .result-title {
        font-size: 24px;
      }

      .result-card.rank-1 .result-title {
        font-size: 28px;
      }
      
      .option-btn {
        font-size: 16px;
        padding: 16px;
      }
      
      .buttons {
        flex-direction: column;
      }
      
      .btn {
        width: 100%;
      }

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

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

      /* Mobile fixes for Playlists page */
      .result-card {
        padding: 20px 16px;
      }

      /* Mobile fixes for Coming Soon page - make feature grids stack */
      .result-card div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
      }

      /* Mobile fixes for Coming Soon timeline */
      div[style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
        grid-template-columns: 1fr !important;
      }

      /* Ensure nav tabs wrap properly on mobile */
      .nav-tabs {
        gap: 8px;
      }

      .nav-tab {
        font-size: 12px;
        padding: 10px 16px;
      }
    }

    /* ==========================================
       AUTHENTICATION MODAL STYLES
       ========================================== */
    
    .auth-modal {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.9);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      padding: 20px;
    }

    .auth-modal-content {
      background: rgba(15, 23, 42, 0.95);
      border: 2px solid rgba(6, 182, 212, 0.5);
      border-radius: 24px;
      padding: 40px;
      max-width: 450px;
      width: 100%;
      position: relative;
    }

    .auth-modal-close {
      position: absolute;
      top: 20px;
      right: 20px;
      background: transparent;
      border: none;
      color: #64748b;
      font-size: 24px;
      cursor: pointer;
      padding: 0;
      width: 30px;
      height: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: color 0.3s ease;
    }

    .auth-modal-close:hover {
      color: #a5f3fc;
    }

    .auth-form-group {
      margin-bottom: 20px;
    }

    .auth-form-label {
      display: block;
      color: #67e8f9;
      font-size: 14px;
      font-weight: bold;
      margin-bottom: 8px;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .auth-form-input {
      width: 100%;
      background: rgba(30, 41, 59, 0.5);
      border: 2px solid rgba(6, 182, 212, 0.3);
      border-radius: 12px;
      padding: 14px;
      color: white;
      font-size: 16px;
      transition: border-color 0.3s ease;
    }

    .auth-form-input:focus {
      outline: none;
      border-color: #06b6d4;
    }

    .auth-form-input::placeholder {
      color: rgba(165, 243, 252, 0.5);
    }

    .auth-error {
      background: rgba(239, 68, 68, 0.1);
      border: 1px solid rgba(239, 68, 68, 0.3);
      border-radius: 8px;
      padding: 12px;
      color: #fca5a5;
      font-size: 14px;
      margin-bottom: 16px;
    }

    .auth-link {
      color: #06b6d4;
      text-decoration: none;
      font-weight: bold;
      cursor: pointer;
      transition: color 0.3s ease;
    }

    .auth-link:hover {
      color: #67e8f9;
      text-decoration: underline;
    }

    .user-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(6, 182, 212, 0.2);
      border: 1px solid rgba(6, 182, 212, 0.4);
      padding: 8px 14px;
      border-radius: 20px;
      font-size: 14px;
      color: #67e8f9;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .user-badge:hover {
      background: rgba(6, 182, 212, 0.3);
      border-color: #06b6d4;
    }

    .premium-badge {
      background: linear-gradient(135deg, #fbbf24, #f59e0b);
      color: white;
      padding: 4px 10px;
      border-radius: 12px;
      font-size: 11px;
      font-weight: bold;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-left: 8px;
    }

    /* Teams Modal Overlay - CRITICAL for z-index */
    .modal-overlay {
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      right: 0 !important;
      bottom: 0 !important;
      background: rgba(0, 0, 0, 0.9) !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      z-index: 99999 !important;
      padding: 20px !important;
      overflow-y: auto !important;
    }

    .modal-content {
      background: linear-gradient(135deg, #0f172a, #1e293b);
      border: 2px solid rgba(6, 182, 212, 0.3);
      border-radius: 20px;
      padding: 32px;
      max-width: 600px;
      width: 100%;
      position: relative;
      margin: auto;
      max-height: 90vh;
      overflow-y: auto;
    }
