:root {
  --bg-color: #121212;   
  --text: #eee;
  --accent: #d32f2f;
  --card-bg: #1f1f1f;
  --card-shadow: rgba(0, 0, 0, 0.7);
  --announce-bg: #292929;
}

body.light-mode {
  --bg-color: #f7f7f7;
  --text: #222;
  --accent: #d32f2f;
  --card-bg: #fff;
  --card-shadow: rgba(200,200,200,0.30);
  --announce-bg: #e8e8e8;
}

* { box-sizing: border-box; }
body {
  background-color: var(--bg-color);
  color: var(--text);
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
header, footer {
  background: #000;
  color: var(--text);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
body.light-mode header,
body.light-mode footer {
  background: #fff;
  color: var(--text);
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
header img { height: 40px; }
.controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
}
select, input {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text);
  font-size: 1rem;
  transition: background 0.3s;
}
select:hover, input:hover,
select:focus, input:focus {
  background: var(--accent);
  color: #fff;
  outline: none;
  cursor: pointer;
}
body.light-mode select, body.light-mode input {
  background: #f2f2f2;
  color: #222;
}
body.light-mode select:hover, body.light-mode input:hover,
body.light-mode select:focus, body.light-mode input:focus {
  background: var(--accent);
  color: #fff;
}

main {
  flex-grow: 1;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.video-gallery,
.music-gallery,
.game-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.video-card,
.music-card,
.game-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 8px var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}
.video-card:hover,
.music-card:hover,
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px var(--card-shadow);
  cursor: pointer;
}
.video-card video,
.video-card img,
.game-card img {
  width: 100%;
  height: 180px;           /* Sabit yükseklik */
  object-fit: contain;     /* Kırpmaz, içeriği sığdırır */
  background: #000;
  border-bottom: 1px solid #333;
}

body.light-mode .video-card video,
body.light-mode .video-card img,
body.light-mode .game-card img {
  background: #fff;
  border-bottom: 1px solid #eee;
}
.music-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  background: #111;
  flex-shrink: 0;
}
body.light-mode .music-thumb {
  background: #f2f2f2;
}

.video-card .content,
.game-card .content {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.video-card h3.title,
.music-card h3.title,
.game-card h3.title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 700;
}
.video-card .meta,
.music-card .meta,
.game-card .meta {
  font-size: 0.9rem;
  color: #bbb;
}
body.light-mode .video-card .meta,
body.light-mode .music-card .meta,
body.light-mode .game-card .meta {
  color: #444;
}
.play-button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}
.play-button:hover {
  background: #b72b2b;
}
.music-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.music-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 8px var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transition: transform 0.2s ease;
}
.music-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px var(--card-shadow);
  cursor: pointer;
}
.music-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  background: #111;
  flex-shrink: 0;
}

.no-results-message {
  display: none;
  color: var(--accent);
  background: var(--card-bg);
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
  font-weight: bold;
  margin-bottom: 2rem;
  grid-column: 1/-1;
  font-size: 1.15em;
}

.footer-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 0.7rem;
  margin-top: 0.5rem;
  width: 100%;
  flex-wrap: wrap;
}
.footer-btn {
  min-width: 98px;
  padding: 10px 22px;
  background: #fff;
  color: var(--accent);
  border: none;
  border-radius: 7px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.09);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  outline: none;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}
.footer-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}
body.light-mode .footer-btn {
  background: #f2f2f2;
  color: var(--accent);
}
body.light-mode .footer-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* Mobilde dikey ve tam ortalı göster */
@media (max-width: 600px) {
  .footer-buttons {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
  }
  .footer-btn {
    width: 85vw !important;
    min-width: 0 !important;
    font-size: 1rem !important;
    padding: 10px 0 !important;
    margin: 0 auto !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}

footer {
  text-align: center;
  padding: 1rem 0 0 0;
  font-size: 0.9rem;
  background: #000;
  color: #777;
  user-select: none;
}
body.light-mode footer {
  background: #fff;
  color: #888;
}
.marquee-bar {
  width: 100%;
  background: #181818;
  color: var(--accent);
  font-weight: 700;
  padding: 0.6rem 0;
  font-size: 1.07rem;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--accent);
  overflow: hidden;
  position: relative;
}
body.light-mode .marquee-bar {
  background: #eee;
}
.marquee-bar marquee {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  width: 100%;
}
 #announcements {
      margin-top: 3rem;
      background: var(--announce-bg);
      padding: 2rem;
      border-radius: 12px;
      box-shadow: 0 4px 10px var(--card-shadow);
    }
    #announcements h2 {
      margin-top: 0;
      color: var(--accent);
      font-weight: 700;
      font-size: 1.8rem;
      margin-bottom: 1rem;
      border-bottom: 2px solid var(--accent);
      padding-bottom: 0.5rem;
    }
    #announce-list {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1rem;
      list-style: none;
      padding-left: 0;
      margin: 0;
    }
    #announce-list li {
      background: var(--card-bg);
      padding: 1rem;
      border-radius: 10px;
      box-shadow: 0 3px 6px var(--card-shadow);
      font-weight: 600;
      color: var(--text);
      transition: background 0.3s;
    }
    #announce-list li:hover {
      background: var(--accent);
      color: #fff;
      cursor: default;
    }
body.light-mode #announce-list li {
  background: #fff;
  color: #222;
  box-shadow: 0 3px 6px rgba(200,200,200,0.14);
}
body.light-mode #announce-list li:hover {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 600px) {
  main { padding: 1rem; }
  .video-gallery,
  .music-gallery,
  .game-gallery {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.8rem;
  }
}
@media (max-width: 480px) {
  .video-card video { height: 140px; }
}

/* --- indietürk COMICS Alanı (Çizgi Roman) için Çift Dilli CSS --- */

/* Comics Gallery Grid */
.comics-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Comics Card */
.comics-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 8px var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.2rem;
  transition: transform 0.2s ease;
  min-height: 100px;
  padding: 1rem 1.2rem;
}
.comics-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px var(--card-shadow);
  cursor: pointer;
}

/* Mobilde alt alta gelsin */
@media (max-width: 600px) {
  .comics-gallery {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.8rem;
  }
  .comics-card {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.7rem;
  }
}

/* Comics Thumb (Kare Kapak) */
.comics-thumb-wrap {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  flex-shrink: 0;
  background: transparent;
}
.comics-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  background: #111;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  border: 1px solid #222;
}
body.light-mode .comics-thumb {
  background: #f2f2f2;
  border: 1px solid #eee;
}

/* Comics Card İçerik */
.comics-card .content {
  padding: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Başlık */
.comics-card h3.title {
  margin: 0 0 0.4rem 0;
  font-size: 1.08rem;
  color: var(--accent);
  font-weight: 700;
  word-break: break-word;
}

/* Meta Bilgi */
.comics-card .meta {
  font-size: 0.93rem;
  color: #bbb;
  margin-bottom: 0.5rem;
}
body.light-mode .comics-card .meta {
  color: #444;
}

/* Read Button */
.read-button {
  margin-top: 0.3rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 1rem;
}
.read-button:hover {
  background: #b72b2b;
}

/* No Results Message */
#comics-no-results {
  display: none;
  color: var(--accent);
  background: var(--card-bg);
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
  font-weight: bold;
  margin-bottom: 2rem;
  grid-column: 1/-1;
  font-size: 1.1em;
}
body.light-mode #comics-no-results {
  background: #fff;
  color: var(--accent);
}


  /* Ortalamayı garantiye almak için flex */
  .flagcounter-wrapper {
    display: flex;
    justify-content: center; /* yatayda ortala */
    margin-top: 10px;
    width: 100%;
  }

  /* Görsel boyutu */
  .flagcounter-img {
    width: 200px;  /* istediğin gibi değiştirebilirsin */
    height: auto;
  }

  /* Linki tıklanamaz yap */
  .flagcounter-link {
    pointer-events: none; /* tıklamayı engeller */
    cursor: not-allowed;  /* imleç yasak işareti gösterir */
    user-select: none;    /* seçmeyi engeller */
    opacity: 0.95;        /* hafif şeffaflık */
  }