/* RESET */
html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif;
  background: linear-gradient(135deg, #007a5c, #ffb733, #009688);
  min-height: 100vh;
  color: #fff;
}

/* HEADER */
.kanz-header {
  background: linear-gradient(135deg, #007a5c, #ffb733, #009688);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  position: relative;
  z-index: 100;
}

.kanz-header .kanz-logo {
  height: 45px;
  display: block;
}

.kanz-nav {
  display: flex;
  gap: 20px;
}

.kanz-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.3s;
}

.kanz-nav a:hover {
  background: rgba(255,255,255,0.15);
}

/* LAYOUT */
.kanz-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 20px;
  transform: scale(0.99);
  transform-origin: top center;
  margin-bottom: 0 !important;
}

/* PLAYER */
.kanz-player {
  background: #000;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  border: 3px solid;
  border-image: linear-gradient(90deg,#00ffcc,#ffcc00,#00ccff) 1;
}

.kanz-iframe-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
}

#kanz-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}


/* SIDEBAR */
.kanz-sidebar {
  background: rgba(0,0,0,0.6);
  border-radius: 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 400px;
  overflow-y: auto;
}

/* TABS */
.kanz-tabs {
  display: flex;
  gap: 8px;
  background: #0d0f0d;
  padding: 8px;
  border-radius: 12px 12px 0 0;
  position: sticky;
  top: 0;
  z-index: 10;
  font-size: 1.2rem;
}

.kanz-tab {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  background: #222;
  cursor: pointer;
  border: none;
  color: #fff;
  font-weight: 500;
  text-align: center;
}

.kanz-tab.active {
  background: #00cc88;
  color: #fff;
}

/* TAB CONTENT */
.kanz-tab-content {
  display: none;
  padding: 8px;
}

.kanz-tab-content.active {
  display: block;
}

/* LİSTELER */
.kanz-item, .kanz-channel {
  background: #111;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.3s;
  color: #fff;
    font-weight: 700;
}

.kanz-item:hover, .kanz-channel:hover {
  background: #1e1e1e;
}

.kanz-item-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Masaüstünde beyaz yazılar */
.kanz-item strong {
  color: #fff;
  font-weight: 700;
}

.kanz-time {
  font-size: 0.85rem;
  color: #fff;
  opacity: 0.9;
}

/* REKLAM ALANLARI */
.ad-top {
  text-align: center;
  margin: 15px auto;
}

.ad-bottom {
  text-align: center;
  margin: 15px auto;
  margin-top: 0px !important;
}

.ad-top img, .ad-bottom img {
  max-width: 550px;
  width: 90%;
  height: auto;
}

.ad-left, .ad-right {
  position: fixed;
  top: 100px;
  width: 160px;
  height: 500px;
  z-index: 50;
}

.ad-left { left: 10px; }
.ad-right { right: 10px; }

.ad-left img, .ad-right img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* MOBİL */
@media (max-width: 980px) {
   .kanz-container {
    grid-template-columns: 1fr;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
  }
  /* Header mobil */
  .kanz-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
    .kanz-player {
    width: 100%;
    margin: 0 auto;
    border-radius: 0;
    border: none;
  }
   .kanz-iframe-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
#kanz-iframe {
  width: 100%;
  height: 100%;
  display: block;
  margin-top: -100px;
}

  .kanz-nav {
    gap: 14px;
  }

  .kanz-nav a {
    font-size: 1rem;
    padding: 6px 10px;
  }

  /* Sidebar mobil */
  .kanz-sidebar {
    height: auto;
    max-height: 600px;
    padding: 8px;
  }

  /* Tabs mobil */
  .kanz-tabs {
    font-size: 1rem;
    padding: 8px;
  }

  .kanz-tab {
    font-size: 1rem;
    padding: 10px;
  }

  /* Tab içerik mobil */
  .kanz-tab-content {
    max-height: 300px;
    overflow-y: auto;
  }

  /* Maç kartları mobil */
  .kanz-item, .kanz-channel {
    padding: 12px;
    font-size: 1rem;
    color: #fff;
    font-weight: 700;
  }

  .kanz-item-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .kanz-time {
    font-size: 0.8rem;
  }
}

/* MOBİL REKLAM */
@media (max-width: 610px) {
  .ad-left, .ad-right { display: none; }
  .ad-top img, .ad-bottom img { max-width: 100%; }
}
