/* public/css/style.css */

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f0f0f;
  color: #ffffff;
  line-height: 1.6;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #667eea;
}

.nav-search form {
  display: flex;
  gap: 5px;
}

.nav-search input {
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
}

.nav-search button {
  padding: 8px 15px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 0;
  text-align: center;
  margin-bottom: 40px;
}

.hero-title {
  font-size: 48px;
  margin-bottom: 15px;
}

.hero-subtitle {
  font-size: 20px;
  opacity: 0.9;
}

/* Anime Section */
.anime-section {
  margin-bottom: 60px;
}

.section-title {
  font-size: 32px;
  margin-bottom: 25px;
  border-left: 4px solid #667eea;
  padding-left: 15px;
}

/* Anime Grid */
.anime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 25px;
}

.anime-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.anime-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(102, 126, 234, 0.3);
}

.anime-card a {
  text-decoration: none;
  color: inherit;
}

.anime-card-image {
  position: relative;
  padding-bottom: 140%;
  overflow: hidden;
}

.anime-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.anime-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.anime-card:hover .anime-card-overlay {
  opacity: 1;
}

.play-icon {
  font-size: 48px;
  color: #fff;
}

.quality-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(102, 126, 234, 0.9);
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: bold;
}

.anime-card-info {
  padding: 15px;
}

.anime-title {
  font-size: 16px;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anime-meta {
  display: flex;
  gap: 15px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.dub-badges {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}

.dub-badge {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 5px;
}

/* Skip Ad Page */
.skip-ad-container {
  max-width: 600px;
  margin: 130px auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  text-align: center;
}

.skip-ad-container h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.skip-ad-message {
  font-size: 18px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.8);
}

.skip-form {
  margin: 20px 0;
}

.glass-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  padding: 18px 40px;
  border-radius: 50px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.glass-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.standard-button {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 15px 35px;
  border-radius: 50px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.standard-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 30px 0;
}

.info-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 15px;
}

.skip-ad-info {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.skip-ad-info p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 5px 0;
}

/* Player Page */
.player-container {
  max-width: 1200px;
  margin: 40px auto;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Server Panel */
.server-panel {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.server-panel h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
}

.server-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.server-btn {
  padding: 10px 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.server-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.server-btn.on {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color: #fff;
}

/* Episode Info Panel */
.episode-info-panel {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.episode-info-panel h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.episode-info-panel h3 {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
}

.episode-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

/* Episode Navigation */
.episode-navigation {
  text-align: center;
  margin-top: 30px;
}

.nav-button {
  display: inline-block;
  padding: 12px 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Anime Details Page */
.anime-details {
  margin: 40px auto;
}

.anime-header {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.anime-poster img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.anime-title-large {
  font-size: 36px;
  margin-bottom: 10px;
}

.anime-original-title {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.anime-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.stat {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 14px;
}

.status-ongoing {
  background: rgba(76, 175, 80, 0.3);
  border: 1px solid #4caf50;
}

.status-completed {
  background: rgba(33, 150, 243, 0.3);
  border: 1px solid #2196f3;
}

.genres {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.genre-tag {
  padding: 6px 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  transition: transform 0.2s;
}

.genre-tag:hover {
  transform: scale(1.05);
}

.anime-synopsis {
  margin-bottom: 25px;
}

.anime-synopsis h3,
.anime-cast h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.anime-synopsis p,
.anime-cast p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

/* Episodes Section */
.episodes-section h2 {
  font-size: 32px;
  margin-bottom: 30px;
  border-left: 4px solid #667eea;
  padding-left: 15px;
}

.season-section {
  margin-bottom: 40px;
}

.season-section h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.episode-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.episode-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.episode-card a {
  text-decoration: none;
  color: inherit;
}

.episode-thumbnail {
  position: relative;
  padding-bottom: 56.25%;
  overflow: hidden;
  background: #1a1a1a;
}

.episode-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.episode-card:hover .episode-overlay {
  opacity: 1;
}

.episode-info {
  padding: 15px;
}

.episode-info h4 {
  font-size: 16px;
  margin-bottom: 5px;
  color: #667eea;
}

.episode-title {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Error Page */
.error-container {
  max-width: 600px;
  margin: 100px auto;
  text-align: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
}

.error-title {
  font-size: 48px;
  margin-bottom: 20px;
}

.error-message {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
}

.error-code {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 30px;
}

.error-home-btn {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s;
}

.error-home-btn:hover {
  transform: scale(1.05);
}

/* Footer */
.footer {
  background: rgba(15, 15, 15, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 0 20px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 15px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #667eea;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
  .anime-header {
    grid-template-columns: 1fr;
  }
  
  .anime-grid,
  .episodes-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .nav-links {
    display: none;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .section-title {
    font-size: 24px;
  }
}