/* Main stylesheet */
/* Base Styles */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1e40af;
    --secondary-color: #4b5563;
    --secondary-hover: #374151;
    --dark: #1f2937;
    --light: #f3f4f6;
    --gray: #6b7280;
    --light-gray: #e5e7eb;
    --border-radius: 0.375rem;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.2s ease-in-out;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
      Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #f9fafb;
  }
  
  a {
    color: var(--primary-color);
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  ul {
    list-style: none;
  }
  
  h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  .btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
  }
  
  .btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
  }
  
  .btn-primary:hover {
    background-color: var(--primary-hover);
    text-decoration: none;
  }
  
  .btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    border: 1px solid var(--secondary-color);
  }
  
  .btn-secondary:hover {
    background-color: var(--secondary-hover);
    text-decoration: none;
  }
  
  /* Header */
  .site-header {
    background-color: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  .main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
  }
  
  .logo:hover {
    text-decoration: none;
  }
  
  .nav-links {
    display: flex;
    gap: 1.5rem;
  }
  
  .nav-links a {
    color: var(--dark);
    font-weight: 500;
  }
  
  .nav-links a:hover {
    color: var(--primary-color);
  }
  
  /* Content */
  .content {
    padding: 2rem 0;
    min-height: calc(100vh - 8rem); /* Header + Footer */
  }
  
  /* Footer */
  .site-footer {
    background-color: white;
    border-top: 1px solid var(--light-gray);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--gray);
  }
  
  /* Homepage */
  .hero {
    background-color: var(--dark);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: var(--border-radius);
  }
  
  .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
  }
  
  .hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
  }
  
  .features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
  }
  
  .feature {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
  }
  
  .feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  
  .cta {
    background-color: white;
    padding: 3rem 1rem;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
  }
  
  .search-container {
    max-width: 600px;
    margin: 1.5rem auto 0;
  }
  
  .search-form {
    display: flex;
    gap: 0.5rem;
  }
  
  .search-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
  }
  
  /* Channels Page */
  .channels-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
  }
  
  .search-box {
    display: flex;
    gap: 0.5rem;
    flex: 1;
  }
  
  .search-box input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
  }
  
  .category-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .category-filter select {
    padding: 0.5rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
  }
  
  .channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .channel-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
  }
  
  .channel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }
  
  .channel-logo {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light);
    overflow: hidden;
  }
  
  .channel-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
  }
  
  .channel-info {
    padding: 1rem;
  }
  
  .channel-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .channel-category {
    display: inline-block;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    background-color: var(--light);
    border-radius: 999px;
    color: var(--gray);
  }
  
  .channel-actions {
    padding: 0 1rem 1rem;
    display: flex;
    justify-content: center;
  }
  
  .channel-actions .btn {
    width: 100%;
  }
  
  .loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    display: none;
  }
  
  .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
  }
  
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  
  .no-results, .error-message {
    text-align: center;
    padding: 3rem 0;
    color: var(--gray);
  }
  
  .error-message {
    color: #ef4444;
  }
  
  .pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
  }
  
  .pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--light-gray);
    background-color: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
  }
  
  .pagination-btn:hover:not(:disabled) {
    background-color: var(--light);
  }
  
  .pagination-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
  }
  
  .pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  /* Groups Page */
  .groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .group-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
  }
  
  .group-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }
  
  .group-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  
  .group-card h3 {
    margin-bottom: 1.5rem;
  }
  
  .group-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  /* Player Page */
  .player-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 2rem;
  }
  
  .player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .player-header h1 {
    margin-bottom: 0;
    font-size: 1.5rem;
  }
  
  .video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background-color: black;
  }
  
  #video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .video-container:hover .player-controls {
    opacity: 1;
  }
  
  .control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
  }
  
  .control-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
  
  .volume-slider {
    width: 80px;
  }
  
  .volume-slider input {
    width: 100%;
  }
  
  .player-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
  }
  
  .player-error p {
    margin-bottom: 1rem;
  }
  
  .stream-info {
    padding: 1rem;
    border-top: 1px solid var(--light-gray);
  }
  
  .info-row {
    display: flex;
    margin-bottom: 0.5rem;
  }
  
  .info-label {
    font-weight: 500;
    margin-right: 0.5rem;
    min-width: 80px;
  }
  
  .info-value {
    word-break: break-all;
  }
  
  .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  
  .play-button {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    transition: var(--transition);
  }
  
  .play-overlay:hover .play-button {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
  }
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .hero h1 {
      font-size: 2rem;
    }
    
    .hero p {
      font-size: 1rem;
    }
    
    .hero-buttons {
      flex-direction: column;
      gap: 0.75rem;
    }
    
    .channels-filters {
      flex-direction: column;
    }
    
    .player-header h1 {
      font-size: 1.25rem;
    }
  }

  /* Responsive Menu Styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 200;
  }
  
  .hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--dark);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
  }
  
  @media (max-width: 768px) {
    .hamburger-menu {
      display: flex;
    }
    
    .nav-links {
      position: fixed;
      top: 0;
      right: -100%;
      width: 250px;
      height: 100vh;
      background-color: white;
      flex-direction: column;
      padding: 80px 20px 30px;
      box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
      z-index: 100;
      transition: right 0.3s ease-in-out;
    }
    
    .nav-links.active {
      right: 0;
    }
    
    .nav-links li {
      margin: 15px 0;
    }
    
    /* Hamburger menu animation */
    .hamburger-menu.active span:nth-child(1) {
      transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger-menu.active span:nth-child(2) {
      opacity: 0;
    }
    
    .hamburger-menu.active span:nth-child(3) {
      transform: translateY(-9px) rotate(-45deg);
    }
    
    /* Overlay when menu is open */
    .menu-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 90;
    }
    
    .menu-overlay.active {
      display: block;
    }
  }
  /* Legal page specific styles */
.legal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.legal-content {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.legal-content h1 {
    color: #2563EB;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.legal-content h2 {
    color: #1E40AF;
    margin-top: 30px;
}

.legal-content strong {
    color: #1E40AF;
}

.legal-content .notice {
    background-color: #eff6ff;
    border-left: 4px solid #2563EB;
    padding: 15px;
    margin: 20px 0;
}

.legal-content .warning {
    background-color: #fff7ed;
    border-left: 4px solid #ea580c;
    padding: 15px;
    margin: 20px 0;
}

.legal-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9em;
    color: #64748b;
}

.legal-content ol, 
.legal-content ul {
    padding-left: 25px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .legal-container {
        padding: 10px;
    }
    
    .legal-content {
        padding: 20px;
    }
}