/* Modern styling for Whale Entertainment */
:root {
  --primary-color: #0af;
  --background-dark: #000;
  --card-background: #1a1a1a;
  --text-light: #fff;
  --header-background: #111;
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--background-dark);
  color: var(--text-light);
  line-height: 1.6;
}

.header {
  padding: 20px;
  background: var(--header-background);
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 20px 0;
  padding: 10px;
  background: rgba(26,26,26,0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 18px;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.nav a:hover {
  background: var(--primary-color);
  color: var(--background-dark);
}

.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.video-card {
  background: var(--card-background);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-5px);
}

.video-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 18px;
  margin: 0 0 10px 0;
}

.video-meta {
  font-size: 14px;
  color: #888;
}

.featured-section {
  margin-bottom: 40px;
}

.featured-video {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}

.video-player {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border: none;
  border-radius: 8px;
  margin-bottom: 15px;
}

.search-bar {
  display: flex;
  gap: 10px;
  margin: 20px auto;
  max-width: 600px;
}

.search-input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  background: var(--card-background);
  color: var(--text-light);
  font-size: 16px;
}

.search-button {
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  background: var(--primary-color);
  color: var(--background-dark);
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.search-button:hover {
  background: #1ac;
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
  
  .nav {
    flex-wrap: wrap;
    gap: 15px;
  }
}

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    width: 90%;
    max-width: 1000px;
    background: var(--card-background);
    padding: 20px;
    border-radius: 12px;
}

.modal-content h2 {
    margin: 10px 0;
    font-size: 20px;
}

.video-meta {
    color: #888;
    margin-bottom: 15px;
}

.close-button {
    margin-top: 10px;
    padding: 8px 16px;
    background: var(--primary-color);
    border: none;
    border-radius: 20px;
    color: var(--background-dark);
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.close-button:hover {
    background: #1ac;
}

/* Category specific styles */
.category-filter[data-category="足球"] { border-color: #ff4d4d; }
.category-filter[data-category="篮球"] { border-color: #ffa64d; }
.category-filter[data-category="网球"] { border-color: #4dff4d; }
.category-filter[data-category="排球"] { border-color: #4d4dff; }
.category-filter[data-category="电竞"] { border-color: #ff4dff; }

.category-filter.active[data-category="足球"] { background: #ff4d4d; }
.category-filter.active[data-category="篮球"] { background: #ffa64d; }
.category-filter.active[data-category="网球"] { background: #4dff4d; }
.category-filter.active[data-category="排球"] { background: #4d4dff; }
.category-filter.active[data-category="电竞"] { background: #ff4dff; }

/* Live content indicators */
.video-card[data-live="true"] .video-meta::before {
    content: "🔴 LIVE";
    color: #ff4444;
    font-weight: bold;
    margin-right: 8px;
}

.placeholder-stream {
    width: 100%;
    height: 400px;
    background: var(--card-background);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 18px;
    border-radius: 8px;
}

/* Loading states */
.video-card.loading {
    position: relative;
}

.video-card.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Live badge */
.live-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4444;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
} 