/* Base Styles */
:root {
    --primary-color: #6366F1;
    --primary-hover: #5253e0;
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #888;
    --background: #fff;
    --background-alt: #f6f8fa;
    --border: #e5e7eb;
    --shadow: rgba(0, 0, 0, 0.1);
    --radius: 8px;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--background);
    line-height: 1.5;
  }
  
  /* App Container */
  .app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  /* Navbar */
  .navbar {
    position: sticky;
    top: 0;
    background-color: var(--background);
    z-index: 100;
    padding: 0.75rem 1rem;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
  }
  
  .navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
  }
  
  .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
  }
  
  .logo-icon {
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    border-radius: 8px;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .logo-play-icon {
    width: 16px;
    height: 16px;
    color: white;
  }
  
  .logo-text-desktop {
    font-weight: 600;
    font-size: 1.1rem;
  }
  
  .logo-text-mobile {
    display: none;
    font-weight: 600;
    font-size: 1.1rem;
  }
  
  .nav-buttons {
    display: flex;
    align-items: center;
  }
  
  .nav-button {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 1rem;
    color: var(--text-secondary);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
  }
  
  .nav-button:hover {
    background-color: var(--background-alt);
  }
  
  .icon {
    width: 1.25rem;
    height: 1.25rem;
  }
  
  .icon-small {
    width: 1rem;
    height: 1rem;
  }
  
  /* Main Container */
  .main-container {
    flex: 1;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
  }
  
  /* Video Page Header */
  .video-page-header {
    margin-bottom: 1.5rem;
  }
  
  .back-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
  }
  
  .back-link:hover {
    color: var(--text-primary);
  }
  
  .back-link .icon-small {
    margin-right: 0.5rem;
  }
  
  /* Video Container */
  .video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 8px var(--shadow);
  }
  
  .video-backdrop {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-size: cover;
    background-position: center;
    filter: blur(50px);
    opacity: 0.25;
    z-index: 1;
  }
  
  .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 2;
  }
  
  .player-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  
  .video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .play-button {
    position: relative;
    z-index: 2;
    width: 64px;
    height: 64px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
  }
  
  .player-wrapper:hover .play-button {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
  }
  
  .play-icon {
    color: white;
    width: 24px;
    height: 24px;
  }
  
  .video-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 3;
    display: none;
  }
  
  /* Video Info Container */
  .video-info-container {
    margin-bottom: 2rem;
  }
  
  .video-title {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 500;
    color: #131619;
  }
  
  .skeleton-loading {
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
    color: transparent;
    border-radius: var(--radius);
  }
  
  .skeleton-loading::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0,
      rgba(255, 255, 255, 0.2) 20%,
      rgba(255, 255, 255, 0.5) 60%,
      rgba(255, 255, 255, 0)
    );
    animation: shimmer 2s infinite;
  }
  
  @keyframes shimmer {
    100% {
      transform: translateX(100%);
    }
  }
  
  .video-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: solid 0.5px rgba(136, 143, 153, .1);
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: solid 0.5px rgba(136, 143, 153, .1);
  }
  
  .channel-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .channel-info {
    display: flex;
    align-items: center;
  }
  
  .channel-logo {
    display: none;
  }
  
  .logo-icon-small {
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .channel-text {
    display: flex;
    flex-direction: column;
  }
  
  .channel-name {
    font-weight: 500;
  }
  
  .channel-subscribers {
    font-size: 0.85rem;
    color: var(--text-light);
  }
  
  .subscribe-button {
    background-color: var(--text-primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    align-self: center;
  }
  
  .subscribe-button:hover {
    background-color: var(--text-secondary);
  }
  
  .action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-left: 1.5rem;
  }
  
  .action-button {
    background-color: var(--background-alt);
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
  }
  
  .action-button .icon-small {
    margin-right: 0.3rem;
  }
  
  .action-button:hover {
    background-color: var(--border);
    color: var(--text-primary);
  }
  
  /* Stumble Container */
  .stumble-container {
    display: flex;
    justify-content: center;
    position: sticky;
    bottom: 0;
    background: var(--background);
    padding: 1rem 0 2.5rem;
    z-index: 10;
  }
  
  .stumble-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transition: all 0.2s;
  }
  
  .stumble-button:hover:not(:disabled) {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
  }
  
  .stumble-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
  }
  
  .stumble-button.pressed {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
  }
  
  /* Fixed Share Button */
  .share-button-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: white;
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 10px var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    transition: transform 0.2s;
  }
  
  .share-button-fixed:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
  }
  
  /* Loading Spinner */
  /* Removed .loading-spinner styles as the spinner is no longer used */
  
  /* Toast Notifications */
  .toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    padding: 0 1rem;
  }
  
  .toast {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
    max-width: 100%;
  }
  
  .toast.toast-visible {
    transform: translateY(0);
    opacity: 1;
  }
  
  .toast.toast-hiding {
    transform: translateY(20px);
    opacity: 0;
  }
  
  .toast-success {
    border-left: 4px solid #10B981;
  }
  
  .toast-error {
    border-left: 4px solid #EF4444;
  }
  
  .toast-content {
    flex: 1;
  }
  
  .toast-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
  }
  
  .toast-content p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
  }
  
  .toast-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
    padding: 0 0.25rem;
    margin-left: 0.5rem;
  }
  
  /* Error Message */
  .error-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    text-align: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.05);
    z-index: 5;
  }
  
  /* Responsive Styles */
  @media (max-width: 768px) {
    .logo-text-desktop {
      display: none;
    }
    
    .logo-text-mobile {
      display: block;
    }
    
    .video-title {
      font-size: 1.15rem;
    }
    
    .video-details {
      flex-direction: column;
    }
    
    .channel-container {
      flex-direction: column;
      align-items: stretch;
      gap: 0px;
    }
    
    .subscribe-button {
      align-self: center;
    }
    
    .action-buttons {
      width: 100%;
      margin-left: 0;
      padding-top: 15px;
      justify-content: flex-start;
      border-top: solid 0.5px rgba(136, 143, 153, .1);
    }
    .channel-info-and-subscribe {
      display: flex;
      align-items: center;
      gap: 1rem;
      justify-content: space-between;
    }
    .stumble-container {
      padding: 1rem 0 4.5rem;
    }
  }
  
  @media (max-width: 480px) {
    .play-button {
      width: 50px;
      height: 50px;
    }
    
    .play-icon {
      width: 20px;
      height: 20px;
    }
    
    .action-buttons {
      justify-content: center;
    }
    
    .stumble-button {
      width: 100%;
      padding: 0.75rem 1rem;
    }
  }
  
  .channel-info-and-subscribe {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  @media (max-width: 768px) {
    .channel-info-and-subscribe {
      display: flex;
      align-items: center;
      gap: 1rem;
    }
    .action-buttons {
      width: 100%;
      margin-left: 0;
      margin-top: 1rem;
      justify-content: flex-start;
    }
  }
  
  .hidden {
    display: none !important;
  }
  
  .navbar-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
  }
  
  .navbar-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 0;
  }
  
  .navbar-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0;
  }
  
  .navbar-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .navbar-link {
    color: #555d66;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    padding: 0;
    transition: color 0.2s;
  }
  
  .navbar-link:hover {
    color: var(--primary-color);
  }
  
  .navbar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .navbar-logo svg {
    width: 25px;
    height: 25px;
  }
  
  .hZMAky {
    display: none;
  }
  
  .sc-b67f268b-2 {
    display: none;
  }
  
  .modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
  }
  
  .modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 650px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    animation: modalFadeIn 0.2s;
  }
  
  @media (max-width: 900px) {
    .modal-content {
      width: 90vw;
      max-width: 650px;
      padding: 32px 24px;
    }
  }
  
  @media (max-width: 480px) {
    .modal-content {
      padding: 24px 20px;
      width: 100%;
    }
  }
  
  .modal-close {
    color: #aaa;
    background: none;
    border: none;
    font-size: 2.2rem;
    cursor: pointer;
    top: 16px;
    right: 24px;
    position: absolute;
    transition: color 0.15s;
    z-index: 2;
    line-height: 1;
  }
  
  .modal-close:hover, .modal-close:focus {
    color: #333;
    outline: 2px solid var(--primary-color);
  }
  
  .modal-content h2 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    text-align: left;
    width: 100%;
  }
  
  .modal-content p {
    color: #555;
    font-size: 1.08rem;
    margin-bottom: 0;
    text-align: left;
    max-width: 100%;
    line-height: 1.7;
    margin-top: 0;
    margin-bottom: 0;
    white-space: pre-line;
  }
  
  .modal-content p a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
  }
  
  .modal-content p + p {
    margin-top: 1.2em;
  }
  
  /* Remove modal-links styles */
  