
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    
    body {
      font-family: 'Segoe UI', Roboto, Arial, sans-serif;
      background-color: #f0f2f5;
      color: #333;
    }
    
    .carousel-container {
      position: relative;
      width: 100%;
      max-width: 400px;
      margin: 20px auto;
      overflow: hidden;
      border-radius: 12px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
      aspect-ratio: 9/16;
      background-color: #000;
    }
    
    .carousel {
      display: flex;
      transition: transform 0.5s ease;
      width: 100%;
      height: 100%;
    }
    
    #video-1 {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .footer-banner {
      position: absolute;
      bottom: 0;
      width: 100%;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7), transparent);
      color: white;
      padding: 15px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 8px;
    }
    
    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    
    .logo img {
      height: 32px;
      width: 32px;
      border-radius: 50%;
      border: 2px solid #4a90e2;
    }
    
    .headline {
      font-size: 18px;
      font-weight: 600;
      line-height: 1.3;
      margin-top: 5px;
      padding-right: 10px;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    }
    
    .arrows {
      position: absolute;
      top: 50%;
      width: 100%;
      display: flex;
      justify-content: space-between;
      transform: translateY(-50%);
      padding: 0 15px;
      pointer-events: none;
    }
    
    .arrow-btn {
      background: rgba(0, 0, 0, 0.6);
      color: white;
      border: none;
      border-radius: 50%;
      width: 44px;
      height: 44px;
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      pointer-events: auto;
      transition: background 0.2s, transform 0.2s;
    }
    
    .arrow-btn:hover {
      background: rgba(0, 0, 0, 0.8);
      transform: scale(1.05);
    }
    
    .controls {
      position: absolute;
      bottom: 80px;
      left: 0;
      width: 100%;
      display: flex;
      padding: 0 15px;
      align-items: center;
      justify-content: space-between;
      z-index: 10;
    }
    
    .left-controls {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    
    .right-controls {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    
    .controls button {
      background: rgba(0, 0, 0, 0.6);
      color: white;
      border: none;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      transition: background 0.2s, transform 0.2s;
    }
    
    .controls button:hover {
      background: rgba(0, 0, 0, 0.8);
      transform: scale(1.05);
    }
    
    .volume-control {
      display: flex;
      align-items: center;
      gap: 5px;
      position: relative;
    }
    
    .volume-slider-container {
      position: absolute;
      bottom: 45px;
      left: 50%;
      transform: translateX(-50%) scale(0);
      background: rgba(0, 0, 0, 0.7);
      padding: 8px;
      border-radius: 8px;
      transition: transform 0.2s;
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 36px;
      height: 120px;
    }
    
    .volume-control:hover .volume-slider-container {
      transform: translateX(-50%) scale(1);
    }
    
    .volume-slider {
      width: 5px;
      height: 80px;
      background: rgba(255, 255, 255, 0.3);
      border-radius: 5px;
      -webkit-appearance: none;
      appearance: none;
      outline: none;
      transform: rotate(-180deg);
    }
    
    .volume-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 15px;
      height: 15px;
      border-radius: 50%;
      background: white;
      cursor: pointer;
    }
    
    .volume-slider::-moz-range-thumb {
      width: 15px;
      height: 15px;
      border-radius: 50%;
      background: white;
      cursor: pointer;
    }
    
    .progress-container {
      position: absolute;
      bottom: 110px;
      left: 0;
      width: 100%;
      height: 4px;
      background: rgba(255, 255, 255, 0.2);
      cursor: pointer;
    }
    
    .progress-bar {
      height: 100%;
      background: #4a90e2;
      width: 0%;
      border-radius: 0 4px 4px 0;
      position: relative;
    }
    
    .progress-bar::after {
      content: '';
      position: absolute;
      right: -6px;
      top: -4px;
      width: 12px;
      height: 12px;
      background: #fff;
      border-radius: 50%;
      opacity: 0;
      transition: opacity 0.2s;
    }
    
    .progress-container:hover .progress-bar::after {
      opacity: 1;
    }
    
    .time-display {
      color: white;
      font-size: 14px;
      font-weight: 500;
      background: rgba(0, 0, 0, 0.5);
      padding: 4px 8px;
      border-radius: 4px;
      text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    }
    
    .top-controls {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      padding: 15px;
      display: flex;
      justify-content: space-between;
      background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
      z-index: 50;
    }
    
    .top-left-controls, .top-right-controls {
      display: flex;
      gap: 10px;
    }
    
    .top-controls button {
      background: rgba(0, 0, 0, 0.6);
      color: white;
      border: none;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      transition: background 0.2s, transform 0.2s;
    }
    
    .top-controls button:hover {
      background: rgba(0, 0, 0, 0.8);
      transform: scale(1.05);
    }
    
    .history-panel {
      position: absolute;
      top: 0;
      right: 0;
      background: rgba(0, 0, 0, 0.9);
      color: white;
      padding: 15px;
      border-bottom-left-radius: 12px;
      z-index: 100;
      width: 280px;
      max-height: 400px;
      overflow-y: auto;
      transform: translateX(100%);
      transition: transform 0.3s ease;
      box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    }
    
    .history-panel.active {
      transform: translateX(0);
    }
    
    .history-panel h3 {
      margin-bottom: 10px;
      font-size: 18px;
      color: #4a90e2;
      padding-bottom: 8px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .history-close {
      position: absolute;
      top: 10px;
      right: 10px;
      background: none;
      color: white;
      border: none;
      cursor: pointer;
    }
    
    .history-item {
      padding: 10px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      cursor: pointer;
      transition: background 0.2s;
      border-radius: 6px;
    }
    
    .history-item:hover {
      background: rgba(255, 255, 255, 0.1);
    }
    
    .news-content {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.9);
      color: white;
      padding: 20px;
      overflow-y: auto;
      z-index: 90;
      display: flex;
      flex-direction: column;
      gap: 15px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s;
    }
    
    .news-content.active {
      opacity: 1;
      pointer-events: auto;
    }
    
    .news-content h2 {
      font-size: 22px;
      margin-bottom: 15px;
      color: #4a90e2;
      line-height: 1.3;
    }
    
    .news-content p {
      line-height: 1.6;
      font-size: 16px;
      color: #e0e0e0;
    }
    
    .news-meta {
      display: flex;
      justify-content: space-between;
      font-size: 14px;
      color: #aaa;
      margin-top: 15px;
      padding-top: 10px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    /* Add this to your style.css file */
.top-right-controls {
  display: flex;
  gap: 10px;
}

.top-right-controls button {
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.top-right-controls button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

#record-btn.recording {
  background-color: #ff4136;
}
    .news-image {
      max-width: 100%;
      height: auto;
      margin: 15px 0;
      border-radius: 8px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }
    
    .read-more {
      display: inline-block;
      background: #4a90e2;
      color: white;
      padding: 10px 20px;
      border-radius: 6px;
      text-decoration: none;
      margin-top: 15px;
      font-weight: 500;
      transition: background 0.2s;
      text-align: center;
    }
    
    .read-more:hover {
      background: #3a7fcf;
    }
    
    .content-close {
      position: absolute;
      top: 15px;
      right: 15px;
      background: rgba(0, 0, 0, 0.6);
      color: white;
      border: none;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      z-index: 91;
    }
    
    .content-close:hover {
      background: rgba(0, 0, 0, 0.8);
    }
    
    /* Hide audio player */
    .audio-player {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }
    
    /* Add loading animation */
    .loading-overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.7);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      z-index: 200;
    }
    
    .spinner {
      width: 50px;
      height: 50px;
      border: 5px solid rgba(255, 255, 255, 0.3);
      border-radius: 50%;
      border-top-color: #4a90e2;
      animation: spin 1s ease-in-out infinite;
    }
    
    @keyframes spin {
      to { transform: rotate(360deg); }
    }
    
    .loading-text {
      margin-top: 15px;
      color: white;
      font-size: 16px;
    }
    
    /* Control visibility */
    .user-inactive .arrows,
    .user-inactive .controls,
    .user-inactive .top-controls,
    .user-inactive .progress-container {
      opacity: 0;
      transition: opacity 0.5s;
    }
    
    .user-active .arrows,
    .user-active .controls,
    .user-active .top-controls,
    .user-active .progress-container {
      opacity: 1;
      transition: opacity 0.3s;
    }
    
    /* Responsive adjustments */
    @media (max-width: 480px) {
      .carousel-container {
        margin: 0 auto;
        max-width: 100%;
        border-radius: 0;
        height: 100vh;
      }
      
      .controls {
        bottom: 120px;
      }
      
      .progress-container {
        bottom: 140px;
      }
      
      .footer-banner {
        padding-bottom: 25px;
      }
    }
    
    /* Fullscreen styles */
    :fullscreen .carousel-container {
      width: 100vw;
      height: 100vh;
      max-width: none;
      border-radius: 0;
    }
    
    :fullscreen video {
      object-fit: contain;
    }
    
    /* Better accessibility focus styles */
    button:focus-visible {
      outline: 2px solid #4a90e2;
      outline-offset: 2px;
    }

    /* Error state styles */
    .error-message {
      position: absolute;
      bottom: 60px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(255, 0, 0, 0.7);
      color: white;
      padding: 8px 15px;
      border-radius: 4px;
      font-size: 14px;
      z-index: 100;
      max-width: 90%;
      text-align: center;
      opacity: 0;
      transition: opacity 0.3s;
    }

    .error-message.active {
      opacity: 1;
    }
    
    /* Voice selector */
    .voice-selector {
      position: absolute;
      top: 10px;
      left: 10px;
      z-index: 150;
      background: rgba(0, 0, 0, 0.7);
      color: white;
      padding: 8px;
      border-radius: 4px;
      font-size: 12px;
      display: none; /* Hidden by default, only shown for debugging */
    }
    .audio-warning {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
}

.audio-warning ol {
  margin: 0.5rem 0 0 1rem;
}
 