@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --panel:#ffffff;
  --panel2:#fafafa;
  --line:#e6e8ee;
  --text:#0b1220;
  --muted:#667085;
  --shadow:0 6px 16px rgba(16,24,40,.06);
  --radius:5px;
  --border:#e6e8ee;
  --card:#ffffff;
  --shadow2:0 6px 16px rgba(16,24,40,.06);
  --google-blue:#1a73e8;
  --chip:#f8f9fa;
}

*{box-sizing:border-box;margin:0;padding:0}

body{
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:#ffffff;
  color:#202124;
  line-height:1.5;
}

img{
  max-width:100%;
}

.video-wrap{
  max-width:1460px;
  margin:0 auto;
  padding:20px;
}

.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:24px;
}

.header h1{
  font-size:24px;
  font-weight:700;
  margin:0;
}

.small{
  font-size:14px;
  color:#5f6368;
}

.player-ads-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 402px;
  gap:18px;
  margin-bottom:24px;
  align-items:start;
}

.player-card,
.side-card,
.channels{
  background:#fff;
  border:1px solid #e0e0e0;
  overflow:hidden;
}

.player-frame{
  background:#000;
  line-height:0;
}

.player-frame iframe{
  width:100%;
  height:460px;
  display:block;
  border:none;
  background:#000;
}

.player-info{
  padding:16px;
  border-top:1px solid #e0e0e0;
}

.player-title{
  font-size:18px;
  font-weight:700;
  margin-bottom:6px;
  line-height:1.4;
}

.player-sub{
  font-size:13px;
  color:#5f6368;
}

.right-rail{
  width:402px;
  max-width:100%;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.ad-rail{
  display:none;
}

.recommend-card{
  height:100%;
}

.side-card-label{
  padding:12px 16px;
  font-size:13px;
  font-weight:700;
  color:#202124;
  border-bottom:1px solid #ececec;
  background:#fff;
}

.side-list{
  padding:8px;
}

.side-video{
  display:flex;
  gap:8px;
  padding:8px 0;
  cursor:pointer;
  transition:background .15s ease;
  align-items:flex-start;
}

.side-video:hover{
  background:#f8f9fa;
}

.side-thumb{
  position:relative;
  width:168px;
  height:94px;
  flex-shrink:0;
  overflow:hidden;
  background:#000;
}

.side-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.side-duration{
  position:absolute;
  right:6px;
  bottom:6px;
  background:rgba(0,0,0,.82);
  color:#fff;
  font:700 11px/1 Inter,system-ui,sans-serif;
  padding:4px 6px;
}

.side-body{
  min-width:0;
  flex:1;
  text-align:left;
}

.side-title{
  font-size:16px;
  font-weight:600;
  line-height:1.25;
  color:#0f0f0f;
  margin-bottom:4px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-align:left;
}

.side-meta{
  font-size:14px;
  color:#606060;
  display:flex;
  flex-direction:column;
  gap:2px;
  line-height:1.25;
  align-items:flex-start;
  text-align:left;
}

.side-channel{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:6px;
  min-width:0;
  width:100%;
  text-align:left;
}

.side-channel img{
  width:18px;
  height:18px;
  flex-shrink:0;
}

.side-channel span{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.side-meta > span{
  display:block;
  width:100%;
  text-align:left;
}

.ads-content{
  padding:0;
}

.ads-placeholder{
  width:100%;
  min-height:110px;
  background:#f5f5f5;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:#5f6368;
  border:1px dashed #e0e0e0;
}

.ads-text{
  font-size:15px;
  font-weight:700;
  margin-bottom:6px;
}

.ads-size{
  font-size:12px;
  color:#6b7280;
}

.video-layout{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:24px;
}

.channels{
  position:sticky;
  top:20px;
  max-height:calc(100vh - 120px);
  overflow:hidden;
}

.channels-header{
  padding:16px;
  border-bottom:0px solid #e0e0e0;
  background:#fff;
  position:sticky;
  top:0;
  z-index:2;
}

.channels-title{
  font-size:16px;
  font-weight:700;
  margin-bottom:4px;
}

.channels-count{
  font-size:12px;
  color:#5f6368;
}

.channels-list{
  padding:8px;
  overflow-y:auto;
  max-height:calc(100vh - 190px);
}

.channel-item,
.mobile-playlist-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  background:transparent;
  border:none;
  cursor:pointer;
  text-align:left;
  width:100%;
  font-family:inherit;
  font-size:14px;
}

.channel-item:hover,
.mobile-playlist-item:hover{
  background:#f8f9fa;
}

.channel-item.active,
.mobile-playlist-item.active{
  background:#e8f0fe;
  font-weight:600;
}

.channel-ico,
.mobile-playlist-ico{
  width:34px;
  height:34px;
  overflow:hidden;
  background:#f0f0f0;
  flex-shrink:0;
  border:1px solid #e0e0e0;
}

.channel-ico img,
.mobile-playlist-ico img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.channel-name,
.mobile-playlist-name{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  flex:1;
}

.mobile-playlist-item{
  display:none;
}

.videos-main{
  min-width:0;
  position:relative;
}

.videos-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}

.videos-title-box{
  min-width:0;
}

.videos-title-line{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.videos-title-logo{
  width:38px;
  height:38px;
  overflow:hidden;
  border:1px solid #e5e7eb;
  background:#fff;
  flex-shrink:0;
}

.videos-title-logo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.videos-title{
  font-size:20px;
  font-weight:700;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.videos-meta{
  font-size:13px;
  color:#5f6368;
  background:#f8f9fa;
  padding:7px 12px;
  white-space:nowrap;
}

.videos-toolbar{
  display:flex;
  justify-content:flex-start;
  margin-bottom:16px;
}

.playlist-strip-wrap{
  width:100%;
  min-width:0;
}

.playlist-strip-label{
  font-size:13px;
  font-weight:700;
  color:#5f6368;
  margin-bottom:8px;
}

.playlist-strip{
  display:flex;
  gap:10px;
  overflow-x:auto;
  overflow-y:hidden;
  width:100%;
  padding-bottom:4px;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
}

.playlist-strip::-webkit-scrollbar{
  height:8px;
}

.playlist-strip::-webkit-scrollbar-track{
  background:transparent;
}

.playlist-strip::-webkit-scrollbar-thumb{
  background:#d0d7de;
}

.playlist-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:0 14px;
  border:1px solid #e0e0e0;
  background:#fff;
  cursor:pointer;
  white-space:nowrap;
  font:600 14px/1 Inter,system-ui,sans-serif;
  color:#202124;
  flex:0 0 auto;
}

.playlist-chip:hover{
  background:#f8f9fa;
}

.playlist-chip.active{
  background:#e8f0fe;
  border-color:#1a73e8;
  color:#1a73e8;
}

.playlist-chip img{
  width:22px;
  height:22px;
  object-fit:cover;
  border:1px solid #e8eaed;
}

.unified-source-chip{
  min-height:44px;
}

.unified-source-chip img{
  width:24px;
  height:24px;
  object-fit:cover;
  border:1px solid #e8eaed;
  border-radius:4px;
}

.videos-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-bottom:24px;
}

.video-item{
  overflow:hidden;
  cursor:pointer;
  user-select:none;
  background:var(--panel);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease;
  display:flex;
  flex-direction:column;
}

.video-item:hover{
  transform:translateY(-1px);
  border-color:rgba(255,0,0,.18);
}

.video-thumb{
  position:relative;
  aspect-ratio:16/9;
  background:#000;
  overflow:hidden;
}

.video-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  background:#f1f3f4;
}

.video-badge{
  position:absolute;
  right:8px;
  bottom:8px;
  background:rgba(0,0,0,.82);
  color:#fff;
  font:700 12px/1 Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial;
  padding:4px 6px;
}

.video-text{
  padding:12px;
}

.video-title-wrap{
  min-width:0;
  flex:1;
}

.video-title{
  font:700 14px/1.32 Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial;
  margin:0 0 6px 0;
  color:var(--text);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.video-meta{
  font-size:12px;
  color:#5f6368;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.video-channel{
  display:flex;
  align-items:center;
  gap:7px;
  font:600 12px/1.2 Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.video-channel-logo{
  width:22px;
  height:22px;
  overflow:hidden;
  border:1px solid #e5e7eb;
  background:#fff;
  flex-shrink:0;
  margin-top:0;
}

.video-channel-logo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.pagination-wrapper{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top:32px;
  flex-wrap:wrap;
}

.pagination-button{
  padding:9px 14px;
  background:#fff;
  border:1px solid #e0e0e0;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  min-width:42px;
}

.pagination-button:hover:not(:disabled){
  background:#f8f9fa;
}

.pagination-button:disabled{
  opacity:1;
  cursor:default;
}

.pagination-button.is-active{
  background:#e8f0fe;
  border-color:#1a73e8;
  color:#1a73e8;
}

.videos-empty{
  grid-column:1 / -1;
  text-align:center;
  padding:60px 24px;
  border:1px dashed #e0e0e0;
  color:#5f6368;
}

.loading-overlay{
  position:absolute;
  inset:0;
  z-index:50;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,0.90);
  pointer-events:all;
}

.loading-overlay.is-on{
  display:flex;
}

.loading-card{
  display:flex;
  align-items:center;
  gap:12px;
  padding:16px 24px;
  border:1px solid var(--border);
  background:var(--card);
  box-shadow:var(--shadow2);
}

.loading-text{
  font:600 13px/1.2 Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial;
  color:var(--text);
}

.loading-spinner{
  width:18px;
  height:18px;
  border:2px solid rgba(60,64,67,.20);
  border-top-color:var(--google-blue);
  animation:spin .8s linear infinite;
}

@keyframes spin{
  to{transform:rotate(360deg)}
}

@media (max-width:1450px){
  .player-ads-row{
    grid-template-columns:minmax(0,1.35fr) 310px 230px;
  }

  .right-rail{
    width:310px;
  }

  .ad-rail{
    width:230px;
  }
}

@media (max-width:1360px){
  .videos-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media (max-width:1280px){
  .player-ads-row{
    grid-template-columns:1fr;
  }

  .right-rail,
  .ad-rail{
    width:100%;
    max-width:100%;
  }

  .right-rail{
    display:flex;
    flex-direction:column;
    gap:12px;
  }

  .video-layout{
    grid-template-columns:1fr;
  }

  .channels{
    position:static;
    max-height:none;
  }

  .channels-list{
    max-height:none;
  }
}

@media (max-width:900px){
  .videos-header{
    flex-direction:column;
    align-items:flex-start;
  }

  .videos-meta{
    white-space:normal;
  }

  .videos-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:640px){
  .video-wrap{
    padding:12px;
  }

  .header{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
    margin-bottom:16px;
  }

  .player-frame iframe{
    height:230px;
  }

  .player-ads-row{
    gap:14px;
  }

  .side-video{
    grid-template-columns:110px 1fr;
    gap:10px;
  }

  .channels{
    border-left:none;
    border-right:none;
    border-top:none;
    margin-top:0px;
    margin-bottom:0px;
    padding-top:8px;
  }

  .channels-title{
    margin-bottom:10px;
  }

  .channels-list{
    padding:4px 12px 12px;
  }

  .channels-header{
    padding:12px 12px 8px;
  }

  .channels-list::-webkit-scrollbar{
    display:none;
  }

  .channel-item,
  .mobile-playlist-item{
    width:auto;
    min-width:max-content;
    border:1px solid #e5e7eb;
    background:#fff;
    padding:8px 12px;
    flex:0 0 auto;
  }

  .mobile-playlist-item{
    display:flex;
  }

  .videos-title{
    font-size:18px;
  }

  .videos-header{
    display:none !important;
  }

  .videos-meta{
    display:none !important;
  }

  .channels-count{
    display:none !important;
  }

  .videos-toolbar{
    display:none !important;
  }

  .videos-grid{
    display:flex;
    flex-direction:column;
    gap:12px;
  }

  .video-item{
    flex-direction:row;
    align-items:flex-start;
    border:none;
    box-shadow:none;
    padding:0 0 12px;
    border-bottom:1px solid #eceff3;
  }

  .video-thumb{
    width:42%;
    min-width:42%;
    aspect-ratio:16/9;
    flex-shrink:0;
  }

  .video-text{
    padding:0 0 0 10px;
    flex:1;
    min-width:0;
  }

  .video-title{
    font-size:14px;
    line-height:1.28;
    -webkit-line-clamp:3;
    margin-bottom:4px;
  }

  .video-meta{
    gap:3px;
  }

  .video-channel-logo{
    width:20px;
    height:20px;
  }

  .pagination-wrapper{
    margin-top:20px;
  }

  .playlist-strip-label{
    margin-bottom:10px;
  }

  .playlist-strip{
    gap:8px;
  }

  .unified-source-chip{
    padding:0 12px;
    min-height:40px;
    font-size:13px;
  }

  .unified-source-chip img{
    width:22px;
    height:22px;
  }
}

@media (max-width:1280px){
  .channels{
    border-left:none;
    border-right:none;
    border-top:none;
    margin-top:18px;
    margin-bottom:12px;
    padding-top:8px;
  }

  .channels-header{
    padding:12px 12px 8px;
  }

  .channels-list{
    display:flex !important;
    gap:10px;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    padding:4px 12px 12px;
    max-height:none !important;
    scrollbar-width:none;
  }

  .channels-list::-webkit-scrollbar{
    display:none;
  }

  .channel-item,
  .mobile-playlist-item{
    width:auto !important;
    min-width:max-content;
    border:1px solid #e5e7eb;
    background:#fff;
    padding:8px 12px;
    flex:0 0 auto;
  }

  .channels-count{
    display:none !important;
  }
}

.player-card,
.side-card,
.channels,
.channel-item,
.mobile-playlist-item,
.channel-ico,
.mobile-playlist-ico,
.videos-meta,
.playlist-chip,
.video-item,
.video-thumb,
.video-badge,
.video-channel-logo,
.videos-empty,
.loading-card,
.side-video,
.side-thumb,
.side-duration,
.ads-placeholder,
.pagination-button,
.videos-title-logo{
  border-radius:5px !important;
}

/* Ads */
.ads-card{
  display:flex;
  justify-content:center;
}

.video-ad img{
  width:336px;
  height:150px;
  object-fit:cover;
  display:block;
}

/* Faqja me nr */
.pagination-dots{
  cursor:default;
  pointer-events:none;
  background:#fff;
  color:#5f6368;
}