* { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  background: #f0f0f0;
  color: #1a1a1a;
}

/* ── Header ── */
header {
  background: #0ea5e9;
  color: white;
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
header h1 { margin: 0; font-size: 1.3rem; white-space: nowrap; }
header h1 a { color: white; text-decoration: none; }

.header-right { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

.search-form { display: flex; }
.search-form input {
  padding: 0.42rem 1rem;
  border: none;
  border-radius: 999px 0 0 999px;
  font-size: 0.88rem;
  outline: none;
  width: 360px;
  background: rgba(255,255,255,0.92);
}
.search-form button {
  padding: 0.42rem 0.85rem;
  border: none;
  border-radius: 0 999px 999px 0;
  background: #0284c7;
  color: white;
  cursor: pointer;
  font-size: 0.88rem;
  margin-top: 0;
}
.search-form button:hover { background: #0369a1; }

nav { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
nav a {
  color: white;
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  transition: background 0.15s;
  white-space: nowrap;
}
nav a:hover { background: rgba(255,255,255,0.2); }

/* Uploaden knop in nav */
nav a[href="upload.php"] {
  background: rgba(255,255,255,0.2);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}
nav a[href="upload.php"]:hover { background: rgba(255,255,255,0.35); }

/* ── Nav Dropdown ── */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 0;
  transition: background 0.15s;
}
.nav-dropdown-toggle:hover { background: rgba(255,255,255,0.28); }

.nav-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: white;
  color: #0ea5e9;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-caret { font-size: 0.7rem; opacity: 0.85; }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  min-width: 180px;
  z-index: 200;
  overflow: hidden;
  animation: dropdownFade 0.15s ease;
}
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block;
  padding: 0.65rem 1rem;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.88rem;
  transition: background 0.12s;
}
.nav-dropdown-menu a:hover { background: #f5f5f5; }
.nav-dropdown-danger { color: #0ea5e9 !important; font-weight: 600; }
.nav-dropdown-divider { border-top: 1px solid #eee; margin: 0.25rem 0; }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1rem; }

/* ── Pinterest masonry grid ── */
.masonry {
  columns: 5 180px;
  column-gap: 0.75rem;
}

.pin {
  break-inside: avoid;
  margin-bottom: 0.75rem;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #fff;
}

.pin-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #ddd;
}
.pin-thumb img {
  width: 100%;
  display: block;
  border-radius: 16px;
  transition: transform 0.3s ease;
}
.pin:hover .pin-thumb img { transform: scale(1.05); }

/* Gekleurde placeholder als er geen thumbnail is */
.pin-placeholder {
  width: 100%;
  padding-top: 130%;
  border-radius: 16px;
  position: relative;
}

/* Hover overlay met play-knop */
.pin-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.28);
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.pin:hover .pin-overlay { opacity: 1; }
.play-circle {
  width: 54px;
  height: 54px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #0ea5e9;
  padding-left: 4px;
}

/* Like-badge rechtsboven */
.pin-like-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.2s;
}
.pin:hover .pin-like-badge { opacity: 1; }

.pin-info {
  padding: 0.55rem 0.6rem 0.6rem;
}
.pin-info h3 {
  margin: 0 0 0.2rem;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}
.pin-info h3 a { color: #1a1a1a; text-decoration: none; }
.pin-info h3 a:hover { color: #0ea5e9; }
.pin-channel {
  font-size: 0.75rem;
  color: #767676;
}
.pin-channel a { color: #767676; text-decoration: none; }
.pin-channel a:hover { color: #0ea5e9; text-decoration: underline; }
.pin-views { font-size: 0.72rem; color: #aaa; display: block; margin-top: 0.1rem; }

/* Fallback grid (nog gebruikt in search) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.13);
}
.card-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}
.card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb .play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity 0.15s;
  font-size: 2.5rem;
  color: white;
}
.card:hover .play-icon { opacity: 1; }
.card-body { padding: 0.75rem; }
.card-body h3 { margin: 0 0 0.35rem; font-size: 0.95rem; line-height: 1.35; }
.card-body h3 a { color: #1a1a1a; text-decoration: none; }
.card-body h3 a:hover { color: #0ea5e9; }
.card-body p { margin: 0; font-size: 0.82rem; color: #555; }
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

/* ── Processing spinner ── */
.processing-box {
  text-align: center;
  padding: 3rem 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.spinner {
  width: 52px;
  height: 52px;
  border: 5px solid #f0f0f0;
  border-top-color: #0ea5e9;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Video detail ── */
.video-detail { max-width: 820px; margin: 0 auto; }
.video-embed-wrap {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.video-embed-wrap iframe,
.video-embed-wrap video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #000;
}
.video-detail h2 { margin: 1rem 0 0.25rem; font-size: 1.3rem; }

/* ── Like button ── */
.like-btn {
  background: none;
  border: 1.5px solid #ddd;
  cursor: pointer;
  color: #555;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-top: 0;
  transition: all 0.15s;
}
.like-btn:hover { border-color: #0ea5e9; color: #0ea5e9; background: #fff0f0; }
.like-btn.liked { border-color: #0ea5e9; color: #0ea5e9; background: #fff0f0; font-weight: 600; }

/* ── Comments ── */
.comments { margin-top: 2rem; }
.comments h3 {
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.comment {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0ea5e9;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  flex-shrink: 0;
}
.comment-body { flex: 1; }
.comment-body strong { font-size: 0.88rem; }
.comment-body p { margin: 0.3rem 0 0; font-size: 0.9rem; color: #333; }
.comment-time { font-size: 0.75rem; color: #aaa; margin-left: 0.5rem; }
.comment-form { margin-top: 1.5rem; }
.comment-form textarea { margin-top: 0.4rem; min-height: 80px; }

/* ── Forms ── */
.form-card {
  max-width: 440px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.form-card h2 { margin-top: 0; }

label { display: block; margin-top: 1rem; font-size: 0.88rem; font-weight: 600; color: #444; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  margin-top: 0.3rem;
  border-radius: 8px;
  border: 1.5px solid #ddd;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s;
  background: #fafafa;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #0ea5e9;
  background: #fff;
}
textarea { resize: vertical; }

button, .btn {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: none;
  background: #0ea5e9;
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
button:hover, .btn:hover { background: #0284c7; }
.btn-secondary { background: #555; }
.btn-secondary:hover { background: #333; }
.btn-sm { padding: 0.3rem 0.75rem; font-size: 0.82rem; margin-top: 0; }
.btn-outline {
  background: transparent;
  border: 2px solid #0ea5e9;
  color: #0ea5e9;
}
.btn-outline:hover { background: #0ea5e9; color: white; }

/* ── Alerts ── */
.alert {
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}
.alert-error { background: #ffe6e6; color: #900; border-left: 4px solid #0ea5e9; }
.alert-success { background: #e6ffed; color: #0a7a25; border-left: 4px solid #0a7a25; }

/* ── Badges & meta ── */
.channel-badge { font-size: 0.78rem; color: #0ea5e9; font-weight: 600; }
.channel-badge a { color: #0ea5e9; text-decoration: none; }
.channel-badge a:hover { text-decoration: underline; }
.small-text { font-size: 0.82rem; color: #777; }
.meta-bar {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  color: #777;
  font-size: 0.85rem;
  margin: 0.4rem 0;
}

/* ── Channel header ── */
.channel-header {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-bottom: 1.5rem;
}
.channel-header h2 { margin: 0 0 0.25rem; }
.follower-count { font-size: 0.85rem; color: #777; margin-bottom: 0.75rem; }

/* ── Profile ── */
.profile-header {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #0ea5e9;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  flex-shrink: 0;
}
.stats-bar { display: flex; gap: 2rem; margin-top: 0.75rem; }
.stat { text-align: center; }
.stat .num { font-size: 1.5rem; font-weight: bold; color: #0ea5e9; display: block; }
.stat .lbl { font-size: 0.75rem; color: #777; }

/* ── Search ── */
.search-section { margin-bottom: 2rem; }
.search-section h3 {
  border-bottom: 3px solid #0ea5e9;
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.result-list { list-style: none; padding: 0; margin: 0; }
.result-item {
  padding: 0.85rem 1rem;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.result-item a { color: #1a1a1a; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.result-item a:hover { color: #0ea5e9; }
.result-item p { margin: 0.25rem 0 0; font-size: 0.82rem; color: #777; }

/* ── Divider & section titles ── */
hr.divider { border: none; border-top: 2px solid #e8e8e8; margin: 2rem 0; }
h2.section-title { margin: 1.5rem 0 0.75rem; font-size: 1.1rem; }

/* ── Channel card in profile ── */
.channel-card {
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  margin-bottom: 0.75rem;
}
.channel-card h4 { margin: 0 0 0.25rem; }
.channel-card h4 a { color: #1a1a1a; text-decoration: none; }
.channel-card h4 a:hover { color: #0ea5e9; }

/* ── Homepage two-column layout ── */
.home-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.home-main { flex: 1; min-width: 0; }
.home-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: #1a1a1a;
}

.sidebar-card {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: #1a1a1a;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  transition: box-shadow 0.15s, transform 0.15s;
}
.sidebar-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.13);
  transform: translateY(-1px);
}

.sidebar-card-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #ddd;
}
.sidebar-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sidebar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.sidebar-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.sidebar-card-info strong {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
}
.sidebar-card-info span {
  font-size: 0.75rem;
  color: #767676;
}

/* ── Clipr rij ── */
.clipr-row {
  margin-bottom: 1.5rem;
  background: #fff;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.clipr-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.clipr-row-title {
  font-weight: 800;
  font-size: 1rem;
  color: #0ea5e9;
}
.clipr-row-more {
  font-size: 0.8rem;
  color: #0ea5e9;
  text-decoration: none;
}
.clipr-row-more:hover { text-decoration: underline; }

.clipr-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}
.clipr-scroll::-webkit-scrollbar { display: none; }

.clipr-thumb {
  flex-shrink: 0;
  width: 72px;
  text-decoration: none;
  color: #1a1a1a;
  text-align: center;
}
.clipr-thumb-img {
  width: 72px;
  height: 108px;
  border-radius: 12px;
  overflow: hidden;
  border: 2.5px solid #0ea5e9;
  background: #ddd;
}
.clipr-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.clipr-thumb-placeholder {
  width: 100%;
  height: 100%;
}
.clipr-thumb-label {
  font-size: 0.7rem;
  margin-top: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #555;
}
.clipr-add .clipr-add-icon {
  width: 72px;
  height: 108px;
  border-radius: 12px;
  border: 2.5px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #ccc;
  background: #fafafa;
}
.clipr-add:hover .clipr-add-icon { border-color: #0ea5e9; color: #0ea5e9; }

/* ── Notifications ── */
.notif-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: #1a1a1a;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.15s;
}
.notif-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.notif-unread { border-left: 3px solid #0ea5e9; }
.notif-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 0.1rem; }
.notif-msg { margin: 0 0 0.2rem; font-size: 0.88rem; font-weight: 500; }
.notif-time { font-size: 0.75rem; color: #aaa; }
.notif-badge {
  display: inline-block;
  background: #0ea5e9;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  margin-left: 0.3rem;
  vertical-align: middle;
}

/* ── Settings ── */
.settings-wrap { max-width: 560px; margin: 0 auto; }

.settings-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-bottom: 1.25rem;
}
.settings-card h3 { margin: 0 0 1rem; font-size: 1rem; }

.settings-danger-card { border: 1.5px solid #ffd0d0; }
.settings-danger-card h3 { color: #c00; }

.btn-danger {
  background: #0ea5e9;
  color: white;
  display: inline-block;
  margin-top: 1rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s;
}
.btn-danger:hover { background: #0369a1; }

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  margin-top: 0;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: white;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Admin ── */
.admin-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.admin-stat {
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  text-align: center;
  min-width: 100px;
}
.admin-stat .num { display: block; font-size: 1.8rem; font-weight: 800; color: #0ea5e9; }
.admin-stat .lbl { font-size: 0.78rem; color: #777; }

.admin-table-wrap { overflow-x: auto; margin-bottom: 2rem; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  font-size: 0.85rem;
}
.admin-table th {
  background: #f5f5f5;
  padding: 0.65rem 0.85rem;
  text-align: left;
  font-size: 0.8rem;
  color: #555;
  border-bottom: 1.5px solid #eee;
}
.admin-table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafafa; }
.admin-row-banned td { opacity: 0.6; }
.admin-badge {
  display: inline-block;
  background: #0ea5e9;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.3rem;
  vertical-align: middle;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .home-sidebar { display: none; }
  .masonry { columns: 3 160px; }
}

@media (max-width: 640px) {
  /* Header */
  header {
    flex-wrap: nowrap;
    align-items: center;
    padding: 0.65rem 1rem;
    gap: 0.5rem;
    position: relative;
  }
  .hamburger { display: flex; }
  .header-right {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0284c7;
    padding: 0.75rem 1rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    z-index: 150;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  .header-right.mobile-open { display: flex; }
  .search-form { width: 100%; }
  .search-form input { width: 100%; border-radius: 999px 0 0 999px; }
  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
  }
  nav a { font-size: 0.82rem; padding: 0.25rem 0.5rem; }

  /* Container */
  .container { padding: 1rem 0.65rem; }

  /* Masonry: 2 kolommen op mobiel */
  .masonry { columns: 2 140px; column-gap: 0.5rem; }
  .pin { margin-bottom: 0.5rem; }

  /* Video */
  .video-detail { max-width: 100%; }
  .video-embed-wrap { border-radius: 8px; }
  .video-detail h2 { font-size: 1.1rem; }
  .meta-bar { gap: 0.65rem; font-size: 0.8rem; }

  /* Forms */
  .form-card {
    margin: 1rem auto;
    padding: 1.25rem;
    border-radius: 10px;
  }

  /* Profile */
  .profile-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  .stats-bar { gap: 1rem; flex-wrap: wrap; }
  .stat .num { font-size: 1.2rem; }

  /* Channel header */
  .channel-header { padding: 1rem; }

  /* Buttons */
  button, .btn { font-size: 0.85rem; padding: 0.5rem 1rem; }

  /* Sectietitels */
  h2.section-title { font-size: 1rem; }
}
