/* =========================================================
   CloneTube - Stylesheet utama
   Struktur: Variabel, Reset, Layout (Header/Sidebar), Komponen,
             Halaman spesifik (Watch, Channel, Admin), Responsive
   ========================================================= */

:root {
  --yt-red: #ff0000;
  --yt-dark: #0f0f0f;
  --yt-black: #030303;
  --text-primary: #0f0f0f;
  --text-secondary: #606060;
  --bg-body: #ffffff;
  --bg-hover: #f2f2f2;
  --bg-gray: #f9f9f9;
  --border-color: #e5e5e5;
  --sidebar-width: 240px;
  --sidebar-collapsed-width: 72px;
  --header-height: 56px;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }

/* Ikon inline SVG (Google Material Icons & Simple Icons) */
.mi, .brand-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  color: var(--text-primary);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select, button { font-family: inherit; font-size: 14px; }

.text-muted { color: var(--text-secondary); }
.hidden { display: none !important; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
}

.header-left, .header-right { display: flex; align-items: center; gap: 8px; }
.header-center { flex: 1; display: flex; justify-content: center; padding: 0 16px; }

.icon-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-primary);
}
.icon-btn:hover { background: var(--bg-hover); }

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-left: 4px;
}
.logo .logo-icon {
  display: flex;
  align-items: center;
}

.search-form {
  display: flex;
  width: 100%;
  max-width: 640px;
}
.search-form input[type="text"] {
  flex: 1;
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 20px 0 0 20px;
  outline: none;
  border-right: none;
}
.search-form input[type="text"]:focus { border-color: #1c62b9; }
.search-form button {
  width: 64px;
  border: 1px solid #ccc;
  border-left: none;
  background: var(--bg-gray);
  border-radius: 0 20px 20px 0;
  font-size: 18px;
}
.search-form button:hover { background: var(--bg-hover); }

.btn-upload {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  border: none;
  background: var(--bg-gray);
  font-weight: 500;
}
.btn-upload:hover { background: var(--bg-hover); }

.header-avatar-link { display: flex; align-items: center; }

.search-icon-mobile { display: none; }
.mobile-search-bar {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0;
  background: #fff;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
  z-index: 999;
}
body.show-mobile-search .mobile-search-bar { display: block; }
.mobile-search-bar .search-form { max-width: 100%; }

.btn-signin {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #ccc;
  color: #065fd4;
  border-radius: 20px;
  padding: 7px 14px;
  font-weight: 500;
  background: #fff;
}
.btn-signin:hover { background: #e7f1fd; }

/* =========================================================
   AVATAR (lingkaran inisial, pengganti foto profil)
   ========================================================= */
.avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  flex-shrink: 0;
  user-select: none;
}
.avatar-sm { width: 28px; height: 28px; font-size: 12px; }
.avatar-md { width: 36px; height: 36px; font-size: 15px; }
.avatar-lg { width: 48px; height: 48px; font-size: 18px; }
.avatar-xl { width: 88px; height: 88px; font-size: 32px; }

/* =========================================================
   SIDEBAR
   ========================================================= */
.sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: #fff;
  overflow-y: auto;
  padding: 12px 0;
  transition: transform .2s ease, width .2s ease;
  z-index: 900;
}
.sidebar-section {
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  margin-bottom: 8px;
}
.sidebar-section:last-child { border-bottom: none; }
.sidebar-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 24px;
  text-transform: uppercase;
}
.sidebar a.sidebar-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 24px;
  border-radius: 0 20px 20px 0;
  font-size: 14px;
  white-space: nowrap;
}
.sidebar a.sidebar-link.active { background: var(--bg-gray); font-weight: 700; }
.sidebar a.sidebar-link:hover { background: var(--bg-hover); }
.sidebar .icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

body.sidebar-collapsed .sidebar { width: var(--sidebar-collapsed-width); }
body.sidebar-collapsed .sidebar .label,
body.sidebar-collapsed .sidebar .sidebar-title { display: none; }
body.sidebar-collapsed .sidebar a.sidebar-link { justify-content: center; padding: 12px 4px; flex-direction: column; gap: 4px; }
body.sidebar-collapsed .main-wrapper { margin-left: var(--sidebar-collapsed-width); }

/* =========================================================
   MAIN WRAPPER / LAYOUT
   ========================================================= */
.main-wrapper {
  margin-left: var(--sidebar-width);
  margin-top: var(--header-height);
  padding: 20px 24px 60px;
  min-height: calc(100vh - var(--header-height));
  transition: margin-left .2s ease;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-height);
  background: rgba(0,0,0,.4);
  z-index: 800;
}
body.sidebar-mobile-open .sidebar-overlay { display: block; }

/* =========================================================
   CATEGORY CHIPS
   ========================================================= */
.category-chips {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.category-chips::-webkit-scrollbar { height: 4px; }
.chip {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--bg-gray);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
}
.chip:hover { background: var(--bg-hover); }
.chip.active { background: var(--text-primary); color: #fff; }

/* =========================================================
   VIDEO GRID & CARD
   ========================================================= */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px 16px;
}

.video-card { display: block; }
.thumb-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* rasio 16:9 */
  background: #eee;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 8px;
}
.thumb-wrapper img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-duration-badge {
  position: absolute;
  bottom: 6px; right: 6px;
  background: rgba(0,0,0,.8);
  color: #fff;
  font-size: 11px;
  padding: 2px 4px;
  border-radius: 4px;
}
.video-status-badge {
  position: absolute;
  top: 6px; left: 6px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
}
.status-pending { background: #f2a600; }
.status-approved { background: #2e9e4c; }
.status-rejected { background: #c0392b; }

.video-card-body { display: flex; gap: 10px; }
.video-card-info { flex: 1; min-width: 0; }
.video-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta, .channel-name-link { font-size: 13px; color: var(--text-secondary); }
.channel-name-link:hover { color: var(--text-primary); }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}
.empty-state .icon { margin-bottom: 12px; color: #ccc; }

/* =========================================================
   ALERTS / FLASH MESSAGES
   ========================================================= */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}
.alert-success { background: #e6f4ea; color: #1e7e34; border: 1px solid #b7e1c0; }
.alert-error { background: #fdecea; color: #c0392b; border: 1px solid #f5c6c0; }
.alert-info { background: #e8f0fe; color: #1a56b0; border: 1px solid #c5d9f7; }

/* =========================================================
   FORM / AUTH PAGES
   ========================================================= */
.auth-wrapper {
  max-width: 420px;
  margin: 40px auto;
  padding: 32px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}
.auth-wrapper h1 { font-size: 22px; margin-bottom: 4px; }
.auth-wrapper p.subtitle { color: var(--text-secondary); margin-bottom: 20px; font-size: 14px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: #065fd4; }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-hint { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 20px;
  border: none;
  font-weight: 500;
  font-size: 14px;
}
.btn-block { width: 100%; }
.btn-primary { background: var(--yt-red); color: #fff; }
.btn-primary:hover { background: #d90000; }
.btn-secondary { background: var(--bg-gray); color: var(--text-primary); }
.btn-secondary:hover { background: var(--bg-hover); }
.btn-outline { background: #fff; border: 1px solid #ccc; color: var(--text-primary); }
.btn-outline:hover { background: var(--bg-hover); }
.btn-dark { background: var(--text-primary); color: #fff; }
.btn-dark:hover { background: #272727; }
.btn-danger { background: #fdecea; color: #c0392b; }
.btn-danger:hover { background: #f8d7d3; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.auth-footer { margin-top: 16px; font-size: 14px; text-align: center; color: var(--text-secondary); }
.auth-footer a { color: #065fd4; font-weight: 500; }

.registration-closed {
  text-align: center;
  padding: 30px 10px;
  color: var(--text-secondary);
}
.registration-closed .icon { margin-bottom: 10px; color: #ccc; }

/* =========================================================
   UPLOAD PAGE
   ========================================================= */
.upload-wrapper {
  max-width: 640px;
  margin: 0 auto;
}
.upload-wrapper h1 { margin-bottom: 20px; }
.file-drop {
  border: 2px dashed #ccc;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* =========================================================
   WATCH PAGE
   ========================================================= */
.watch-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  max-width: 1600px;
}
.watch-main { flex: 1 1 65%; min-width: 0; }
.watch-side { flex: 1 1 35%; max-width: 400px; }

.video-player-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}
.video-player-wrapper video { width: 100%; height: 100%; background: #000; }

.watch-title { font-size: 20px; font-weight: 600; margin: 4px 0 12px; }

.channel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}
.channel-bar-left { display: flex; align-items: center; gap: 12px; }
.channel-bar-name { font-weight: 600; font-size: 15px; }
.channel-bar-sub { font-size: 12px; color: var(--text-secondary); }

.channel-bar-actions { display: flex; align-items: center; gap: 10px; }

.like-dislike-group {
  display: flex;
  align-items: stretch;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid transparent;
  background: var(--bg-gray);
}
.like-btn, .dislike-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  background: transparent;
  font-weight: 500;
  font-size: 14px;
}
.like-btn { border-right: 1px solid #ccc; }
.like-btn:hover, .dislike-btn:hover { background: var(--bg-hover); }
.like-btn.active, .dislike-btn.active { color: #065fd4; font-weight: 700; }

.btn-subscribe { background: var(--text-primary); color: #fff; border-radius: 20px; padding: 9px 18px; border: none; font-weight: 600; }
.btn-subscribe:hover { background: #272727; }
.btn-subscribe.subscribed { background: var(--bg-gray); color: var(--text-primary); }
.btn-subscribe.subscribed:hover { background: var(--bg-hover); }

.video-description-box {
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 20px;
  white-space: pre-line;
  word-break: break-word;
}
.video-description-box .meta-row { font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }

.comments-section h3 { font-size: 16px; margin-bottom: 16px; }
.comment-form { display: flex; gap: 12px; margin-bottom: 24px; align-items: flex-start; }
.comment-form textarea {
  flex: 1;
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 6px 2px;
  resize: none;
  outline: none;
  min-height: 36px;
}
.comment-form textarea:focus { border-bottom-color: var(--text-primary); }
.comment-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

.comment-item { display: flex; gap: 12px; margin-bottom: 20px; }
.comment-body { flex: 1; min-width: 0; }
.comment-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.comment-author { font-weight: 600; font-size: 13px; }
.comment-time { font-size: 12px; color: var(--text-secondary); }
.comment-text { font-size: 14px; line-height: 1.4; word-break: break-word; }
.comment-delete { font-size: 12px; color: var(--text-secondary); background: none; border: none; margin-top: 4px; padding: 0; }
.comment-delete:hover { color: var(--yt-red); text-decoration: underline; }

.related-video-item {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.related-video-item .thumb-wrapper { width: 168px; flex-shrink: 0; margin-bottom: 0; border-radius: 8px; }
.related-video-item .video-title { font-size: 14px; -webkit-line-clamp: 2; }
.related-video-item .video-meta { font-size: 12px; }

/* =========================================================
   CHANNEL PAGE
   ========================================================= */
.channel-header {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}
.channel-header-info h1 { font-size: 24px; margin: 0 0 4px; }
.channel-header-info p { color: var(--text-secondary); font-size: 14px; margin: 2px 0; }
.channel-header-actions { margin-left: auto; }

.tab-bar { display: flex; gap: 24px; border-bottom: 1px solid var(--border-color); margin-bottom: 20px; }
.tab-bar .tab { padding: 12px 4px; font-weight: 500; color: var(--text-secondary); border-bottom: 2px solid transparent; }
.tab-bar .tab.active { color: var(--text-primary); border-bottom-color: var(--text-primary); }

/* =========================================================
   LIST PAGES: subscriptions, history
   ========================================================= */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.page-header h1 { font-size: 22px; margin: 0; }

.subscription-list { display: flex; flex-direction: column; gap: 4px; }
.subscription-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--border-color);
}
.subscription-item-info { flex: 1; min-width: 0; }
.subscription-item-info .name { font-weight: 600; }
.subscription-item-info .meta { font-size: 13px; color: var(--text-secondary); }

.history-list { display: flex; flex-direction: column; gap: 4px; }
.history-item {
  display: flex;
  gap: 14px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}
.history-item .thumb-wrapper { width: 200px; flex-shrink: 0; margin-bottom: 0; }
.history-item-info { flex: 1; min-width: 0; }
.history-item-time { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.history-item-actions { flex-shrink: 0; }

/* =========================================================
   ADMIN PANEL
   ========================================================= */
.admin-layout { display: flex; gap: 0; margin-top: var(--header-height); min-height: calc(100vh - var(--header-height)); }
.admin-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg-gray);
  padding: 20px 0;
  border-right: 1px solid var(--border-color);
}
.admin-sidebar h2 { font-size: 13px; text-transform: uppercase; color: var(--text-secondary); padding: 0 20px 10px; }
.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
}
.admin-sidebar a:hover { background: var(--bg-hover); }
.admin-sidebar a.active { background: #fff; color: var(--yt-red); border-right: 3px solid var(--yt-red); }
.admin-content { flex: 1; padding: 24px 32px; min-width: 0; }
.admin-content h1 { margin-top: 0; font-size: 22px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { border: 1px solid var(--border-color); border-radius: var(--radius); padding: 18px; }
.stat-card .stat-number { font-size: 28px; font-weight: 700; }
.stat-card .stat-label { color: var(--text-secondary); font-size: 13px; margin-top: 4px; }

.admin-table-wrapper { overflow-x: auto; border: 1px solid var(--border-color); border-radius: var(--radius); }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.admin-table th, table.admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
table.admin-table th { background: var(--bg-gray); font-weight: 600; white-space: nowrap; }
table.admin-table tr:last-child td { border-bottom: none; }
table.admin-table .thumb-cell { width: 90px; }
table.admin-table .thumb-cell img { width: 80px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge-pending { background: #fff3cd; color: #8a6100; }
.badge-approved { background: #d4edda; color: #1e7e34; }
.badge-rejected { background: #f8d7da; color: #c0392b; }
.badge-active { background: #d4edda; color: #1e7e34; }
.badge-banned { background: #f8d7da; color: #c0392b; }
.badge-admin { background: #e0d4f7; color: #5e35b1; }
.badge-user { background: #e5e5e5; color: #444; }

.action-group { display: flex; gap: 6px; flex-wrap: wrap; }

.filter-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-tabs a {
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--bg-gray);
  font-size: 13px;
  font-weight: 500;
}
.filter-tabs a.active { background: var(--text-primary); color: #fff; }

.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }

.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input[type="text"] {
  padding: 9px 12px; border: 1px solid #ccc; border-radius: 8px; outline: none;
}

/* Toggle switch untuk pengaturan sistem */
.toggle-switch { position: relative; display: inline-block; width: 46px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background-color: #ccc; border-radius: 24px; transition: .2s;
}
.toggle-slider::before {
  position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px;
  background-color: #fff; border-radius: 50%; transition: .2s;
}
.toggle-switch input:checked + .toggle-slider { background-color: #2e9e4c; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--border-color); gap: 16px;
}
.settings-row:last-child { border-bottom: none; }
.settings-row-info .title { font-weight: 600; margin-bottom: 4px; }
.settings-row-info .desc { font-size: 13px; color: var(--text-secondary); }

.card-box { border: 1px solid var(--border-color); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .watch-layout { flex-direction: column; }
  .watch-side { max-width: 100%; width: 100%; }
  .related-video-item .thumb-wrapper { width: 140px; }
}

@media (max-width: 900px) {
  .header-center { display: none; }
  .sidebar {
    transform: translateX(-100%);
    width: 260px;
  }
  body.sidebar-mobile-open .sidebar { transform: translateX(0); box-shadow: 2px 0 8px rgba(0,0,0,.2); }
  .main-wrapper, body.sidebar-collapsed .main-wrapper { margin-left: 0; }
  .admin-layout { flex-direction: column; margin: 0; }
  .admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); }
  .admin-sidebar a.active { border-right: none; border-left: 3px solid var(--yt-red); }
}

@media (max-width: 700px) {
  .main-wrapper { padding: 16px; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px 10px; }
  .search-icon-mobile { display: flex; }
  .btn-upload span.label, .btn-signin span.label { display: none; }
  .channel-header { flex-direction: column; align-items: flex-start; }
  .channel-header-actions { margin-left: 0; }
  .history-item .thumb-wrapper { width: 120px; }
  .comment-form, .comment-item { gap: 8px; }
}

@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr 1fr; }
  .logo span.logo-text { display: none; }
}
