* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}
body {
  position: relative;
  height: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
linear-gradient(to bottom,
  rgba(0,0,0,0.70) 0%,
  rgba(0,0,0,0.20) 18%,
  rgba(0,0,0,0.10) 45%,
  rgba(0,0,0,0.30) 65%,
  rgba(0,0,0,0.65) 85%,
  rgba(0,0,0,0.80) 100%),
    linear-gradient(to right,
      rgba(0,0,0,0.55) 0%,
      transparent 18%,
      transparent 82%,
      rgba(0,0,0,0.55) 100%),
    var(--poster-url);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(0.55) saturate(1.4);
  z-index: 1;
  opacity: 0.5;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.70) 0%,
      rgba(0,0,0,0.20) 18%,
      rgba(0,0,0,0.15) 50%,
      rgba(0,0,0,0.0)  75%),
    linear-gradient(to right,
      rgba(0,0,0,0.55) 0%,
      transparent 18%,
      transparent 82%,
      rgba(0,0,0,0.55) 100%);
}

body > * {
  position: relative;
  z-index: 10;
} 

body > header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
}

#bottom-vignette {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to top,
    rgba(0, 0, 0, 0.562) 0%,
    rgba(0, 0, 0, 0)  100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* ---- Report FAB Button ---- */
.report-fab { position: fixed; bottom: 80px; right: 20px; background: #e74c3c; color: white; border: none; border-radius: 50%; width: 48px; height: 48px; font-size: 18px; cursor: pointer; z-index: 999; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }

/* ---- Overlay ---- */
.report-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1000; justify-content: center; align-items: center; }
.report-overlay.active { display: flex; }

/* ---- Modal Box ---- */
.report-modal { background: #1e1e2e; color: #fff; border-radius: 12px; padding: 24px; width: 90%; max-width: 400px; }
.report-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.report-modal-header button { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; }
.report-slug-info { font-size: 13px; color: #aaa; margin-bottom: 10px; }
.report-modal textarea { width: 100%; height: 100px; border-radius: 8px; border: 1px solid #444; background: #2a2a3e; color: #fff; padding: 10px; font-size: 14px; resize: none; box-sizing: border-box; }
.report-modal-footer { display: flex; gap: 10px; margin-top: 16px; justify-content: flex-end; }
.report-modal-footer button { padding: 8px 20px; border-radius: 8px; border: none; cursor: pointer; font-size: 14px; }
#cancelReport { background: #444; color: #fff; }
#sendReport { background: #e74c3c; color: #fff; }
#reportStatus { margin-top: 10px; font-size: 13px; text-align: center; }

/* ---- Info Banners ---- */
.info-banners { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }

.info-banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px; font-size: 14px; }

.report-banner { background: rgba(231, 76, 60, 0.1); border: 1px solid rgba(231, 76, 60, 0.3); color: #f5b7b1; }

.donate-banner { background: rgba(155, 89, 182, 0.1); border: 1px solid rgba(155, 89, 182, 0.3); color: #d7bde2; }

.banner-icon { font-size: 20px; flex-shrink: 0; }
.report-banner .banner-icon { color: #e74c3c; }
.donate-banner .banner-icon { color: #9b59b6; }

.banner-text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.banner-text strong { font-size: 14px; color: #fff; }
.banner-text span { font-size: 13px; opacity: 0.85; line-height: 1.4; }

.donate-btn { flex-shrink: 0; background: linear-gradient(135deg, #9b59b6, #6c3483); color: #fff; border: none; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: opacity 0.2s; }
.donate-btn:hover { opacity: 0.85; }
.report-banner-btn { flex-shrink: 0; background: linear-gradient(135deg, #e74c3c, #922b21); color: #fff; border: none; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: opacity 0.2s; }
.report-banner-btn:hover { opacity: 0.85; }

@media (max-width: 480px) { .report-banner { flex-wrap: wrap; } .report-banner-btn { width: 100%; text-align: center; margin-top: 6px; } }
@media (max-width: 480px) { .donate-banner { flex-wrap: wrap; } .donate-btn { width: 100%; text-align: center; margin-top: 6px; } }

header{
    background: linear-gradient(
        to bottom,
        rgba(22, 22, 22, 1) 3%,
        rgba(20, 20, 20, 1) 50%,
        rgba(18, 18, 18, 1) 100%
    );
}

.download-page {
  max-width: 1400px;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.back-btn {
  position: absolute;
  left: 0;
  top: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 24px;
  border-radius: 50px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-5px);
}

.page-title {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(45deg, #00d4ff, #0099ff, #00d4ff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  margin-bottom: 10px;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.page-subtitle {
  font-size: 1.2rem;
  color: #a0a0a0;
  font-weight: 300;
}

.download-tabs {
  display: flex;
  gap: 0px;
  justify-content: center;
  margin-bottom: 40px;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  padding: 15px 30px;
  border-radius: 0px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.tab-btn:hover::before {
  left: 100%;
}

.tab-btn:hover {
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.tab-btn.active {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  border-color: #00d4ff;
  box-shadow: 0 2px 15px rgba(0, 212, 255, 0.4);
}

.tab-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
}

.tab-btn.active .tab-badge {
  background: rgba(255, 255, 255, 0.3);
}

.loading-state,
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 20px;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: #00d4ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-state i {
  font-size: 4rem;
  color: #ff6b6b;
}

.error-state h2 {
  font-size: 2rem;
  color: #ff6b6b;
}

.error-state p {
  color: #a0a0a0;
  font-size: 1.1rem;
}

.section-header {
  margin-bottom: 30px;
  text-align: center;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.section-header h2 i {
  color: #00d4ff;
}

.section-description {
  color: #a0a0a0;
  font-size: 1rem;
}

.quality-count {
  color: #00d4ff;
  font-size: 1.1rem;
  font-weight: 600;
}

.tab-content {
  display: none;
  animation: slideIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 25px;
}

@media (max-width: 768px) {
  .downloads-grid {
    grid-template-columns: 1fr;
  }
}

.download-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.download-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  cursor: pointer;
  position: relative;
}

.card-header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.quality-badge {
  background: linear-gradient(135deg, #00d4ff, #0099ff);
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 18px;
  min-width: 80px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.card-title {
  flex: 1;
}

.card-title h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}

.card-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.meta-item {
  color: #a0a0a0;
  font-size: 0.9rem;
  border: 1px solid rgba(61, 249, 255, 0.3);
  padding: 6px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.meta-item i {
  color: #00d4ff;
}

.toggle-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  transform: rotate(180deg);
}

.card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease;
  padding: 0 20px;
  opacity: 0;
}

.card-body.active {
  max-height: 600px;
  padding: 20px;
  opacity: 1;
}

.codec-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.codec-tag {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #00d4ff;
  font-weight: 600;
}

.file-name {
  background: rgba(0, 0, 0, 0.3);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 3px solid #00d4ff;
}

.file-name i {
  color: #00d4ff;
  font-size: 1.2rem;
}

.file-name span {
  color: #fff;
  font-size: 0.9rem;
  word-break: break-all;
  font-family: 'Courier New', monospace;
}

.download-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.download-btn {
  flex: 1;
  min-width: 200px;
  background: linear-gradient(135deg, #00d4ff, #0099ff);
  border: none;
  padding: 15px 25px;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.download-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.download-btn:hover::before {
  width: 300px;
  height: 300px;
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.download-btn span {
  position: relative;
  z-index: 1;
}

.download-btn i {
  position: relative;
  z-index: 1;
}

.packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 25px;
}

@media (max-width: 768px) {
  .packs-grid {
    grid-template-columns: 1fr;
  }
}

.pack-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.pack-card:hover {
  border-color: rgba(255, 107, 107, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.2);
}

.pack-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  cursor: pointer;
  position: relative;
}

.pack-header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.season-badge {
  background: linear-gradient(135deg, #6bbcff, #ee5aee);
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 18px;
  min-width: 80px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.pack-info {
  flex: 1;
}

.pack-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.pack-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  color: #a0a0a0;
  font-size: 0.9rem;
}

.pack-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pack-meta i {
  color: #ff6b6b;
}

.pack-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 20px;
}

.pack-body.active {
  max-height: 1000px;
  padding: 20px;
}

.seasons-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.season-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
}

.season-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.0);
  transition: all 0.3s ease;
}

.season-header:hover {
  background: rgba(255, 255, 255, 0.08);
}

.season-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.season-badge-large {
  background: linear-gradient(135deg, #ffd93d, #f6c744);
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 18px;
  color: #000;
  box-shadow: 0 4px 15px rgba(255, 217, 61, 0.3);
}

.season-details h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.season-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-badge {
  background: rgba(224, 238, 253, 0.082);
  border: 1px solid rgba(61, 249, 255, 0.3);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #a2d0fc;
  font-weight: 600;
}

.info-badge {
  background: rgba(255, 217, 61, 0.030);
  border: 1px solid rgba(255, 217, 61, 0.3);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #ffd93d;
  font-weight: 600;
}

.episodes-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  padding: 0;
}

.episodes-list.active {
  max-height: 10000px;
  padding: 20px;
}

.episode-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.episode-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.1);
}

.episode-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  cursor: pointer;
}

.episode-number {
  background: linear-gradient(135deg, #00d4ff, #0099ff);
  padding: 10px 15px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  min-width: 100px;
  text-align: center;
}

.episode-info {
  flex: 1;
}

.episode-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #fff;
}

.episode-size {
  color: #d6caca;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.episode-size i {
  color: #00d4ff;
}

.episode-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 15px;
}

.episode-body.active {
  max-height: 500px;
  padding: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}


@media (max-width: 350px) {
.download-tabs {
  flex-wrap: wrap;
}
}
@media (max-width: 575px) {
  .download-page {
    padding: 15px 10px;
  }
  
  .page-title {
    font-size: 1.8rem;
  }
  
  .page-subtitle {
    font-size: 0.95rem;
  }
  
  .back-btn {
    position: static;
    width: 100%;
    justify-content: center;
    margin-bottom: 15px;
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .download-tabs {
    /* flex-direction: column; */
    gap: 0px;
  }
  
  .tab-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 17px;
  }
  
  .section-header h2 {
    font-size: 1.5rem;
    flex-direction: column;
    gap: 8px;
  }
  
  .downloads-grid,
  .packs-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .card-header,
  .pack-header,
  .episode-header {
    /* flex-direction: column; */
    /* align-items: flex-start; */
    gap: 10px;
    padding: 15px;
  }
  
  .quality-badge,
  .season-badge {
    /* width: 100%; */
    text-align: center;
    font-size: 16px;
    padding: 8px 15px;
  }
  
  .toggle-btn {
    position: absolute;
    top: 15px;
    right: 15px;
  }
  
  .season-block .toggle-btn {
   position: relative;  
   top: 0px;
 }

  .card-title h3,
  .pack-info h3 {
    font-size: 1rem;
  }
  
  .card-meta,
  .pack-meta {
    gap: 8px;
  }
  
  .download-links {
    flex-direction: column;
    gap: 10px;
  }
  
  .download-btn {
    min-width: auto;
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .file-name {
    padding: 12px;
    font-size: 0.8rem;
  }
  
  .codec-tags {
    gap: 6px;
  }
  
  .codec-tag {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
  
  .season-info {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  
  .season-badge-large {
    font-size: 16px;
    padding: 8px 15px;
  }
  
  .season-details h3 {
    font-size: 1.1rem;
  }
  
  .episode-number {
    min-width: 80px;
    font-size: 12px;
    padding: 8px 12px;
  }
  
  .episode-title {
    font-size: 0.9rem;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .download-page {
    padding: 20px 15px;
  }
  
  .page-title {
    font-size: 2.2rem;
  }
  
  .back-btn {
    position: static;
    margin-bottom: 20px;
  }
  
  .downloads-grid,
  .packs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* .download-tabs {
    flex-direction: column;
  } */
  
  .tab-btn {
    width: 100%;
    justify-content: center;
  }
  
  .card-header,
  .pack-header {
    flex-wrap: wrap;
  }
  
  /* .download-links {
    flex-direction: column;
  } */
  
  .season-info {
    flex-wrap: wrap;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .download-page {
    padding: 25px 20px;
  }
  
  .page-title {
    font-size: 2.5rem;
  }
  
  .downloads-grid,
  .packs-grid {
    /* grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); */
    gap: 20px;
  }
  
  .card-title h3,
  .pack-info h3 {
    font-size: 1.1rem;
  }
  
  .download-btn {
    min-width: 150px;
    font-size: 14px;
  }
  
}

@media (min-width: 992px) and (max-width: 1199px) {
  .download-page {
    padding: 30px 25px;
  }
  
  .page-title {
    font-size: 2.8rem;
  }
  
  .downloads-grid,
  .packs-grid {
    /* grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); */
  }
  
  .download-links {
    gap: 12px;
  }
  
  .download-btn {
    min-width: 180px;
  }
}

@media (min-width: 1200px) and (max-width: 1599px) {
  .download-page {
    max-width: 1300px;
    padding: 50px 30px;
  }
  
  .page-title {
    font-size: 3rem;
  }
  
  .downloads-grid,
  .packs-grid {
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1600px) and (max-width: 2559px) {
  .download-page {
    max-width: 1600px;
    padding: 40px 40px;
  }
  
  .page-title {
    font-size: 3.5rem;
  }
  
  .page-subtitle {
    font-size: 1.3rem;
  }
  
  .section-header h2 {
    font-size: 2.2rem;
  }
  
  .downloads-grid,
  .packs-grid {
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 30px;
  }
  
  .download-card,
  .pack-card {
    border-radius: 25px;
  }
  
  .card-header,
  .pack-header,
  .season-header {
    padding: 25px;
  }
  
  .quality-badge,
  .season-badge {
    font-size: 20px;
    padding: 12px 24px;
  }
  
  .card-title h3,
  .pack-info h3 {
    font-size: 1.4rem;
  }
  
  .download-btn {
    padding: 18px 30px;
    font-size: 18px;
    min-width: 220px;
  }
  
  .season-badge-large {
    font-size: 20px;
    padding: 12px 24px;
  }
  
  .season-details h3 {
    font-size: 1.6rem;
  }
  
  .episode-title {
    font-size: 1.1rem;
  }
}

@media (min-width: 2560px) {
  .download-page {
    max-width: 2000px;
    padding: 50px 60px;
  }
  
  .page-title {
    font-size: 4.5rem;
  }
  
  .page-subtitle {
    font-size: 1.6rem;
  }
  
  .back-btn {
    padding: 16px 32px;
    font-size: 20px;
  }
  
  .tab-btn {
    padding: 20px 40px;
    font-size: 20px;
  }
  
  .section-header h2 {
    font-size: 2.8rem;
  }
  
  .section-description,
  .quality-count {
    font-size: 1.4rem;
  }
  
  .downloads-grid,
  .packs-grid {
    grid-template-columns: repeat(auto-fit, minmax(750px, 1fr));
    gap: 40px;
  }
  
  .download-card,
  .pack-card,
  .season-block {
    border-radius: 30px;
  }
  
  .card-header,
  .pack-header,
  .season-header {
    padding: 30px;
  }
  
  .quality-badge,
  .season-badge {
    font-size: 24px;
    padding: 15px 30px;
    border-radius: 15px;
  }
  
  .card-title h3,
  .pack-info h3 {
    font-size: 1.8rem;
  }
  
  .card-meta,
  .pack-meta {
    font-size: 1.1rem;
    gap: 20px;
  }
  
  .codec-tag {
    font-size: 1rem;
    padding: 8px 18px;
  }
  
  .file-name {
    padding: 20px;
    font-size: 1.1rem;
  }
  
  .download-btn {
    padding: 22px 40px;
    font-size: 20px;
    min-width: 280px;
    border-radius: 15px;
  }
  
  .season-badge-large {
    font-size: 24px;
    padding: 15px 30px;
    border-radius: 15px;
  }
  
  .season-details h3 {
    font-size: 2rem;
  }
  
  .info-badge {
    font-size: 1rem;
    padding: 8px 18px;
  }
  
  .episode-card {
    border-radius: 20px;
  }
  
  .episode-header {
    padding: 20px;
  }
  
  .episode-number {
    min-width: 140px;
    font-size: 18px;
    padding: 12px 20px;
  }
  
  .episode-title {
    font-size: 1.3rem;
  }
  
  .episode-size {
    font-size: 1rem;
  }
  
  .toggle-btn {
    width: 50px;
    height: 50px;
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .page-header {
    margin-bottom: 20px;
  }
  
  .page-title {
    font-size: 1.8rem;
  }
  
  .download-tabs {
    margin-bottom: 20px;
  }
  
  .section-header {
    margin-bottom: 15px;
  }
  
  .downloads-grid,
  .packs-grid {
    gap: 15px;
  }
}

@media (min-aspect-ratio: 21/9) {
  .download-page {
    max-width: 85%;
  }
  
  .downloads-grid,
  .packs-grid {
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  }
}

@media print {
  body {
    background: white;
    color: black;
  }
  
  .back-btn,
  .download-tabs,
  .toggle-btn {
    display: none;
  }
  
  .card-body,
  .pack-body,
  .episodes-list,
  .episode-body {
    max-height: none !important;
    display: block !important;
  }
  
  .download-btn {
    border: 1px solid black;
    color: black;
  }
}
html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #00d4ff, #0099ff);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #0099ff, #00d4ff);
}


