/* ROBAT TV - Main Stylesheet */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #292929;
  color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background-color: #00617c;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo-container {
  text-align: center;
  padding: 0.5rem 0;
}

.logo {
  height: 60px;
  width: auto;
  max-width: 100%;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* Responsive logo sizing */
@media (max-width: 768px) {
  .logo {
    height: 50px;
  }
}

@media (max-width: 480px) {
  .logo {
    height: 40px;
  }
}

/* Main Content */
.main {
  flex: 1;
  padding: 2rem 0;
}

.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.hero h2 {
  color: #0094c2;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  color: #cccccc;
  font-size: 1.1rem;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.video-item {
  background-color: #333333;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.video-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 97, 124, 0.3);
}

.thumbnail-container {
  position: relative;
  width: 100%;
  height: 180px;
  background-color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.thumbnail.loaded {
  display: block;
}

.loading-placeholder {
  color: #666666;
  font-size: 0.9rem;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 97, 124, 0.9);
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-item:hover .play-button {
  opacity: 1;
}

.video-item h3 {
  padding: 1rem;
  color: #ffffff;
  font-size: 1.1rem;
  text-align: center;
}

/* Footer */
.footer {
  background-color: #1a1a1a;
  padding: 1rem 0;
  text-align: center;
}

.footer p {
  color: #666666;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .thumbnail-container {
    height: 140px;
  }
  
  .play-button {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
  }
  
  .thumbnail-container {
    height: 200px;
  }
  
  .logo-placeholder h1 {
    font-size: 1.5rem;
  }
}

/* Loading and Error States */
.thumbnail-error {
  color: #ff6b6b;
  font-size: 0.8rem;
}

.thumbnail-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #666666;
}