/*
Theme Name: برنو +18
Theme URI: https://example.com/berno
Author: برنو
Description: قالب ووردبريس لموقع أفلام إباحية +18. تصميم داكن جذاب مع جريد فيديوهات.
Version: 2.6.1
Text Domain: berno
*/

/* Dark Porn Theme - RTL */
html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
}

body {
  font-family: 'Segoe UI', 'Cairo', 'Noto Sans Arabic', system-ui, sans-serif;
  background-color: #0f0f0f;
  color: #e5e5e5;
  padding-top: 0;
}

h1, h2, h3, h4 {
  color: #fff;
}

a {
  transition: color 0.2s;
}

a:hover {
  color: #f87171;
}

/* Header */
header {
  background: #222;
  border-bottom: 1px solid #444;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.logo {
  font-size: 28px;
  font-weight: 900;
  color: #f87171;
  letter-spacing: -1px;
}

.logo span {
  color: #fff;
  font-size: 14px;
  vertical-align: super;
}

/* Nav */
.nav-link {
  color: #ccc;
  padding: 8px 16px;
  font-weight: 500;
}

.nav-link:hover {
  color: #fff;
}

/* Hero */
.hero {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.8));
  text-align: center;
}

.berno-hero-home {
  background-size: cover;
  background-position: center;
  min-height: 130px;
  display: flex;
  align-items: center;
  position: relative;
  padding: 12px 0;
}

.berno-hero-inner {
  background: rgba(0, 0, 0, 0.65);
  padding: 12px 14px;
  border-radius: 8px;
  width: 100%;
}

.berno-hero-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: #fff;
  line-height: 1.2;
}

.berno-hero-subtitle {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #e4e4e7;
  max-width: 640px;
  margin: 0 auto 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.berno-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.berno-hero-actions .btn {
  padding: 8px 14px;
  font-size: 0.82rem;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 24px;
  color: #ccc;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all .3s;
}

.btn-red {
  background: #dc2626;
  color: white;
}

.btn-red:hover {
  background: #b91c1c;
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid #fff;
  color: white;
  margin-left: 12px;
}

.btn-outline:hover {
  background: white;
  color: #111;
}

/* Categories */
.category-pill {
  display: inline-block;
  background: #222;
  color: #fff;
  padding: 8px 18px;
  border-radius: 9999px;
  margin: 4px;
  font-size: 14px;
  transition: all .2s;
}

.category-pill:hover {
  background: #dc2626;
  color: white;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.video-card {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform .2s;
  text-decoration: none;
  color: inherit;
}

.video-card:hover {
  transform: scale(1.03);
  color: inherit;
}

.video-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding-left: 3px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.video-card:hover .video-play-icon {
  opacity: 1;
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.8);
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 1;
}

.video-info {
  padding: 12px;
}

.video-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  font-size: 12px;
  color: #888;
}

.video-meta span {
  margin-right: 8px;
}

/* Section titles */
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

/* Age gate / Disclaimer */
.disclaimer {
  background: #222;
  padding: 12px;
  font-size: 13px;
  text-align: center;
  color: #999;
  border-top: 1px solid #333;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  background: #1a1a1a;
  border-top: 1px solid #333;
  padding: 8px 0 12px;
}

.mobile-menu.open {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: 10px 24px;
  color: #ccc;
  text-decoration: none;
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
}

.mobile-nav-link:hover {
  color: #fff;
  background: #222;
}

.link-btn {
  background: none;
  border: none;
  color: #f87171;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  text-decoration: underline;
}

.modal-result {
  display: none;
  margin-top: 15px;
  background: #222;
  padding: 12px;
  border-radius: 6px;
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="password"],
.modal-content input[type="search"] {
  background: #222;
  color: white;
  border: 1px solid #444;
}

/* Page layout helpers */
.berno-page {
  width: 100%;
}

.berno-video-title {
  font-size: 1.5rem;
  line-height: 1.35;
}

.berno-video-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.berno-video-meta-sep {
  opacity: 0.7;
}

.berno-video-engagement {
  margin: 12px 0 16px;
}

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

.berno-video-stat,
.berno-video-vote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #3f3f46;
  background: #111;
  color: #d4d4d8;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.88rem;
  line-height: 1;
}

.berno-video-vote {
  cursor: pointer;
  transition: all 0.2s ease;
}

.berno-video-vote:hover {
  border-color: #52525b;
  background: #1f1f1f;
}

.berno-video-like.is-active {
  border-color: #16a34a;
  background: rgba(22, 163, 74, 0.15);
  color: #86efac;
}

.berno-video-dislike.is-active {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.15);
  color: #fca5a5;
}

.berno-video-stat-icon,
.berno-video-vote-icon {
  font-size: 1rem;
  line-height: 1;
}

.berno-video-stat-label,
.berno-video-vote-label {
  color: #a1a1aa;
  font-size: 0.82rem;
}

.berno-feed-item-stats {
  margin: 8px 0 0;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; padding: 0 8px; }

  .hero .btn,
  .berno-video-actions .btn {
    display: block;
    width: 100%;
    margin: 8px 0 0;
    text-align: center;
    min-height: 44px;
    line-height: 1.2;
    padding: 12px 20px;
  }

  .btn-outline { margin-left: 0; }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .video-info { padding: 10px; }
  .video-info h3 { font-size: 13px; }
  .section-title { font-size: 1.35rem; }
  .berno-video-title { font-size: 1.2rem; }

  .berno-video-stat,
  .berno-video-vote {
    padding: 10px 14px;
    min-height: 44px;
  }

  .berno-comments-card {
    padding: 10px;
    border-radius: 10px;
  }

  .berno-comments-scroll {
    height: 268px;
    max-height: 268px;
    padding-right: 8px;
    padding-left: 0;
  }

  header .max-w-7xl { padding-left: 12px; padding-right: 12px; }
  header .berno-header-actions .berno-header-btn { padding: 6px 10px; font-size: 12px; }
  header .berno-header-actions .berno-hide-mobile { display: none; }

  .modal-content { width: 95% !important; padding: 10px !important; }

  footer .grid { grid-template-columns: 1fr; gap: 20px; }
  footer .max-w-7xl { padding-left: 16px; padding-right: 16px; }
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  background-color: #1a1a1a;
  padding: 20px;
  border: 1px solid #444;
  width: 90%;
  max-width: 400px;
  border-radius: 10px;
  color: #fff;
}

.modal-close {
  float: right;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
}

.modal-content input, .modal-content button {
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  box-sizing: border-box;
}

.modal-content label {
  display: block;
  margin: 8px 0;
  cursor: pointer;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: white;
}

/* Make sure buttons and elements are mobile friendly */
.btn {
  padding: 12px 20px;
  font-size: 14px;
}

/* VIP Packages Modal */
.vip-modal-content {
  max-width: 285px !important;
  width: 90% !important;
  padding: 0 !important;
  overflow: hidden;
  background: #0a0a0a !important;
  border: 1px solid #3f3f46;
  border-radius: 12px !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55);
}

.vip-modal-content .modal-close {
  position: absolute;
  top: 6px;
  left: 6px;
  right: auto;
  float: none;
  z-index: 5;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1f1f1f;
  border: 1px solid #444;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.vip-modal-scroll {
  overflow: visible;
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.vip-info-card,
.vip-package-card,
.vip-action-card {
  background: #161616;
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.vip-info-card {
  text-align: center;
  padding: 8px 7px 7px;
  background: linear-gradient(180deg, #221a08 0%, #161616 100%);
}

.vip-modal-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #111;
  font-weight: 800;
  font-size: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  margin-bottom: 3px;
  letter-spacing: 0.25px;
}

.vip-info-card h3 {
  margin: 0 0 2px;
  font-size: 0.8rem;
}

.vip-info-card p {
  margin: 0;
  color: #a1a1aa;
  font-size: 0.64rem;
  line-height: 1.35;
}

.vip-modal-content form {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  margin: 0;
}

.vip-packages-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vip-modal-content label.vip-package-card {
  display: block;
  margin: 0 !important;
}

.vip-package-card {
  position: relative;
  display: block;
  padding: 0;
  margin: 0 !important;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

.vip-package-card:hover {
  border-color: #52525b;
  transform: none;
}

.vip-package-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  margin: 0;
}

.vip-package-selected {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.4);
}

.vip-package-featured {
  border-color: #b45309;
}

.vip-package-featured.vip-package-selected {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.4);
}

.vip-package-tag {
  display: block;
  text-align: center;
  background: #f59e0b;
  color: #111;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 5px;
}

.vip-package-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 5px 7px 0;
}

.vip-package-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}

.vip-package-price-box {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 3px 7px;
  padding: 3px 5px;
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: 7px;
}

.vip-package-amount {
  display: inline;
  font-size: 0.92rem;
  font-weight: 800;
  color: #f87171;
  line-height: 1;
  margin-bottom: 0;
}

.vip-package-featured .vip-package-amount {
  color: #fbbf24;
}

.vip-package-currency {
  display: inline;
  font-size: 0.58rem;
  color: #a1a1aa;
}

.vip-package-body {
  padding: 0 7px 5px;
}

.vip-package-desc {
  margin: 0 0 3px;
  padding-bottom: 0;
  color: #71717a;
  font-size: 0.58rem;
  line-height: 1.3;
  border-bottom: none;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vip-package-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.vip-package-features li {
  font-size: 0.54rem;
  color: #a1a1aa;
  background: #1f1f1f;
  padding: 2px 5px;
  border-radius: 4px;
}

.vip-package-check {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid #52525b;
  position: relative;
  transition: all 0.2s ease;
}

.vip-package-check::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: transparent;
}

.vip-package-selected .vip-package-check {
  background: #dc2626;
  border-color: #dc2626;
}

.vip-package-selected .vip-package-check::after {
  color: #fff;
}

.vip-package-featured.vip-package-selected .vip-package-check {
  background: #f59e0b;
  border-color: #f59e0b;
}

.vip-package-featured.vip-package-selected .vip-package-check::after {
  color: #111;
}

.vip-action-card {
  padding: 7px;
}

.vip-checkout-btn {
  width: 100%;
  margin: 0 !important;
  font-size: 0.72rem !important;
  padding: 7px 10px !important;
  border-radius: 7px !important;
}

.vip-modal-note {
  text-align: center;
  margin: 5px 0 0;
  font-size: 0.58rem;
  color: #71717a;
}

.vip-activate-box {
  margin-top: 0;
}

.vip-activate-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.66rem;
  color: #d4d4d8;
  font-weight: 600;
}

.vip-activate-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.vip-activate-form input {
  width: 100%;
  box-sizing: border-box;
  background: #111;
  border: 1px solid #444;
  border-radius: 7px;
  color: #fff;
  padding: 7px 9px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.25px;
}

.vip-activate-form input:focus {
  outline: none;
  border-color: #dc2626;
}

.vip-activate-btn {
  width: 100%;
  margin: 0 !important;
  border-color: #666 !important;
  color: #fff !important;
  border-radius: 7px !important;
  padding: 7px 10px !important;
  font-size: 0.68rem !important;
}

.vip-activate-result {
  margin-top: 6px;
  font-size: 0.72rem;
}

/* Ad slots */
.berno-ad-slot {
  margin: 12px 0;
}

.berno-ad-grid-wrap .berno-ad-slot {
  margin: 0;
}

/* Video player */
.berno-player-wrapper {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.berno-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.berno-player-poster-layer,
.berno-player-media {
  position: absolute;
  inset: 0;
}

.berno-player-poster-layer {
  z-index: 2;
}

.berno-player-media {
  z-index: 1;
}

.berno-player-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.berno-player-poster-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  color: #888;
  font-size: 1rem;
}

.berno-player-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  min-width: 48px;
  touch-action: manipulation;
}

.berno-player-play-btn:hover {
  background: #b91c1c;
}

.berno-player-play-icon {
  font-size: 1.1rem;
}

.berno-player.is-playing .berno-player-poster-layer,
.berno-player-wrapper.is-playing .berno-player-poster-layer {
  display: none;
}

.berno-player.is-playing .berno-player-media,
.berno-player-wrapper.is-playing .berno-player-media {
  display: block !important;
}

.berno-player.is-playing .berno-player-media,
.berno-player-wrapper.is-playing .berno-player-media {
  z-index: 4;
}

.berno-player-media video,
.berno-player-media iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.berno-player-media video {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.berno-player-poster {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.berno-player-no-video {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  color: #aaa;
  font-size: 0.95rem;
}

.berno-player-controls {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
}

.berno-player-controls[hidden] {
  display: none !important;
}

.berno-player.is-playing .berno-player-controls,
.berno-player-wrapper.is-playing .berno-player-controls {
  display: block;
}

.berno-player-seek-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 40px;
  touch-action: manipulation;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.berno-player-seek-btn[data-seek="-5"] {
  left: 10px;
}

.berno-player-seek-btn[data-seek="10"] {
  right: 10px;
}

.berno-player-seek-btn:hover {
  background: rgba(220, 38, 38, 0.92);
  border-color: #dc2626;
  transform: translateY(-50%) scale(1.04);
}

.berno-player-seek-icon {
  font-size: 1rem;
  line-height: 1;
}

.berno-player-playback-ad {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  z-index: 8;
}

.berno-player-playback-ad[hidden] {
  display: none !important;
}

.berno-player-playback-ad .berno-ad-slot {
  width: 100%;
  max-width: 520px;
  margin: 0;
}

.berno-ad-slot ins.adsbynetwork,
.berno-exoclick-zone {
  display: block;
  min-height: 90px;
  width: 100%;
}

.berno-player-playback-ad ins.adsbynetwork {
  min-height: 250px;
}

.berno-skip-ad-btn {
  background: #333;
  color: #fff;
  border: 1px solid #555;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.85rem;
}

.berno-skip-ad-btn:hover {
  background: #444;
}

.berno-player-vast-layer {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 9;
  overflow: hidden;
}

.berno-player-vast-layer[hidden] {
  display: none !important;
}

.berno-player-vast-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.berno-player-vast-container video,
.berno-player-vast-container iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.berno-player-vast-label {
  position: absolute;
  top: 10px;
  right: 10px;
  margin: 0;
  padding: 4px 10px;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  font-size: 0.75rem;
  border-radius: 6px;
  z-index: 2;
  pointer-events: none;
}

.berno-player-wrapper[data-vast-active] .berno-player-poster-layer,
.berno-player-wrapper[data-vast-active] .berno-player-controls {
  pointer-events: none;
}

.berno-comments-wrap {
  margin-top: 8px;
}

.berno-comments-card {
  background: #121212;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 12px 12px 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.berno-comments-title,
.berno-comment-reply-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}

.berno-comments-scroll {
  height: 292px;
  max-height: 292px;
  overflow-y: auto;
  overflow-x: hidden;
  direction: ltr;
  padding: 2px 10px 2px 0;
  margin-bottom: 2px;
  scrollbar-width: thin;
  scrollbar-color: #dc2626 #1a1a1a;
}

.berno-comments-scroll::-webkit-scrollbar {
  width: 7px;
}

.berno-comments-scroll::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 8px;
  margin: 4px 0;
}

.berno-comments-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #dc2626, #991b1b);
  border-radius: 8px;
}

.berno-comments-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ef4444, #b91c1c);
}

.berno-comments-scroll .comment-list {
  margin-top: 0 !important;
  direction: rtl;
  text-align: right;
}

.berno-comments-scroll .comment,
.berno-comments-scroll .berno-comment {
  direction: rtl;
  text-align: right;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.berno-comments-scroll .berno-comment-header {
  margin-bottom: 6px;
}

.berno-comments-scroll .berno-comment-content {
  font-size: 0.86rem;
  line-height: 1.45;
}

.berno-comments-scroll .berno-comment-actions {
  margin-top: 8px;
  gap: 6px;
}

.berno-comments-scroll .berno-comment-vote,
.berno-comments-scroll .berno-comment-delete {
  padding: 5px 10px;
  font-size: 0.78rem;
}

.berno-comments-form-wrap {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #2a2a2a;
}

.berno-comment-respond {
  margin-top: 0;
}

.berno-comment-form {
  margin: 0;
}

.berno-comment-field {
  margin: 0 0 12px;
}

.berno-comment-textarea,
.berno-comment-input {
  width: 100%;
  box-sizing: border-box;
  background: #141414;
  border: 1px solid #3f3f46;
  border-radius: 12px;
  color: #f4f4f5;
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.6;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.berno-comment-textarea {
  min-height: 130px;
  resize: vertical;
}

.berno-comment-textarea::placeholder,
.berno-comment-input::placeholder {
  color: #71717a;
}

.berno-comment-textarea:focus,
.berno-comment-input:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

.berno-comment-submit {
  width: auto;
  min-width: 140px;
  margin-top: 4px;
  cursor: pointer;
}

.berno-comments-section .logged-in-as,
.berno-comments-section .comment-notes,
.berno-comments-section .required {
  display: none !important;
}

.berno-comments-section .comment-list,
.berno-comments-wrap .comment-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.berno-comments-section .comment,
.berno-comments-wrap .comment {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.berno-comments-section .comment .comment-author,
.berno-comments-wrap .comment .comment-author {
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.berno-comments-section .comment .comment-meta,
.berno-comments-wrap .comment .comment-meta {
  font-size: 0.75rem;
  color: #71717a;
  margin-bottom: 8px;
}

.berno-comments-section .comment .comment-content,
.berno-comments-wrap .comment .comment-content {
  color: #d4d4d8;
  line-height: 1.6;
  font-size: 0.92rem;
}

.berno-comment-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.berno-comment-author {
  font-weight: 700;
  color: #fff;
  font-size: 0.92rem;
}

.berno-comment-date {
  font-size: 0.75rem;
  color: #71717a;
}

.berno-comment-awaiting {
  margin: 0 0 8px;
  color: #fbbf24;
  font-size: 0.82rem;
}

.berno-comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.berno-comment-vote,
.berno-comment-delete {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #3f3f46;
  background: #111;
  color: #d4d4d8;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}

.berno-comment-vote:hover,
.berno-comment-delete:hover {
  border-color: #52525b;
  background: #1f1f1f;
}

.berno-comment-like.is-active {
  border-color: #16a34a;
  background: rgba(22, 163, 74, 0.15);
  color: #86efac;
}

.berno-comment-dislike.is-active {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.15);
  color: #fca5a5;
}

.berno-comment-delete {
  border-color: #7f1d1d;
  color: #fca5a5;
}

.berno-comment-delete:hover {
  background: rgba(127, 29, 29, 0.25);
  border-color: #dc2626;
}

.berno-vote-icon {
  font-size: 0.95rem;
}

.berno-vote-count {
  min-width: 1ch;
  font-weight: 700;
}

.berno-comments-closed {
  color: #71717a;
  font-size: 0.9rem;
}

.berno-comment-banned-notice {
  background: rgba(127, 29, 29, 0.25);
  border: 1px solid #7f1d1d;
  color: #fca5a5;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0;
  font-size: 0.92rem;
}

/* Video infinite feed */
.berno-video-feed-section {
  scroll-margin-top: 80px;
}

.berno-feed-header {
  margin-bottom: 18px;
}

.berno-feed-title {
  margin-bottom: 8px;
}

.berno-feed-subtitle strong {
  color: #f87171;
}

.berno-video-feed {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.berno-feed-item {
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 14px;
}

.berno-feed-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.berno-feed-item-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.4;
  flex: 1;
}

.berno-feed-item-title a {
  color: #fff;
  text-decoration: none;
}

.berno-feed-item-title a:hover {
  color: #f87171;
}

.berno-feed-item-badge {
  display: inline-block;
  background: #1f2937;
  color: #93c5fd;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.berno-feed-item-badge.is-same-category {
  background: rgba(220, 38, 38, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.35);
}

.berno-feed-item-meta {
  margin-bottom: 8px;
}

.berno-player-feed {
  margin-top: 8px !important;
  margin-bottom: 0 !important;
}

.berno-feed-sentinel {
  padding: 24px 0 8px;
  text-align: center;
}

.berno-feed-loading {
  color: #71717a;
  font-size: 0.85rem;
}

.berno-feed-sentinel.is-loading .berno-feed-loading {
  color: #f87171;
}

@media (max-width: 480px) {
  .berno-hero-home {
    min-height: 108px;
    padding: 8px 0;
  }

  .berno-hero-inner {
    padding: 10px;
  }

  .berno-hero-title {
    font-size: 1.1rem;
  }

  .berno-hero-subtitle {
    font-size: 0.75rem;
    margin-bottom: 6px;
    -webkit-line-clamp: 2;
  }

  .berno-hero-actions .btn {
    padding: 7px 12px;
    font-size: 0.78rem;
  }

  .video-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .video-play-icon { opacity: 1; width: 36px; height: 36px; font-size: 12px; }

  .berno-player-play-btn {
    padding: 12px 22px;
    font-size: 0.9rem;
  }

  .berno-player-play-label { display: none; }
  .berno-player-play-icon { font-size: 1.4rem; }

  .berno-player-seek-btn {
    padding: 10px 14px;
    min-height: 44px;
    font-size: 0.82rem;
  }

  .berno-player-seek-btn[data-seek="-5"] {
    left: 8px;
  }

  .berno-player-seek-btn[data-seek="10"] {
    right: 8px;
  }


  .vip-package-amount { font-size: 0.86rem; }

  .logo { font-size: 22px; }
}
