/* ============================================
   YourTube Clone - Stylesheet
   YouTube-accurate dark & light theme
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f9f9f9;
  --bg-hover: #e5e5e5;
  --bg-active: #d6d6d6;
  --bg-chip: #f2f2f2;
  --bg-chip-active: #0f0f0f;
  --bg-search: #ffffff;
  --bg-search-border: #cccccc;
  --bg-search-focus: #1c62b9;
  --bg-header: rgba(255, 255, 255, 0.95);
  --bg-sidebar: #ffffff;
  --bg-overlay: #f2f2f2;
  --bg-desc: #f2f2f2;
  --text-primary: #0f0f0f;
  --text-secondary: #606060;
  --text-chip-active: #ffffff;
  --text-badge: #ffffff;
  --border-color: #e5e5e5;
  --border-search: #cccccc;
  --scrollbar-thumb: #cccccc;
  --scrollbar-track: transparent;
  --shadow-card: none;
  --red: #ff0000;
  --blue: #065fd4;
  --blue-hover: #0449a0;
  --avatar-purple: #7c3aed;
  --duration-bg: rgba(0, 0, 0, 0.8);
  --live-bg: #c00;
  --subscribe-bg: #0f0f0f;
  --subscribe-text: #fff;
  --like-bg: #f2f2f2;
  --icon-size: 24px;
  --header-height: 56px;
  --sidebar-width: 240px;
  --mini-sidebar-width: 72px;
  --transition: 0.2s ease;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
}

[data-theme="dark"] {
  --bg-primary: #0f0f0f;
  --bg-secondary: #272727;
  --bg-hover: #3f3f3f;
  --bg-active: #525252;
  --bg-chip: #272727;
  --bg-chip-active: #f1f1f1;
  --bg-search: #121212;
  --bg-search-border: #303030;
  --bg-search-focus: #3ea6ff;
  --bg-header: rgba(15, 15, 15, 0.95);
  --bg-sidebar: #0f0f0f;
  --bg-overlay: #272727;
  --bg-desc: #272727;
  --text-primary: #f1f1f1;
  --text-secondary: #aaaaaa;
  --text-chip-active: #0f0f0f;
  --text-badge: #ffffff;
  --border-color: #303030;
  --border-search: #303030;
  --scrollbar-thumb: #555555;
  --scrollbar-track: transparent;
  --subscribe-bg: #f1f1f1;
  --subscribe-text: #0f0f0f;
  --like-bg: #272727;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Roboto", "Arial", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; font-size: inherit; }
img { display: block; max-width: 100%; }
input { font-family: inherit; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: transparent; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb); }

/* ---------- App Layout ---------- */
#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.app-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ---------- Header ---------- */
.header {
  height: var(--header-height);
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-center {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 640px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  cursor: pointer;
}

.logo-icon {
  width: 32px;
  height: 22px;
  background: var(--red);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 16px;
  height: 16px;
  fill: white;
  margin-left: 2px;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

/* Header buttons */
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  position: relative;
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--bg-hover); }
.icon-btn svg { width: var(--icon-size); height: var(--icon-size); }

.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--red);
  color: var(--text-badge);
  font-size: 10px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--avatar-purple);
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-avatar svg { width: 18px; height: 18px; color: white; }

/* Search */
.search-form {
  display: flex;
  flex: 1;
  height: 40px;
}

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  border: 1px solid var(--border-search);
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  background: var(--bg-search);
  padding: 0 16px;
  transition: border-color var(--transition);
}
.search-input-wrap:focus-within {
  border-color: var(--bg-search-focus);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
}
.search-input::placeholder { color: var(--text-secondary); }

.search-clear {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}
.search-clear:hover { background: var(--bg-hover); }
.search-clear svg { width: 18px; height: 18px; color: var(--text-secondary); }

.search-btn {
  width: 64px;
  height: 40px;
  border: 1px solid var(--border-search);
  border-left: none;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  background: var(--bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.search-btn:hover { background: var(--bg-hover); }
.search-btn svg { width: 20px; height: 20px; color: var(--text-primary); }

.voice-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  transition: background var(--transition);
}
.voice-btn:hover { background: var(--bg-hover); }
.voice-btn svg { width: 20px; height: 20px; }

/* Mobile search */
.mobile-search-wrap {
  display: none;
  flex: 1;
  max-width: 640px;
}

/* Hide on desktop, show on mobile */
.md-hidden {
  display: none !important;
}
@media (max-width: 768px) {
  .md-hidden { display: flex !important; }
}

/* ---------- Sidebar (Full) ---------- */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  padding: 12px;
  transition: none;
}

.sidebar-section { margin-bottom: 12px; }

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  width: 100%;
  text-align: left;
  transition: background var(--transition);
  white-space: nowrap;
}
.sidebar-item:hover { background: var(--bg-hover); }
.sidebar-item.active { background: var(--bg-hover); font-weight: 600; }
.sidebar-item svg { width: var(--icon-size); height: var(--icon-size); flex-shrink: 0; }

.sidebar-label {
  padding: 8px 12px 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.sidebar-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 8px 0;
}

.sidebar-footer {
  padding: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.sidebar-footer a {
  margin-right: 8px;
}
.sidebar-footer a:hover { text-decoration: underline; }

/* ---------- Mini Sidebar ---------- */
.mini-sidebar {
  width: var(--mini-sidebar-width);
  min-width: var(--mini-sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  padding: 8px 0;
}

.mini-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 0;
  width: 100%;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  cursor: pointer;
}
.mini-item:hover { background: var(--bg-hover); }
.mini-item.active { background: var(--bg-hover); }
.mini-item svg { width: var(--icon-size); height: var(--icon-size); flex-shrink: 0; }
.mini-item span { font-size: 10px; line-height: 1.2; }

.mini-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 4px 12px;
}

/* ---------- Main Content ---------- */
.main-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ---------- Category Chips ---------- */
.chips-bar {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 10;
  overflow: hidden;
}

.chips-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.chips-scroll::-webkit-scrollbar { display: none; }

.chip {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  white-space: nowrap;
  background: var(--bg-chip);
  color: var(--text-primary);
  transition: all var(--transition);
  flex-shrink: 0;
  cursor: pointer;
  border: none;
}
.chip:hover { background: var(--bg-hover); }
.chip.active {
  background: var(--bg-chip-active);
  color: var(--text-chip-active);
  font-weight: 500;
}

/* ---------- Video Grid ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px 16px;
  padding: 24px 16px;
  overflow-y: auto;
  flex: 1;
}

@media (max-width: 640px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 20px 8px;
    padding: 16px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }
}

@media (min-width: 1400px) {
  .video-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1800px) {
  .video-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ---------- Video Card ---------- */
.video-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  text-align: left;
}

.video-card .thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-secondary);
}

.video-card .thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.video-card:hover .thumb-wrap img {
  transform: scale(1.05);
}

.video-card .duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: var(--duration-bg);
  color: var(--text-badge);
  font-size: 12px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
}

.video-card .duration.live {
  background: var(--live-bg);
  font-size: 11px;
  letter-spacing: 0.5px;
}

.video-card .info {
  display: flex;
  gap: 12px;
}

.video-card .channel-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--bg-secondary);
}

.video-card .meta {
  flex: 1;
  min-width: 0;
}

.video-card .title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-primary);
}

.video-card .channel-name {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.4;
}
.video-card .channel-name:hover { color: var(--text-primary); }

.video-card .stats {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ---------- Player Page ---------- */
.player-page {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex: 1;
}

.player-layout {
  display: flex;
  gap: 24px;
  padding: 24px 24px 80px;
  max-width: 1800px;
}

.player-main {
  flex: 1;
  min-width: 0;
}

.player-sidebar {
  width: 400px;
  flex-shrink: 0;
}

@media (max-width: 1200px) {
  .player-layout {
    flex-direction: column;
    padding: 16px 16px 80px;
  }
  .player-sidebar {
    width: 100%;
  }
}

/* Video Player */
.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.video-player iframe,
.video-player video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Video Info */
.video-title {
  font-size: 20px;
  font-weight: 600;
  margin-top: 16px;
  line-height: 1.3;
}

.video-channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.video-channel-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.video-channel-info img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
}

.video-channel-info .name {
  font-size: 14px;
  font-weight: 500;
}

.video-channel-info .subs {
  font-size: 12px;
  color: var(--text-secondary);
}

.subscribe-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--subscribe-bg);
  color: var(--subscribe-text);
  font-size: 14px;
  font-weight: 500;
  margin-left: 8px;
  transition: opacity var(--transition);
}
.subscribe-btn:hover { opacity: 0.85; }

.video-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.action-group {
  display: flex;
  align-items: center;
  background: var(--like-bg);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition);
  white-space: nowrap;
}
.action-btn:hover { background: var(--bg-hover); }
.action-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.action-btn.liked { color: var(--blue); }

.action-divider {
  width: 1px;
  height: 24px;
  background: var(--border-color);
}

.outline-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--like-bg);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition);
}
.outline-btn:hover { background: var(--bg-hover); }
.outline-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Description */
.video-description {
  margin-top: 16px;
  background: var(--bg-desc);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.6;
}

.video-description .desc-stats {
  font-weight: 500;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.self-hosted-badge {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
}

.desc-text {
  white-space: pre-line;
}
.desc-text.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
}
.show-more-btn:hover { opacity: 0.7; }
.show-more-btn svg { width: 16px; height: 16px; }

/* ---------- Comments ---------- */
.comments-section {
  margin-top: 32px;
}

.comments-heading {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 24px;
}

.comment-input-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.comment-input-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--avatar-purple);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.comment-input-wrap { flex: 1; }

.comment-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  padding: 4px 0 8px;
  outline: none;
  transition: border-color var(--transition);
}
.comment-input:focus { border-color: var(--text-primary); }
.comment-input::placeholder { color: var(--text-secondary); }

.comment-input-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.comment-cancel-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition);
}
.comment-cancel-btn:hover { background: var(--bg-hover); }

.comment-submit-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--blue);
  color: white;
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition);
}
.comment-submit-btn:hover { background: var(--blue-hover); }

.comment-item {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.comment-item img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.comment-body { flex: 1; min-width: 0; }

.comment-author {
  font-size: 13px;
  font-weight: 500;
  margin-right: 6px;
}

.comment-time {
  font-size: 12px;
  color: var(--text-secondary);
}

.comment-text {
  font-size: 14px;
  margin-top: 4px;
  line-height: 1.5;
}

.comment-actions-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

.comment-like-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: 12px;
  transition: background var(--transition);
}
.comment-like-btn:hover { background: var(--bg-hover); }
.comment-like-btn svg { width: 14px; height: 14px; }
.comment-like-btn.liked { color: var(--blue); }

.comment-reply-btn {
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  transition: background var(--transition);
}
.comment-reply-btn:hover { background: var(--bg-hover); }

/* ---------- Related Videos ---------- */
.related-heading {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-item {
  display: flex;
  gap: 8px;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.related-item:hover { background: var(--bg-hover); }

.related-thumb {
  position: relative;
  width: 168px;
  min-width: 168px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-secondary);
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.related-item:hover .related-thumb img {
  transform: scale(1.05);
}

.related-thumb .duration {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: var(--duration-bg);
  color: var(--text-badge);
  font-size: 10px;
  font-weight: 500;
  padding: 1px 4px;
  border-radius: 3px;
}

.related-thumb .duration.live {
  background: var(--live-bg);
  letter-spacing: 0.5px;
}

.related-meta {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.related-meta .title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-meta .channel {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.4;
}

.related-meta .stats {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ---------- Empty State ---------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}

.empty-state .icon { font-size: 56px; margin-bottom: 16px; }

.empty-state h2 { font-size: 20px; font-weight: 500; margin-bottom: 8px; }

.empty-state p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 400px;
}

/* ---------- Back Button (mobile) ---------- */
.back-btn {
  display: none;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  cursor: pointer;
  transition: color var(--transition);
}
.back-btn:hover { color: var(--text-primary); }
.back-btn svg { width: 18px; height: 18px; }

@media (max-width: 1200px) {
  .back-btn { display: inline-flex; }
}

/* ---------- Search Results Header ---------- */
.search-header {
  padding: 16px 16px 0;
  margin-bottom: 8px;
}

.search-header h2 { font-size: 18px; font-weight: 500; }

.search-header p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .mini-sidebar { display: none; }
  .mobile-search-wrap { display: flex; }
  .header-center { display: none; }
  .voice-btn { display: none; }
  .create-btn, .notif-btn { display: none !important; }

  .related-thumb {
    width: 140px;
    min-width: 140px;
  }

  .video-title { font-size: 18px; }

  .video-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .mobile-search-wrap { display: none; }
}

/* ---------- Utility ---------- */
.hidden { display: none !important; }