* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #eef1f5;
  color: #2c3e50;
  padding: 16px;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background: #23252c !important;
  /*border: 1px solid #17191f !important;*/
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 5px 0 0 #23252c, 0 -5px 0 0 rgb(35, 37, 44), 7px 0 10px -4px rgba(35, 37, 44, .4), -7px 0 10px -4px rgba(35, 37, 44, .4);
  background: #1e2026 !important;
}

.main-header {
  background: #23252c !important;
  border: 1px solid #17191f !important;
  border-radius: 6px;
  margin-bottom: 12px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.single-banner-box {
  width: 100%;
  height: 65px;
  background: #f4f6f8;
  border: 1px solid #17191f !important;
  border-radius: 4px;
  object-fit: cover;
}

.alphabet-nav {
  background: #181a1d;
  border: 1px solid #111;
  border-radius: 6px;
  margin-bottom: 14px;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.alphabet-nav ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.alphabet-nav li {
  flex: 1;
  text-align: center;
  margin: 0 1px;
}

.alphabet-nav a {
  display: block;
  background: #272a2e;
  color: #fff;
  padding: 6px 0;
  text-decoration: none;
  font-size: 11px;
  font-weight: bold;
  border-radius: 4px;
  border: 1px solid #36393e;
  transition: all 0.2s ease;
}

.alphabet-nav a:hover {
  background: #3f4349;
  border-color: #4f545c;
}

.slider-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  width: 100%;
}

.circle-img {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: #f4f6f8;
  border: 2px solid #dcdfe6;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.circle-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.main-grid {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.col-left {
  flex: 3.5;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.col-right {
  flex: 1.75;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.top-two-cols {
  display: flex;
  gap: 14px;
}

.promo-box-width {
  flex: 2;
}

.news-box-width {
  flex: 1.5;
}

.block-box {
  border: 1px solid #17191f !important;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  background: #23252c !important;
}

.block-title {
  background: #1f2328;
  color: #fff;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: bold;
  min-height: 32px;
}

.block-content {
  background: #1f2328;
  border: 1px solid #17191f !important;
}

.episodes-section-box {
  border: 1px solid #17191f !important;
  border-radius: 6px;
  background: #23252c !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.sub-nav {
  background: #181a1d;
  border-bottom: 1px solid #17191f;
  padding: 8px;
}

.sub-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sub-nav li {
  border: 1px solid #17191f;
  background: #141516;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.sub-nav li.active {
  background: #24292f;
  border-color: #24292f;
}

.sub-nav li.active a {
  color: #fff;
}

.sub-nav a {
  display: block;
  padding: 6px 12px;
  font-size: 11px;
  color: #24292f;
  text-decoration: none;
  font-weight: bold;
}

.episodes-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
}

.episode-card {
  border: 1px solid #17191f !important;
  border-radius: 6px;
  background: #23252c !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  padding: 5px;
}

.episode-card:hover {
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.08);
  background: #272727 !important;
}

.card-header {
  background-color: #17191f !important;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: bold;
  border-bottom: 1px solid #17191f;
}

.card-body {
  display: flex;
  padding: 12px;
  gap: 12px;
}

.thumb-box {
  width: 80px;
  height: 100px;
  background: #181a1d;
  border: 1px solid #17191f !important;
  border-radius: 4px;
  flex-shrink: 0;
}

.info-box {
  font-size: 11px;
  line-height: 1.5;
}

.ep-title {
  font-weight: bold;
  margin-bottom: 6px;
}

.ep-meta {
  color: #a6a6a6;
}

.time-info {
  color: #c2c2c2;
}

.card-footer {
  background: #1f2328;
  padding: 8px 12px;
  border-top: 1px solid #17191f;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.btn-like,
.btn-views {
  background: #23252c !important;
  border: 1px solid #17191f;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-like:hover,
.btn-views:hover {
  background: #f3f4f6;
  border-color: #8c959f;
}

.sidebar-box {
  border: 1px solid #17191f !important;
  border-radius: 6px;
  margin-bottom: 14px;
  background: #23252c !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.fixed-height-box {
  height: 155px;
  display: flex;
  flex-direction: column;
}

.scrollable-body {
  overflow-y: auto;
  max-height: 115px;
  padding: 10px;
}

.sidebar-title {
  background: #1f2328;
  color: #fff;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: bold;
}

.sidebar-body {
  padding: 10px;
}

.social-buttons-box {
  border: 1px solid #17191f !important;
  border-radius: 6px;
  background: #23252c !important;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.social-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px;
}

.social-btn {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: 11px;
  gap: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.social-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.discord-btn {
  background: linear-gradient(to bottom, #7289da, #5b73c7);
}

.telegram-btn {
  background: linear-gradient(to bottom, #2ca5e0, #1b8ec7);
}

.instagram-btn {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.tiktok-btn {
  background: linear-gradient(to bottom, #ff0050, #d00040);
}

.social-icon {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-item {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 11px;
  border-bottom: 1px solid #181a1d;
  padding-bottom: 8px;
}

.news-thumb {
  width: 60px;
  height: 45px;
  background: #181a1d;
  border: 1px solid #17191f !important;
  border-radius: 4px;
  flex-shrink: 0;
}

.archive-body {
  text-align: center;
  padding: 15px;
}

.centered-link {
  display: flex;
  justify-content: center;
  /* Horizontally center */
  align-items: center;
  /* Vertically center */
  width: 100%;
  /* Ensure it takes up full horizontal width if needed */

  /* Remove all click behavior and interaction */
  pointer-events: none;
  cursor: default;
}

/* Container with 3D perspective */
.logo-wrapper {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

/* 3D rotated logo box */
.logo-3d {
  position: relative;
  display: inline-block;
  font-size: 80px;
  font-weight: 900;
  white-space: nowrap;
  user-select: none;

  /* Rotation parameters matching the image perspective */
  transform: rotateX(12deg) rotateY(-8deg) rotateZ(-6deg) skewX(-4deg);
  transform-style: preserve-3d;
}

/* --- "Türk" (Red Portion) --- */
.part-turk {
  color: #ff0000;
  /* Multi-layer text-shadow creates the extruding 3D side walls */
  text-shadow:
    -1px 1px 0 #800000,
    -2px 2px 0 #800000,
    -3px 3px 0 #800000,
    -4px 4px 0 #800000,
    -5px 5px 0 #600000,
    -6px 6px 0 #400000,
    -7px 7px 10px rgba(0, 0, 0, 0.4);
}

/* --- "Anime" (Cyan / Blue Portion) --- */
.part-anime {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  margin-left: -5px;
  text-shadow: -1px 1px 0 #a6a6a6, -2px 2px 0 #979797, -3px 3px 0 #a0a0a0, -4px 4px 0 #8c8c8c, -5px 5px 0 #797979, -6px 6px 0 #303030, -7px 7px 10px rgba(0, 0, 0, 0.4);
}

/* --- ".vip" (Overlapping White Badge) --- */
.part-vip {
  position: absolute;
  left: 45%;
  bottom: -22px;
  color: #ffffff;
  font-size: 38px;
  font-style: italic;
  font-weight: 700;
  font-family: 'Cinzel', serif;
  z-index: 10;

  /* Dark extruding shadow for high contrast over red and blue */
  /*text-shadow:
    0px 0px 3px #000,
    -1px 1px 0 #222,
    -2px 2px 0 #222,
    -3px 3px 0 #000,
    -4px 4px 6px rgba(0, 0, 0, 0.7);*/

  text-shadow: -1px 1px 0 #a6a6a6, -2px 2px 0 #979797, -3px 3px 0 #a0a0a0, -4px 4px 0 #8c8c8c, -5px 5px 0 #797979, -6px 6px 0 #303030, -7px 7px 10px rgba(0, 0, 0, 0.4);
}

.turkanime_mascot {
  position: relative;
  justify-self: anchor-center;
  top: 25px;
  height: 0px;
}

.server-btn {
  background: #1c1e20;
  color: #fff;
  padding: 6px 6px;
  text-decoration: none;
  font-size: 11px;
  font-weight: bold;
  border-radius: 4px;
  border: 1px solid #36393e;
  transition: all 0.2s ease;
  margin: 2px;
}

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  min-width: 280px;
  background: #1b1b1b;
  border: 1px solid #333;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: none;
  max-height: 350px;
  overflow-y: auto;
}

.search-dropdown .search-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #2a2a2a;
  transition: background 0.2s ease;
}

.search-dropdown .search-item:hover {
  background: #2a2c38;
  color: #00bfff;
}

.img-circle {
  border-radius: 50%;
}

.search-dropdown .search-item img {
  width: 38px;
  height: 52px;
  object-fit: cover;
  border-radius: 3px;
  margin-right: 10px;
}

.search-dropdown .search-item .item-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.search-dropdown .no-result {
  padding: 12px;
  color: #aaa;
  font-size: 12px;
  text-align: center;
}

/* Dropdown menünün diğer elemanların üstünde görünmesini sağlar */
.navbar .dropdown-menu {
  z-index: 9999 !important;
}

.episode-grid {
  height: 282px;
  overflow: scroll;
}

/* Bootstrap 'open' sınıfı eklendiğinde menüyü görünür yapar */
.navbar .dropdown.open .dropdown-menu {
  display: block !important;
  padding: 5px;
  gap: 4px;
  display: grid !important;
}

.episode-card {
  cursor: pointer;
  background: #1e1f23 !important;
  border: 0px;
  border-radius: 0px;
}

.menum li:focus,
.navbar-trans li>a:focus,
li.active,
a.list-group-item:focus {
  background: none #1e2026 !important;
}

.server-btn:hover,
.server-btn.active {
  background: #c71919;
}

.archive-logo {
  width: 100%;
  height: 100%;
  background: #1f2328;
  border: 1px solid #17191f !important;
  border-radius: 4px;
  margin: 0 auto;
}

.ranking-list ul {
  list-style: none;
}

.ranking-list li {
  font-size: 11px;
  padding: 6px 4px;
  border-bottom: 1px solid #181a1d;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rank-num {
  background: #fb8c00;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
  margin-right: 6px;
}

.rank-val {
  color: #8c959f;
  font-weight: 600;
}

/* Fixed Background Wrapper */
.bg-wall-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background-color: #0b0b0d;
}

/* Rotated Track (-40 degrees) */
.bg-wall-track {
  position: absolute;
  top: -120%;
  left: -120%;
  width: 340vw;
  height: 340vh;
  display: flex;
  justify-content: center;
  /* Keeps flex layout tight on resize */
  gap: 1vw;
  /* Responsive small gap relative to viewport */
  opacity: 0.28;
  transform: rotate(-40deg);
  transform-origin: center center;
  filter: brightness(0.85) contrast(1.1);
  transition: opacity 0.5s ease-in-out;
}

/* Vertical Columns */
.bg-column {
  display: flex;
  flex-direction: column;
  gap: 1vw;
  /* Responsive vertical gap */
  width: 8.5vw;
  /* Scales cleanly with viewport */
  min-width: 95px;
  max-width: 150px;
  flex-shrink: 0;
  will-change: transform;
}

/* Cover Cards */
.cover-card {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: #141416;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

.cover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Vignette Dark Overlay */
.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(11, 11, 13, 0.2) 0%, rgba(11, 11, 13, 0.8) 70%, rgba(11, 11, 13, 0.98) 100%);
  pointer-events: none;
}