/* =====================================================
   ROOT / RESET
===================================================== */
:root {
  --primary: #0d6efd;
  --danger: #ff4b2b;
  --dark: #1f2937;
  --light: #ffffff;
  --bg: #f4f6f9;
  --muted: #6b7280;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: #111827;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* =====================================================
   HEADER - Professional Design
===================================================== */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    /* 🔽 subtle bottom shadow */
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);

    transition: all 0.3s ease;
}


.header-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Logo - Professional Style */
.logo{
  display:flex;
  align-items:center;
  text-decoration:none;
  margin:0;
  padding:0;
  flex-shrink:0;
  max-width:100%;
}

.logo img{
  display:block;
  height:2.2em;         
  width:auto;           
  max-width:100%;
  object-fit:contain;
}



/* Navigation - Desktop */
.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
    padding: 8px 0;
    position: relative;
    transition: color 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Dropdown - Desktop */
.dropdown {
    position: relative;
}

.dropdown > span {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.dropdown > span:hover {
    color: var(--primary);
}

.dropdown > span::after {
    content: '├втАУ┬╛';
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown.open > span::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -12px;
    background: #ffffff;
    min-width: 200px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    border: 1px solid var(--gray-200);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(6px);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--gray-700);
    transition: all 0.2s ease;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: var(--gray-50);
    color: var(--primary);
    padding-left: 24px;
}

/* Search Form - Desktop */
.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: 16px;
}

.search-form input {
    padding: 10px 18px;
    border: 1px solid var(--gray-300);
    border-radius: 24px;
    font-size: 14px;
    width: 200px;
    transition: all 0.3s ease;
    background: var(--gray-50);
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    width: 240px;
    background: white;
}

.search-btn {
    padding: 10px 22px;
    border: none;
    border-radius: 24px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: #dc2626; /* red */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Search Icon - Mobile */
.search-icon {
    display: none;
    font-size: 20px;
    color: var(--gray-700);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    background: none;
    border: none;
    z-index: 1001;
}

.search-icon:hover {
    background: var(--gray-100);
}

/* Mobile Menu Toggle */
.menu-toggle { 
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 34px;          
    height: 26px;         
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px;         
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 4px;          
    background-color: var(--gray-700);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
}


.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(2px, -1px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-12px);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(2px, 1px);
}


/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100%;
    background: #ffffff;
    padding: 24px;
    overflow-y: auto;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.15);
}

.mobile-menu.active .mobile-menu-content {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.mobile-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-logo-icon {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.close-menu { 
    font-size: 24px;
    color: var(--gray-700);
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
    border-radius: 6px;
    transition: all 0.2s ease;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 40px; 
    margin-left: auto;      /* ЁЯФе ржбрж╛ржи ржжрж┐ржХрзЗ ржарзЗрж▓рзЗ ржжрзЗржмрзЗ */
}

.close-menu:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav a {
    display: block;
    padding: 14px 18px;
    font-size: 16px;
    color: var(--gray-700);
    border-radius: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: var(--gray-50);
    color: var(--primary);
    padding-left: 22px;
}

.mobile-dropdown {
    margin: 8px 0;
}

.mobile-dropdown-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    font-size: 16px;
    color: var(--gray-700);
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.2s ease;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.mobile-dropdown-title:hover {
    background: var(--gray-50);
}

.mobile-dropdown-title::after {
    content: '├втАУ┬╛';
    font-size: 12px;
    transition: transform 0.3s ease;
}

.mobile-dropdown.open .mobile-dropdown-title::after {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    display: none;
    padding-left: 20px;
    margin-top: 8px;
}

.mobile-dropdown.open .mobile-dropdown-menu {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-dropdown-menu a {
    padding: 12px 18px;
    font-size: 15px;
    color: var(--gray-700);
    border-radius: 8px;
}

.mobile-dropdown-menu a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

/* Mobile Search */
.mobile-search {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.mobile-search input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    font-size: 15px;
    margin-bottom: 12px;
    background: var(--gray-50);
}

.mobile-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.mobile-search button {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mobile-search button:hover {
    background: var(--primary-dark);
}

/* Search Popup */
.search-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    padding: 20px;
}

.search-popup.active {
    opacity: 1;
    visibility: visible;
}

.search-popup-content {
    background: #ffffff;
    padding: 40px 30px 30px;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-popup.active .search-popup-content {
    transform: translateY(0) scale(1);
}

.search-popup h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #1f2937;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

.search-popup h3 span {
    display: block;
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
    margin-top: 6px;
}

.search-popup form {
    width: 100%;
}

.search-popup input[type="text"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #f9fafb;
    color: #111827;
    font-family: inherit;
}

.search-popup input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-popup input[type="text"]::placeholder {
    color: #9ca3af;
}

.search-popup button[type="submit"] {
    width: 100%;
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    letter-spacing: 0.5px;
}

.search-popup button[type="submit"]:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

.close-search {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    background: none;
    border: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    z-index: 1;
}

.close-search:hover {
    background: #f3f4f6;
    color: #111827;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-popup {
        padding: 16px;
    }
    
    .search-popup-content {
        padding: 32px 20px 24px;
    }
    
    .search-popup h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .search-popup input[type="text"] {
        padding: 14px 18px;
        font-size: 15px;
    }
    
    .search-popup button[type="submit"] {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .search-popup-content {
        padding: 28px 16px 20px;
        border-radius: 12px;
    }
    
    .search-popup h3 {
        font-size: 16px;
    }
    
    .search-popup h3 span {
        font-size: 13px;
    }
    
    .close-search {
        top: 12px;
        right: 12px;
        font-size: 20px;
        width: 32px;
        height: 32px;
    }
}

/* =====================================================
   RESPONSIVE HEADER
===================================================== */

/* Tablet */
@media (max-width: 992px) {
    .main-nav {
        gap: 16px;
    }
    
    .search-form input {
        width: 180px;
    }
    
    .search-form input:focus {
        width: 200px;
    }
}

/* Mobile/Tablet */
@media (max-width: 768px) {
    .header-wrap {
        padding: 12px 16px;
    }
    
    .main-nav,
    .search-form {
        display: none;
    }
    
    .menu-toggle,
    .search-icon {
        display: flex;
    }
    
    .header-actions {
        gap: 12px;
    }
    
    .logo {
        font-size: 22px;
    }
    
    .logo-icon {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }
    
    body {
        padding-top: 0;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .header-wrap {
        padding: 10px 12px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .menu-toggle {
        width: 32px;
        height: 24px;
    }
    
    .mobile-menu-content {
        width: 280px;
        padding: 20px;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .mobile-menu-content {
        width: 100%;
    }
    
    .logo {
        font-size: 18px;
    }
}



.category-desc{
  background:#fff;
  padding:14px 18px;
  margin:14px 0 18px;
  border-radius:12px;
  font-size:15px;
  line-height:1.6;
  color:#444;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}

/* =====================================================
   MAIN CONTAINER
===================================================== */
.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 16px;
  width: 100%;
}

/* =====================================================
   TITLE / BREADCRUMB
===================================================== */
.page-title,
.play-title,
h1 {
  max-width: 1200px;
  margin: 12px auto 6px;
  background: #fff;
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 22px;
  font-weight: 700;
  border-left: 4px solid var(--primary);
}

h1 {
  font-size: 26px;
  margin-bottom: 16px;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  background: #fff;
  border-left: 4px solid var(--danger);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}

h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  background: #f9fafb;
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
}

h4 {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  background: #f1f5f9;
  border-left: 3px solid #9ca3af;
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 8px;
}

.breadcrumbs{
  max-width:1200px;
  margin:8px auto 16px;
  padding:0 16px;
  font-size:13px;
  line-height:1.4;

  display:flex;
  flex-wrap:wrap;
  gap:6px;

  color:#374151; /* ❌ var(--muted) বাদ */
}

.breadcrumbs a{
  color:#1d4ed8; /* WCAG pass blue */
  font-weight:500;
}

.breadcrumbs a:hover{
  text-decoration:underline;
  color:#1e40af;
}

.breadcrumbs strong{
  color:#111827;   /* almost black */
  font-weight:600;
}


/* =====================================================
   PAGE LAYOUT
===================================================== */
.page-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 10px;
  align-items: start;
}

/* =====================================================
   TAG LAYOUT
===================================================== */
.tags-wrap{
  margin-top:30px;
  padding:18px;
  background:#f9fafb;
  border-radius:14px;
}

.tags-wrap h2{
  font-size:18px;
  font-weight:700;
  margin-bottom:12px;
}

.tags-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.tag-chip{
  display:inline-block;
  padding:8px 14px;
  background:#e0f2fe;
  color:#0369a1;
  font-size:14px;
  font-weight:600;
  border-radius:999px;
  text-decoration:none;
  transition:.2s;
}

.tag-chip:hover{
  background:#bae6fd;
  color:#075985;
}

 

/* =====================================================
   VIDEO SECTION
===================================================== */
.play-top {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.col-video {
  width: 300px;
  flex-shrink: 0;
}

.video-box {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}

.video-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Fullscreen fix */
video:fullscreen,
video:-webkit-full-screen {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #000 !important;
}

/* Play icon overlay */
.play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: #fff;
  background: rgba(0, 0, 0, .35);
  z-index: 3;
  cursor: pointer;
  transition: opacity .25s ease;
}

.video-playing .play-icon {
  display: none;
}
.video-wrap{
  position:relative;
  background:#000;
  border-radius:12px;
  overflow:hidden;
}

/* video hidden initially */
.video-el{
  width:100%;
  height:auto;
  visibility:hidden;   /* 🔑 key */
}

/* overlay */
.video-thumb-overlay{
  position:absolute;
  inset:0;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.video-thumb-overlay img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

/* dark layer */
.video-thumb-overlay::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.35);
}

/* play */
.play-btn{
  position:relative;
  z-index:2;
  font-size:60px;
  color:#fff;
}

/* spinner */
.loading-spinner{
  display:none;
  position:relative;
  z-index:2;
  width:48px;
  height:48px;
  border:4px solid rgba(255,255,255,.4);
  border-top-color:#fff;
  border-radius:50%;
  animation:spin 1s linear infinite;
}

@keyframes spin{
  to{transform:rotate(360deg);}
}

/* states */
.video-wrap.loading .play-btn{ display:none; }
.video-wrap.loading .loading-spinner{ display:block; }

.video-wrap.playing .video-thumb-overlay{ display:none; }
.video-wrap.playing .video-el{ visibility:visible; }

/* =====================================================
   META SECTION
===================================================== */
.meta-col {
  min-width: 0;
  width: 100%;
  background: #fff;
  padding: 14px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meta-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  font-size: 14px;
  padding: 7px 0;
  border-bottom: 1px solid #eef0f3;
}

.meta-row:last-child {
  border-bottom: none;
}

/* =====================================================
   BUTTONS
===================================================== */
.download-btn {
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  color: #fff;
  padding: 12px;
  border-radius: 30px;
  text-align: center;
  font-weight: 600;
  display: block;
  transition: transform 0.2s ease;
}

.download-btn:hover {
  transform: translateY(-2px);
}

.next-btn {
  background: #1f2937;
  color: #fff;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  display: block;
  transition: background 0.2s ease;
}

.next-btn:hover {
  background: #374151;
}

.viewall-btn {
  display: block;
  margin-top: 10px;
  padding: 11px;
  text-align: center;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  background: #eef2ff;
  color: #1f2937;
  border: 1px solid #dbeafe;
  transition: all 0.2s ease;
}

.viewall-btn:hover {
  background: #e0e7ff;
  color: #0d6efd;
}

/* =====================================================
   RELATED VIDEOS
===================================================== */
.related-wrap {
  margin-top: 24px;
}

.related-inside {
  grid-column: 1 / span 2;
  margin-top: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.video-card {
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  color: #111;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* =========================
   THUMB FIX  LANDSCAPE + VERTICAL
========================= */

.rele-title{
  font-size:13.5px;
  font-weight:600;
  color:#0f172a;
  margin-top:8px;
  line-height:1.35;
  letter-spacing:.1px;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-overflow:ellipsis;

  min-height:36px;
  transition:color .2s ease;
}

.video-card:hover .rele-title{
  color:#2563eb; /* hover color */
}

.thumb-wrap{
  position:relative;
  width:100%;
  aspect-ratio:9 / 16;
  overflow:hidden;
  border-radius:10px;
  background:#000; /* gap hide */
}

.thumb-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;        /* ├░┼╕тАЭ┬е main fix */
  object-position:center;  /* center crop */
  display:block;
}


/* Video card meta */
.video-meta {
  margin-top: 6px;
  font-size: 14px;
  color: #6b7280;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.video-meta .video-size {
  font-weight: 600;
  color: #111827;
}

.video-meta .video-date {
  color: #6b7280;
  position: relative;
  padding-left: 10px;
}

.video-meta .video-date::before {
  content: "├втВм┬в";
  position: absolute;
  left: 0;
  color: #c7c9ce;
}

/* =====================================================
   SIDEBAR
===================================================== */
.sidebar {
  width: 100%;
  max-width: 400px;
}

.sidebar-box {
  background: #fff;
  padding: 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

/* Sidebar list */
.sidebar-list {
  display: flex;
  flex-direction: column;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.2s ease;
}

.sidebar-item:hover {
  background: #f9fafb;
}

.sidebar-item:last-child {
  border-bottom: none;
}

.sidebar-item img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.sidebar-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.sidebar-title {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.sidebar-item:hover .sidebar-title {
  color: var(--primary);
}

.sidebar-meta {
  font-size: 12px;
  color: var(--muted);
}

/* =====================================================
   CATEGORY
===================================================== */
.category-grid {
  max-width: 1200px;
  margin: 10px auto 30px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* =====================================================
   PAGINATION
===================================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 30px 0;
}

.pagination a {
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #111;
  font-size: 14px;
  transition: all 0.2s ease;
}

.pagination a:hover {
  background: #f3f4f6;
}

.pagination a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* =====================================================
   SMALL DESC
===================================================== */
.small-desc {
  max-width: 1200px;
  margin: 10px auto;
  background: #fff;
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  line-height: 1.6;
}

.small-desc:empty {
  display: none;
}

/* =====================================================
   RESPONSIVE LAYOUT
===================================================== */

/* Tablet Landscape */
@media (max-width: 1024px) {
  .page-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .sidebar {
    max-width: 100%;
    grid-row: 2;
  }
  
  .play-top {
    grid-template-columns: 250px 1fr;
    gap: 20px;
  }
  
  .col-video {
    width: 250px;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }
  
  .play-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .col-video {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  
  .video-box {
    max-width: 280px;
    margin: 0 auto;
  }
  
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .sidebar-box {
    padding: 12px;
  }
  
  .page-title,
  .play-title,
  h1 {
    font-size: 20px;
    padding: 12px 16px;
    margin: 10px auto 6px;
  }
  
  h2 {
    font-size: 18px;
    padding: 10px 12px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  
  .play-top {
    gap: 16px;
  }
  
  .col-video {
    max-width: 220px;
  }
  
  .video-box {
    max-width: 220px;
    border-radius: 12px;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .meta-col {
    padding: 12px;
  }
  
  .meta-row {
    grid-template-columns: 18px 1fr auto;
    font-size: 13px;
    gap: 8px;
    padding: 6px 0;
  }
  
  .sidebar-item {
    padding: 10px 0;
    gap: 10px;
  }
  
  .sidebar-item img {
    width: 48px;
    height: 48px;
  }
  
  .page-title,
  .play-title,
  h1 {
    font-size: 18px;
    padding: 10px 14px;
  }
  
  h2 {
    font-size: 16px;
    padding: 8px 10px;
  }
  
  .download-btn,
  .next-btn,
  .viewall-btn {
    padding: 10px;
    font-size: 14px;
  }
}

/* Small Mobile */
@media (max-width: 320px) {
  .container {
    padding: 0 8px;
  }
  
  .col-video {
    max-width: 200px;
  }
  
  .video-box {
    max-width: 200px;
  }
  
  .meta-col {
    padding: 10px;
  }
  
  .meta-row {
    font-size: 12px;
    gap: 6px;
  }
  
  .sidebar-item {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .sidebar-item img {
    width: 76px;
    height: 76px;
  }
  
  .sidebar-text {
    text-align: center;
  }
  
  .page-title,
  .play-title,
  h1 {
    font-size: 16px;
    padding: 8px 12px;
  }
} 
/* =====================================================
   RESPONSIVE HEADER ADJUSTMENTS (769px to 1145px)
===================================================== */

/* Target the range between tablet and small desktop */
@media (min-width: 769px) and (max-width: 1145px) {
  /* Header adjustments */
  .header-wrap {
    padding: 12px 16px;
  }
  
  /* Logo size adjustment */
  .logo {
    font-size: 22px;
  }
  
  .logo-icon {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }
  
  /* Navigation adjustments */
  .main-nav {
    gap: 14px;
  }
  
  .main-nav a {
    font-size: 14px;
    padding: 6px 0;
  }
  
  /* Dropdown adjustments */
  .dropdown > span {
    font-size: 14px;
    padding: 6px 0;
  }
  
  .dropdown-menu {
    min-width: 180px;
    padding: 6px 0;
  }
  
  .dropdown-menu a {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  /* Search form adjustments */
  .search-form {
    margin-right: 12px;
  }
  
  .search-form input {
    width: 160px;
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .search-form input:focus {
    width: 180px;
  }
  
  .search-btn {
    padding: 8px 18px;
    font-size: 13px;
  }
  
  /* Header actions spacing */
  .header-actions {
    gap: 12px;
  }
}

/* Additional fine-tuning for narrower screens in this range */
@media (min-width: 769px) and (max-width: 992px) {
  .main-nav {
    gap: 12px;
  }
  
  .search-form input {
    width: 140px;
  }
  
  .search-form input:focus {
    width: 160px;
  }
}

/* Additional fine-tuning for wider screens in this range */
@media (min-width: 993px) and (max-width: 1145px) {
  .main-nav {
    gap: 16px;
  }
  
  .search-form input {
    width: 180px;
  }
  
  .search-form input:focus {
    width: 200px;
  }
}