/*
Theme Name: VeloTube
Theme URI: https://velotube.local
Author: VeloTube
Author URI: https://velotube.local
Description: একটি মডার্ন ভিডিও স্ট্রিমিং প্ল্যাটফর্মের জন্য WordPress থিম। কাস্টম ফিল্ডে ভিডিও URL রাখুন।
Version: 1.0.0
License: GPL v2 or later
Text Domain: velotube
Domain Path: /languages
*/

:root {
  --grad: linear-gradient(135deg, #5b6ee8 0%, #8e54c9 100%);
  --grad-soft: linear-gradient(135deg, #6b78e8 0%, #9b62cf 100%);
  --purple: #8e54c9;
  --blue: #5b6ee8;
  --ink: #1f2230;
  --muted: #8b8fa3;
  --bg: #f4f3fb;
  --card: #ffffff;
  --line: #eceaf6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, h4, h5, h6, .brand {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
}

/* ===== Header ===== */
header {
  background: var(--grad);
  color: #fff;
  padding: 14px 18px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 6px 20px rgba(91, 110, 232, 0.25);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: -0.5px;
  color: #fff;
}

.brand .logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  font-size: 15px;
}

.search {
  flex: 1;
  display: flex;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  overflow: hidden;
}

.search input {
  flex: 1;
  border: none;
  background: transparent;
  color: #fff;
  padding: 9px 16px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.search input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search button {
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s;
}

.search button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

/* ===== Nav chips ===== */
.navchips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 18px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.navchips::-webkit-scrollbar {
  display: none;
}

.chip {
  white-space: nowrap;
  padding: 7px 15px;
  border-radius: 20px;
  background: var(--bg);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Hind Siliguri', sans-serif;
}

.chip:hover,
.chip.active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

/* ===== Main ===== */
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px;
}

.sec-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 26px 4px 14px;
}

.sec-head:first-child {
  margin-top: 6px;
}

.sec-head h2 {
  font-size: 18px;
  font-weight: 700;
}

.sec-head .badge {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  padding: 3px 9px;
  border-radius: 12px;
  background: var(--grad);
  font-family: 'Hind Siliguri', sans-serif;
}

.sec-head .more {
  margin-left: auto;
  font-size: 13px;
  color: var(--purple);
  font-weight: 600;
}

/* ===== Video Grid ===== */
.grid {
  display: grid !important;
  gap: 16px !important;
  grid-template-columns: repeat(4, 1fr) !important;
  width: 100% !important;
}

/* Large Desktop: 4 columns */
@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
  }
}

/* Desktop: 3 columns */
@media (max-width: 960px) {
  .grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
  }
}

/* Tablet: 2 columns */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

/* Mobile: 2 columns */
@media (max-width: 600px) {
  .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

/* Small mobile: 1 column */
@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

.vcard {
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(94, 84, 170, 0.07);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.vcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(94, 84, 170, 0.18);
}

.thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--tb, var(--grad));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb .play {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--purple);
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.thumb .dur {
  position: absolute;
  bottom: 7px;
  right: 7px;
  background: rgba(20, 20, 35, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
}

.thumb .live {
  position: absolute;
  top: 7px;
  left: 7px;
  background: #e8434f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
  letter-spacing: 0.5px;
}

.vmeta {
  display: flex;
  gap: 10px;
  padding: 11px;
}

.vmeta .ch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  font-family: 'Sora', sans-serif;
  background: var(--grad);
}

.vinfo h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vinfo .sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.vinfo .sub .dot {
  margin: 0 4px;
}

/* ===== Trending rail ===== */
.rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail .vcard {
  flex: 0 0 270px;
}

.rank {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(20, 20, 35, 0.78);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 14px;
  z-index: 3;
}

/* ===== Browse section ===== */
.browse {
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  margin-top: 26px;
  box-shadow: 0 4px 16px rgba(94, 84, 170, 0.07);
}

.browse h2 {
  font-size: 17px;
  margin-bottom: 4px;
}

.browse .hint {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
}

.tag:hover {
  background: var(--grad-soft);
  color: #fff;
  border-color: transparent;
}

/* ===== Single Post Page ===== */
.post-container {
  display: grid;
  gap: 22px;
}

@media (min-width: 960px) {
  .post-container {
    grid-template-columns: 1fr 340px;
    align-items: start;
  }
}

@media (max-width: 768px) {
  .post-container {
    gap: 16px;
  }

  .side h3 {
    font-size: 14px;
    margin: 0 0 10px 2px;
  }

  .snav {
    gap: 9px;
    padding: 7px;
    margin-bottom: 9px;
  }

  .snav .st {
    width: 100px;
  }

  .snav .si h4 {
    font-size: 12px;
  }

  .snav .si .ssub {
    font-size: 10.5px;
  }
}

@media (max-width: 480px) {
  .snav .st {
    width: 85px;
  }

  .snav .si h4 {
    font-size: 11px;
  }
}

.player {
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--grad);
  position: relative;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(94, 84, 170, 0.2);
  max-width: 100%;
}

.player iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.player .bigplay {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--purple);
  display: grid;
  place-items: center;
  font-size: 30px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
  z-index: 10;
}

.player .bigplay:hover {
  transform: scale(1.08);
}

.vtitle {
  font-size: 20px;
  font-weight: 700;
  margin: 16px 4px 8px;
  line-height: 1.35;
}

.vstats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin: 0 4px;
  font-size: 13px;
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 8px;
  margin: 14px 4px;
  flex-wrap: wrap;
}

.act {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Hind Siliguri', sans-serif;
}

.act:hover {
  background: var(--grad-soft);
  color: #fff;
  border-color: transparent;
}

.act.active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

/* ===== Channel box ===== */
.channel {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
  margin: 0 4px;
}

.channel .ch {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  font-size: 18px;
}

.channel .cname {
  font-size: 14px;
  font-weight: 700;
}

.channel .csub {
  font-size: 12px;
  color: var(--muted);
}

.channel .sub-btn {
  margin-left: auto;
  background: var(--grad);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Hind Siliguri', sans-serif;
  transition: all 0.2s;
}

.channel .sub-btn:hover {
  transform: scale(1.05);
}

/* ===== Description ===== */
.desc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin: 14px 4px 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: #4a4d5e;
}

.desc .tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.desc .tags a {
  font-size: 12px;
  font-weight: 600;
  color: var(--purple);
}

/* ===== Comments ===== */
.comments {
  margin: 18px 4px 0;
}

.comments h3 {
  font-size: 15px;
  margin-bottom: 12px;
}

.cmt {
  display: flex;
  gap: 11px;
  margin-bottom: 14px;
}

.cmt .ca {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  font-family: 'Sora', sans-serif;
  background: var(--grad);
}

.cmt .ctext .cn {
  font-size: 13px;
  font-weight: 700;
}

.cmt .ctext .cn small {
  color: var(--muted);
  font-weight: 400;
  margin-left: 6px;
}

.cmt .ctext p {
  font-size: 13px;
  color: #4a4d5e;
  margin-top: 2px;
  line-height: 1.5;
}

/* ===== Sidebar — up next ===== */
.side h3 {
  font-size: 15px;
  margin: 0 0 12px 4px;
}

.snav {
  display: flex;
  gap: 11px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px;
  margin-bottom: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.snav:hover {
  box-shadow: 0 6px 16px rgba(94, 84, 170, 0.14);
  transform: translateY(-2px);
}

.snav .st {
  width: 120px;
  flex-shrink: 0;
  aspect-ratio: 16/9;
  border-radius: 8px;
  background: var(--tb, var(--grad));
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.snav .st img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.snav .st .pl {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--purple);
  display: grid;
  place-items: center;
  font-size: 12px;
  z-index: 2;
}

.snav .st .d {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(20, 20, 35, 0.82);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  z-index: 2;
}

.snav .si h4 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.snav .si .ssub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
}

/* ===== Footer ===== */
footer {
  background: var(--ink);
  color: #c9c8d6;
  text-align: center;
  padding: 26px 18px;
  margin-top: 36px;
  font-size: 13px;
}

footer .fbrand {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  color: #fff;
  font-size: 18px;
  margin-bottom: 6px;
}

footer .flinks {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 12px 0;
  flex-wrap: wrap;
}

footer .flinks a {
  color: #a9a8bd;
  font-size: 12.5px;
}

footer .flinks a:hover {
  color: #fff;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
  header {
    padding: 10px 12px;
  }

  .topbar {
    gap: 10px;
  }

  .brand {
    font-size: 18px;
  }

  .brand .logo {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }

  .search {
    border-radius: 25px;
  }

  .search input {
    padding: 7px 12px;
    font-size: 13px;
  }

  .avatar {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .navchips {
    padding: 10px 12px;
    gap: 6px;
  }

  .chip {
    padding: 6px 12px;
    font-size: 12px;
  }

  main {
    padding: 12px;
  }

  .sec-head {
    margin: 18px 2px 10px;
  }

  .sec-head h2 {
    font-size: 16px;
  }

  .vcard {
    border-radius: 10px;
  }

  .vtitle {
    font-size: 18px;
    margin: 12px 2px 6px;
  }

  .vstats {
    font-size: 12px;
  }

  .actions {
    gap: 6px;
    margin: 10px 2px;
  }

  .act {
    padding: 6px 11px;
    font-size: 12px;
    border-radius: 18px;
  }

  .channel {
    padding: 10px;
    margin: 0 2px;
  }

  .channel .ch {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .channel .cname {
    font-size: 13px;
  }

  .channel .csub {
    font-size: 11px;
  }

  .channel .sub-btn {
    padding: 7px 14px;
    font-size: 12px;
  }

  .desc {
    padding: 11px;
    margin: 10px 2px 0;
    font-size: 12.5px;
  }

  .comments {
    margin: 12px 2px 0;
  }

  .comments h3 {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .cmt {
    gap: 9px;
    margin-bottom: 12px;
  }

  .cmt .ca {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }

  .cmt .ctext .cn {
    font-size: 12px;
  }

  .cmt .ctext p {
    font-size: 12px;
  }

  .browse {
    padding: 12px;
    margin-top: 18px;
  }

  .browse h2 {
    font-size: 15px;
    margin-bottom: 3px;
  }

  .browse .hint {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .tag-row {
    gap: 6px;
  }

  .tag {
    font-size: 11.5px;
    padding: 5px 10px;
  }
}

@media (max-width: 480px) {
  .topbar {
    gap: 8px;
  }

  .brand {
    font-size: 16px;
  }

  .search input {
    font-size: 12px;
  }

  .search button {
    font-size: 13px;
  }

  .sec-head {
    margin: 16px 0 10px;
  }

  .sec-head h2 {
    font-size: 15px;
  }

  .sec-head .badge {
    font-size: 10px;
    padding: 2px 7px;
  }

  main {
    padding: 10px;
  }

  .rail .vcard {
    flex: 0 0 200px;
  }

  .vcard {
    border-radius: 8px;
  }

  .vinfo h3 {
    font-size: 13px;
  }

  .vinfo .sub {
    font-size: 11px;
  }

  .vtitle {
    font-size: 16px;
    margin: 10px 0 5px;
  }

  .actions {
    gap: 5px;
    margin: 8px 0;
  }

  .act {
    padding: 6px 10px;
    font-size: 11px;
  }

  .channel {
    padding: 8px;
    margin: 0;
    border-radius: 10px;
  }

  .channel .ch {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .channel .cname {
    font-size: 12px;
  }

  .channel .csub {
    font-size: 10px;
  }

  .channel .sub-btn {
    padding: 6px 12px;
    font-size: 11px;
    margin-left: 8px;
  }

  .desc {
    padding: 10px;
    margin: 10px 0 0;
    font-size: 12px;
  }

  footer {
    padding: 20px 12px;
    font-size: 12px;
  }

  footer .fbrand {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .flinks {
    gap: 10px;
  }

  .flinks a {
    font-size: 11px;
  }
}

/* ===== Animations ===== */
.vcard,
.browse {
  animation: rise 0.5s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ===== WP specific ===== */
.wp-block-image img {
  max-width: 100%;
  height: auto;
}

.post-content {
  background: var(--card);
  border-radius: 14px;
  padding: 16px;
  margin: 14px 4px 0;
}
