 :root {
      --primary-color: #9333ea;
      --secondary-color: #7e22ce;
      --accent-color: #6b21a8;
      --dark-bg: #0a0a0f;
      --header-bg: #141420;
      --modal-bg: #1a1a25;
      --text-color: #ffffff;
      --shadow-color: rgba(147, 51, 234, 0.25);
      --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html, body {
      margin: 0;
      padding: 0;
      height: 100%;
      background: var(--dark-bg);
      font-family: 'Poppins', sans-serif;
      color: var(--text-color);
      overflow: hidden;
    }

    body {
      display: flex;
      flex-direction: column;
    }

    .header {
      position: absolute;
      top: 15px;
      right: 15px;
      z-index: 10;
      /*backdrop-filter: blur(10px);*/
    }

    .audio-btn {
      background: var(--primary-color);
      color: var(--text-color);
      padding: 8px 16px;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-size: 14px;
      font-weight: 500;
      display: flex;
      align-items: center;
      box-shadow: 0 0 15px rgba(147, 51, 234, 0.5);
      transition: var(--transition);
      letter-spacing: 0.5px;
    }

    .audio-btn:hover {
      background: var(--secondary-color);
      transform: translateY(-1px);
      box-shadow: 0 0 20px rgba(147, 51, 234, 0.8);
    }

    .audio-btn:active {
      transform: translateY(0);
    }

    .audio-btn svg {
      margin-right: 6px;
      width: 16px;
      height: 16px;
    }

    .video-container {
      position: relative;
      flex: 1 1 auto;
      width: 100%;
      overflow: hidden;
      background: black;
    }

    #videoFrame {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border: none;
      z-index: 1;
      opacity: 0.3;
      transition: opacity 1s ease;
    }
    
    #videoFrame.loaded {
      opacity: 1;
    }
    
    #videoFrame.switching {
      opacity: 0.2;
      transition: opacity 0.3s ease;
    }

    .modal {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(10, 10, 15, 0.7);
      backdrop-filter: blur(8px);
      animation: fadeIn 0.3s ease;
      justify-content: center;
      align-items: center;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .modal-content {
      background: var(--modal-bg);
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      padding: 24px;
      border-radius: 10px;
      width: 280px;
      max-width: 90%;
      max-height: 70vh;
      overflow-y: auto;
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
      animation: slideIn 0.3s ease;
      border: 1px solid rgba(168, 85, 247, 0.1);
      position: relative;
    }

    @keyframes slideIn {
      from { transform: translate(-50%, -48%); opacity: 0; }
      to { transform: translate(-50%, -50%); opacity: 1; }
    }

    .modal-content::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: var(--primary-color);
      border-radius: 10px 10px 0 0;
    }

    .modal-content h3 {
      margin-top: 0;
      margin-bottom: 20px;
      text-align: center;
      font-size: 18px;
      font-weight: 600;
      color: var(--primary-color);
      letter-spacing: 0.5px;
    }

    .audio-options {
      display: grid;
      gap: 8px;
    }

    .modal-option {
      padding: 10px 12px;
      background: rgba(147, 51, 234, 0.05);
      border: 1px solid rgba(147, 51, 234, 0.1);
      border-radius: 6px;
      cursor: pointer;
      text-align: center;
      font-weight: 500;
      font-size: 14px;
      transition: var(--transition);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .modal-option:hover {
      background: rgba(147, 51, 234, 0.1);
      border-color: rgba(147, 51, 234, 0.2);
      transform: translateY(-1px);
    }

    .modal-option:active {
      transform: translateY(0);
    }

    .modal-option.active {
      background: rgba(147, 51, 234, 0.15);
      border-color: rgba(147, 51, 234, 0.3);
    }

    .modal-option svg {
      margin-right: 6px;
      width: 16px;
      height: 16px;
      fill: var(--primary-color);
    }

    .modal-option.active svg {
      fill: var(--accent-color);
    }

    .close-btn {
      position: absolute;
      top: 12px;
      right: 12px;
      background: none;
      border: none;
      color: var(--text-color);
      font-size: 20px;
      cursor: pointer;
      opacity: 0.7;
      transition: var(--transition);
      width: 24px;
      height: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
    }

    .close-btn:hover {
      opacity: 1;
      transform: rotate(90deg);
      background: rgba(236, 72, 153, 0.1);
    }

    /* Video loading animation */
    @keyframes pulse {
      0% { opacity: 0.6; }
      50% { opacity: 1; }
      100% { opacity: 0.6; }
    }
    
    .video-loading {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
      animation: pulse 1.5s infinite ease-in-out;
      opacity: 0;
      transition: opacity 0.3s ease;
      pointer-events: none;
      display: none; /* Hide the loading animation by default */
    }
    
    iframe.loading + .video-loading {
      display: block;
      opacity: 1;
    }

    @media (max-width: 768px) {
      .header {
        padding: 8px 12px;
      }
      
      .logo {
        font-size: 16px;
      }
      
      .audio-btn {
        padding: 6px 12px;
        font-size: 13px;
      }
      
      .modal-content {
        width: 260px;
        padding: 18px;
      }
      
      .modal-option {
        padding: 8px 10px;
        font-size: 13px;
      }
      
      .modal-content h3 {
        font-size: 16px;
        margin-bottom: 15px;
      }
      
      .close-btn {
        top: 10px;
        right: 10px;
        font-size: 18px;
      }
    }
      .countdown-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(10, 5, 20, 0.9), rgba(0, 0, 0, 0.98));
    backdrop-filter: blur(14px) saturate(180%);
    z-index: 20;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    transition: opacity 0.8s ease;
  }

  /* 🌌 Ambient light streaks */
  .countdown-overlay::before,
  .countdown-overlay::after {
    content: "";
    position: absolute;
    width: 180%;
    height: 180%;
    top: -40%;
    left: -40%;
    background: linear-gradient(
      120deg,
      rgba(147, 51, 234, 0.15) 0%,
      rgba(217, 70, 239, 0.05) 40%,
      rgba(147, 51, 234, 0.15) 100%
    );
    transform: rotate(15deg);
    animation: aurora 6s linear infinite;
    opacity: 0.3;
  }

  .countdown-overlay::after {
    animation-delay: -3s;
    opacity: 0.2;
  }

  @keyframes aurora {
    from { transform: rotate(15deg) translateX(0); }
    to { transform: rotate(15deg) translateX(-20%); }
  }

  /* ✨ Countdown core */
  .countdown-circle {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.1), rgba(147, 51, 234, 0.03));
    box-shadow:
      0 0 35px rgba(147, 51, 234, 0.3),
      inset 0 0 40px rgba(147, 51, 234, 0.15);
    overflow: hidden;
  }

  /* 🔥 Animated gradient border */
  .countdown-circle::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(
      from 0deg,
      #9333ea,
      #c084fc,
      #8b5cf6,
      #9333ea
    );
    filter: blur(10px);
    opacity: 0.9;
    animation: rotateRing 2.5s linear infinite;
  }

  @keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  /* 🧠 The number itself */
  #countdownTimer {
    position: relative;
    font-size: 64px;
    font-weight: 700;
    color: #fff;
    text-shadow:
      0 0 25px rgba(147, 51, 234, 0.9),
      0 0 60px rgba(147, 51, 234, 0.5);
    animation: flipNum 1s ease-in-out infinite alternate;
    transform-style: preserve-3d;
    z-index: 2;
  }

  @keyframes flipNum {
    0% { transform: rotateX(0deg) scale(1); opacity: 1; }
    50% { transform: rotateX(180deg) scale(1.1); opacity: 0.9; }
    100% { transform: rotateX(360deg) scale(1); opacity: 1; }
  }

  /* 🎬 Subtext */
  .countdown-text {
    margin-top: 28px;
    font-size: 17px;
    font-weight: 500;
    color: #d8cfff;
    letter-spacing: 0.4px;
    text-shadow: 0 0 12px rgba(147, 51, 234, 0.4);
    animation: fadeFloat 2.5s ease-in-out infinite alternate;
  }

  @keyframes fadeFloat {
    from { transform: translateY(3px); opacity: 0.7; }
    to { transform: translateY(-3px); opacity: 1; }
  }

  /* 🎇 Responsive tweaks */
  @media (max-width: 768px) {
    .countdown-circle {
      width: 110px;
      height: 110px;
    }
    #countdownTimer {
      font-size: 42px;
    }
    .countdown-text {
      font-size: 14px;
      margin-top: 18px;
    }
  }