:root {
  --bg: #0f0f0f;
  --sidebar: #0f0f0f;
  --topbar: #1e1e1e;
  --text: #e3e6eb;
  --muted: #fff;
  --accent: #ff5a5f;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Muli, Inter, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  display: flex;
}

/* Layout ve Menü */
.layout {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 240px;
  background: var(--sidebar);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  transition: transform 0.3s ease;
  z-index: 1000;
}

.logo {
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  margin-top: 10px;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  text-align: center;
}

.menu img {
  height: 14px;
  aspect-ratio:1;
  margin-top: 4px;
}

.menu a {
  display: flex;    
  justify-content: space-between;
  text-decoration: none;
  color: var(--muted);
  padding: 0px 36px 8px 18px;
  transition: 0.2s;
}

.menu a.active{
  color: gold;
}

.menu a:hover {
  color: gold;
  background: rgba(255, 255, 255, 0.04);
}

.main {
  margin-left: 240px;
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
}

/* Üst Bar (sticky) */
.topbar {
  display: flex;
  justify-content: space-between;
  background: var(--topbar);
  padding: 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 1100;
}

.title {
  font-size: 18px;
  font-weight: 600;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 40px;
  line-height:20px;
  margin-top:-8px;
  cursor: pointer;
  z-index: 1200;
}

.content {
  flex: 1;
  padding: 4px;
}

/* Overlay */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 900;
}

.overlay.show {
  display: block;
}

/* ==== GRIDLER ==== */

/* Ortak grid özellikleri */
.grid {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

/* === Index Grid === */
/* <576px: 3 kolon */
.grid-index {
  grid-template-columns: repeat(3, 1fr);
}

/* 576px–992px: 4 kolon */
@media (min-width: 576px) {
  .grid-index {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 992px+: 6 kolon */
@media (min-width: 992px) {
  .grid-index {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* === Detay Grid === */
/* <576px: 1 kolon */
.grid-detay {
  grid-template-columns: 1fr;
}

.content-wrapper{
    margin-top: 30px;
}

/* 576px–992px: 4 kolon */
@media (min-width: 576px) {
    .content-wrapper{
        padding-left: 10px;
        padding-right: 10px;
    }    
  .grid-detay {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 992px+: 6 kolon */
@media (min-width: 992px) {
  .grid-detay {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Grid item */
.item {
  margin-bottom: 20px;
  /*background: var(--topbar);*/
  min-width: 0;
  text-align: center;
  color: var(--muted);
  transition: 0.3s;
}
.item:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}



/* Modal */
.modal {
  display: none; 
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  width: 100%;
  background-color: var(--topbar);

  border-radius: 12px;

  text-align: center;
  color: var(--text);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: var(--muted);
}

.modal-close:hover {
  color: var(--accent);
}

/* Mobil menü */
@media (max-width: 768px) {
    .modal-content {
      width: 100%;
    }
    
    .logo {
      margin-top: 65px;
    }    
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main {
    margin-left: 0;
  }
  .menu-btn {
    display: block;
  }
}


        .flag-img {
            padding:5px;
            cursor: pointer;
        }
        .flag-img:hover {
            background: gray;
        }
        .flag-div {
            display: none;
            position:absolute; 
            width: 46px; 
            background: white;
            margin-left: -15px;
        }
        .click-flag{
            cursor: pointer;
        }
        
    #overlayFrame {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0); /* tamamen saydam */
        cursor: pointer;
    } 
    
    #overlayFrame.paused::after {
        opacity:0.7;
        content:"";
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        cursor: pointer;
        background-color: black;
        background-repeat: no-repeat;
        background-position: center; 
        background-size: 40px 40px;
        background-image: url(data:image/svg+xml;utf8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEiIHdpZHRoPSIxNzA2LjY2NyIgaGVpZ2h0PSIxNzA2LjY2NyIgdmlld0JveD0iMCAwIDEyODAgMTI4MCI+PHBhdGggZD0iTTE1Ny42MzUgMi45ODRMMTI2MC45NzkgNjQwIDE1Ny42MzUgMTI3Ny4wMTZ6IiBmaWxsPSIjZmZmIi8+PC9zdmc+);
    }    
    
    
    
    /********************************************************************************************/
    
    /********************************************************************************************/
    
    	.hytPlayerWrap {
        width: 100%;
        display: inline-block;
        position: relative;
        cursor: pointer;
    }
    .hytPlayerWrap.ended::after {
        opacity:0.7;
        content:"";
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        cursor: pointer;
        background-color: black;
        background-repeat: no-repeat;
        background-position: center; 
        background-size: 64px 64px;
        background-image: url(data:image/svg+xml;utf8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjgiIGhlaWdodD0iMTI4IiB2aWV3Qm94PSIwIDAgNTEwIDUxMCI+PHBhdGggZD0iTTI1NSAxMDJWMEwxMjcuNSAxMjcuNSAyNTUgMjU1VjE1M2M4NC4xNSAwIDE1MyA2OC44NSAxNTMgMTUzcy02OC44NSAxNTMtMTUzIDE1My0xNTMtNjguODUtMTUzLTE1M0g1MWMwIDExMi4yIDkxLjggMjA0IDIwNCAyMDRzMjA0LTkxLjggMjA0LTIwNC05MS44LTIwNC0yMDQtMjA0eiIgZmlsbD0iI0ZGRiIvPjwvc3ZnPg==);
    }
    .hytPlayerWrap.paused::after {
        opacity:0.7;
        content:"";
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        cursor: pointer;
        background-color: black;
        background-repeat: no-repeat;
        background-position: center; 
        background-size: 40px 40px;
        background-image: url(data:image/svg+xml;utf8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEiIHdpZHRoPSIxNzA2LjY2NyIgaGVpZ2h0PSIxNzA2LjY2NyIgdmlld0JveD0iMCAwIDEyODAgMTI4MCI+PHBhdGggZD0iTTE1Ny42MzUgMi45ODRMMTI2MC45NzkgNjQwIDE1Ny42MzUgMTI3Ny4wMTZ6IiBmaWxsPSIjZmZmIi8+PC9zdmc+);
    }
    
    .youtube-frame {
        aspect-ratio: 9/16 auto;
        max-height: 85vh;
    }
    
.video-title{
    text-align: left;
    line-height: 20px;
    font-size: 13px;
    color: #ffffff;
    overflow: hidden;
   text-overflow: ellipsis;
   display: -webkit-box;
   -webkit-line-clamp: 3; /* number of lines to show */
           line-clamp: 3;
   -webkit-box-orient: vertical;
}

.video-title a{
    text-decoration: none;
}

.short-logo{
    pointer-events: none; 
    display: inherit;
    margin: auto;
   /* width: 70%; 
    height: 85%;
    margin-left: auto; 
    margin-top: auto;*/
    opacity:0.8;
}

.video-views {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 26px;
    text-align: left;
    margin-bottom: 5px;
    font-size: 16px;
    color: gold;
}

.card-style{
    display: flex;
    cursor:pointer;
    aspect-ratio: 9/16; 
    margin-bottom: 5px;
    background-size: cover;
    background-position: center;
}

.card-style-live {
    display: flex;
    cursor:pointer;
    aspect-ratio: 9/16; 
    margin-bottom: 5px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: black;
}

.card-style:hover{
    background: black;
    background-position: center; 
}

.padding-five{
    padding-left: 5px; 
    padding-right: 5px;
}

.align-title{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.itemSelect{
    border: 1px solid gold;    
}

.itemSelectPage{
    border: 1px solid gold;    
}

.time-ago{
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: left;
    font-size: 13px;
    margin-bottom:5px;
    color:white;
}

.modal-icon{
    right: 20px;
    position: absolute;
    cursor: pointer;
    opacity: 1;
    text-align: right;
    color:white;
    font-size: 45px !important;
    text-shadow: 1px 1px 5px black;
}

.modal-icon:hover{
    color: lightgray !important;
}

.share-links{
    display: none;
    padding : 10px;
    background: white;
    left: 50%;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid black;
    z-index: 9999;
    min-width: 300px;
}

.share-icons{
    margin: 10px;
    float:left;
    cursor: pointer;
}

.modal-dialog{
    width:90%;
    margin-top: 0px;
}

.modal-header{
    padding: 7px;    
}   

.flag-div img{
    width: 45px;    
}
.click-flag{
    /*margin-top: -2px;

    height: 35px;*/

}

.icon-control-play {
    line-height: 13px !important;
    font-size:10px !important; 
    margin-right:8px !important;
}

.navbar-container {
    height: 56px !important;
}

@media only screen and (max-width: 575px) {
    .navbar-container {
        height: 0px !important;
    }
    .icon-control-play {
        line-height: 21px !important;
    }    
    
    .card-style {
        aspect-ratio: 16/9;    
    }
    
    .align-title {
        margin-bottom: 10px;
    }
    
    .padding-five {
        padding-right: 15px;
        padding-left: 15px;    
    }
    
    .time-ago {
        float: left;
        width: 50%;
    }
    
    .video-views {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        float: right;
        width: 50%;
        text-align: right;    
    }
    
    .hide-in-mobile {
        display: none;
    }

    .modal-dialog{
        width: 100%;
        margin: 0;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .modal-body {
        padding: 0px;
    }
    
    .modal-icon{
        font-size: 35px !important;
    }
    
    .video-title{
        float: left;
        width: 100%;
        line-height: 26px;
        font-size: 18px;
       -webkit-line-clamp: 3; 
               line-clamp: 3;

    }
}

@media only screen and (max-width: 991px) {
    .hide-in-tablet {
        display: none;
    }

}

.loading-div{
    background: black;
    opacity: 0.6;
    width: 100%;
    height:100vh;
    position: fixed;
    top:0;
    left:0;
    z-index: 999999;
}       

.nav-item a{
 
    display: flex !important;
    justify-content: space-between !important;
}


  /* 🎥 YouTube dark search container */
  .yt-dark-search {
    display: flex;
    align-items: center;
    width: 600px;
    max-width: 90%;
    background-color: #121212;
    border: 1px solid #303030;
    border-radius: 25px;
    overflow: hidden;
  }

  .yt-dark-search input[type="text"] {
    flex: 1;
    border: none !important;
    outline: none;
    padding: 8px 16px;
    font-size: 16px;
    background: #121212;
    color: #fff;
  }

  .yt-dark-search input[type="text"]::placeholder {
    color: #aaa;
  }

  .yt-dark-search button.yt-btn {
    background: #222;
    border: none !important;
    border-left: 1px solid #303030;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.2s ease;
  }

  .yt-dark-search button.yt-btn:hover {
    background: #333;
  }

  .yt-search-icon {
    vertical-align: middle;
    width: 20px;
    height: 20px;
    fill: #aaa;
    transition: fill 0.2s ease;
  }

  .yt-dark-search button.yt-btn:hover .yt-search-icon {
    fill: #fff;
  }

  /* Mobil uyum */
  @media (max-width: 576px) {
    .nav-item a{
        padding-top:2px !important;
    }

    .yt-dark-search input[type="text"] {
        width: 210px;
    }      
    .nav-item-search{
        width: 260px;
    }      
    
    .yt-dark-search {
      margin-top:-5px;
      width: 100%;
      max-width: 98%;
    }
  }
  
    @media (max-width: 350px) {
    .yt-dark-search input[type="text"] {
        width: 140px;
    }      
    .nav-item-search{
        width: 190px;
    }  
  }