body {
  background: #111;
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #fff;
}

/* MOBİL UYUMLULUK - RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .main-layout {
    flex-direction: column;
    gap: 16px;
    padding: 0 10px;
  }
  
  .main-right {
    display: none !important; /* Telefonda sidebar gizli */
  }
  
  .main-left {
    width: 100%; /* Ana içerik tam genişlik */
  }
  
  .header-bar {
    padding: 0 16px;
    height: 50px;
    border-radius: 0 0 12px 12px;
  }
  
  .logo {
    font-size: 1.1rem;
  }
  
  nav {
    margin-left: 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  nav a {
    font-size: 0.9rem;
    padding: 6px 10px;
  }
  
  .slider img {
    width: 95vw;
    max-width: none;
  }
  
  .cards {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
    gap: 12px !important;
  }
  
  .card {
    border-radius: 12px;
  }
  
  .card img {
    height: 180px !important;
  }
  
  .card h3 {
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
  }
  
  .card p {
    font-size: 0.8rem !important;
  }
}

@media (max-width: 480px) {
  .header-bar {
    flex-direction: column;
    height: auto;
    padding: 12px 16px;
    gap: 8px;
  }
  
  nav {
    margin-left: 0;
    justify-content: center;
  }
  
  .main-right {
    display: none !important; /* Çok küçük ekranlarda kesinlikle gizli */
  }
  
  .cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .slider img {
    width: 98vw;
  }
}

/* TABLET (orta boyut) için ayrı ayar */
@media (min-width: 769px) and (max-width: 1024px) {
  .main-right {
    width: 180px; /* Tablet'te biraz daha dar */
  }
  
  .main-layout {
    gap: 20px;
  }
}

header {
  width: 100%;
  background: transparent;
  margin-bottom: 0;
}

.header-bar {
  background: #7c3aed;
  display: flex;
  align-items: center;
  padding: 0 32px;
  height: 60px;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  position: relative;
}

.logo {
  font-size: 1.3rem;
  margin: 0;
  font-weight: bold;
  letter-spacing: 1px;
  color: #fff;
  flex-shrink: 0;
  cursor: pointer;
  transition: color 0.2s;
}

.logo:hover {
  color: #ff9800;
}

nav {
  margin-left: 32px;
  display: flex;
  gap: 24px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

nav a:hover {
  background: #fff;
  color: #7c3aed;
}

.main-layout {
  display: flex;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

.main-left {
  flex: 1;
  min-width: 0;
}

.main-right {
  width: 200px;
  background: #23272a;
  border-radius: 18px;
  padding: 12px 8px;
  margin-top: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.slider {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 32px 0 24px 0;
  position: relative;
}

.slider img {
  width: 80vw;
  max-width: 900px;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  display: block;
  transition: opacity 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.slider img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 32px rgba(124, 58, 237, 0.3);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(124, 58, 237, 0.9);
  color: transparent;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  opacity: 0.8;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  transition: all 0.3s ease;
}

.slider-btn#prevBtn::before {
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 12px solid #fff;
  margin-left: -2px;
}

.slider-btn#nextBtn::before {
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #fff;
  margin-right: -2px;
}

#prevBtn {
  left: 10px;
}

#nextBtn {
  right: 10px;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 30px rgba(124, 58, 237, 0.4);
}

.slider-btn:hover#prevBtn::before {
  border-right-color: #7c3aed;
  border-top-width: 10px;
  border-bottom-width: 10px;
  border-right-width: 14px;
}

.slider-btn:hover#nextBtn::before {
  border-left-color: #7c3aed;
  border-top-width: 10px;
  border-bottom-width: 10px;
  border-left-width: 14px;
}

.suggested-row {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}

.suggested-list {
  display: flex;
  overflow-x: auto;
  gap: 18px;
  padding: 12px 0;
}

.suggested-btn {
  background: rgba(124, 58, 237, 0.9);
  color: transparent;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  margin: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 3px 15px rgba(124, 58, 237, 0.25);
}

.suggested-btn::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  transition: all 0.3s ease;
}

.suggested-btn#suggestedPrev::before {
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 10px solid #fff;
  margin-left: -1px;
}

.suggested-btn#suggestedNext::before {
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid #fff;
  margin-right: -1px;
}

.suggested-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.08);
  box-shadow: 0 5px 25px rgba(124, 58, 237, 0.35);
}

.suggested-btn:hover#suggestedPrev::before {
  border-right-color: #7c3aed;
  border-top-width: 8px;
  border-bottom-width: 8px;
  border-right-width: 12px;
}

.suggested-btn:hover#suggestedNext::before {
  border-left-color: #7c3aed;
  border-top-width: 8px;
  border-bottom-width: 8px;
  border-left-width: 12px;
}

.suggested-card {
  background: #18191c;
  border-radius: 12px;
  min-width: 120px;
  max-width: 120px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.suggested-card img {
  width: 100px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}

.suggested-card h4 {
  font-size: 0.95rem;
  color: #ff9800;
  margin: 8px 0 0 0;
  text-align: center;
}

.cards {
  background: #23272a;
  border-radius: 24px;
  max-width: 1000px;
  margin: 0 auto 48px auto;
  padding: 30px 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

/* MODERN CARD STYLE - Daha basit ve responsive */
.card {
  background: #2d2d2d;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.2);
  border-color: #7c3aed;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 15px;
}

.card h3 {
  color: #fff;
  margin: 0 0 8px 0;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.2;
}

.card p {
  color: #aaa;
  margin: 0 0 10px 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.card .status {
  color: #10b981;
  font-size: 0.85rem;
  font-weight: bold;
}

.webtoon-card {
  background: #18191c;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  gap: 16px;
  max-width: 100%;
}

.webtoon-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 32px rgba(255,152,0,0.15);
}

.webtoon-card-img {
  width: 85px;
  height: 115px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.webtoon-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.genre-badge {
  background: #e53935;
  color: #fff;
  font-size: 0.85rem;
  font-weight: bold;
  border-radius: 6px;
  padding: 2px 10px;
  margin-bottom: 6px;
  display: inline-block;
}

.webtoon-card h3 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  color: #fff;
  font-weight: bold;
  text-align: left;
}

.last-chapter {
  font-size: 0.85rem;
  color: #ff9800;
  margin: 2px 0 0 0;
  font-weight: bold;
}

.ongoing {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #ff9800;
  margin: 4px 0 0 0;
}

.ongoing-dot {
  width: 10px;
  height: 10px;
  background: #ff9800;
  border-radius: 50%;
  display: inline-block;
}

.webtoon-card a {
  display: inline-block;
  padding: 7px 18px;
  background: #ff9800;
  color: #18191c;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s, color 0.2s;
  font-size: 0.95rem;
  margin-top: 10px;
}

.webtoon-card a:hover {
  background: #fff;
  color: #ff9800;
}

.popular-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.pop-tab {
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s, color 0.2s;
}

.pop-tab.active, .pop-tab:hover {
  background: #fff;
  color: #7c3aed;
}

.popular-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popular-item {
  background: #18191c;
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.popular-item:hover {
  background: #2d3035;
  transform: translateX(2px);
}

.popular-item .rank {
  background: #ff9800;
  color: #000;
  font-weight: bold;
  font-size: 0.9rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.popular-item .popular-thumb {
  width: 40px;
  height: 50px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.popular-item .popular-info {
  flex: 1;
  min-width: 0;
}

.popular-item .popular-info h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popular-item .popular-info .genre {
  color: #7c3aed;
  font-size: 0.75rem;
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
}

.popular-item .popular-info .chapter {
  color: #aaa;
  font-size: 0.75rem;
  display: block;
}

.popular-item .views {
  color: #ff9800;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

.suggested-section {
  background: #23272a;
  border-radius: 18px;
  margin-bottom: 32px;
  padding: 18px 0 8px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.suggested-title {
  color: #ff9800;
  font-size: 1.15rem;
  font-weight: bold;
  margin-left: 24px;
  margin-bottom: 8px;
}

#scrollTopBtn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  display: block; /* Her zaman görünür */
  transition: background 0.2s, transform 0.2s;
}

#scrollTopBtn:hover {
  background: #fff;
  color: #7c3aed;
  transform: scale(1.1);
}

#scrollBottomBtn {
  position: fixed;
  right: 20px;
  bottom: 70px; /* Yukarı butonunun üstünde */
  z-index: 999;
  background: #ff9800;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  display: block; /* Her zaman görünür */
  transition: background 0.2s, transform 0.2s;
}

#scrollBottomBtn:hover {
  background: #fff;
  color: #ff9800;
  transform: scale(1.1);
}

/* ========== CHAPTER NAVIGATION ARROWS ========== */
.chapter-nav-btn {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  border: none;
  padding: 12px 24px;
  margin: 0 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.chapter-nav-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.chapter-nav-btn:hover::before {
  left: 100%;
}

.chapter-nav-btn:hover {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
}

.chapter-nav-btn .arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.chapter-nav-btn:hover .arrow.left {
  transform: translateX(-3px);
}

.chapter-nav-btn:hover .arrow.right {
  transform: translateX(3px);
}

.back-btn {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: #111;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.back-btn:hover {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

/* Sayfalama Stili */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
  gap: 20px;
}

.pagination-btn {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.pagination-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
}

.pagination-btn:disabled {
  background: #333;
  color: #666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.page-info {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(10px);
}