:root {
  --bg-dark: #0f0f0f;
  --bg-secondary: #222222;
  --bg-tertiary: #3f3f3f;
  --bg-hover: #383838;
  --text-primary: #f1f1f1;
  --text-secondary: #aaaaaa;
  --border-color: #3f3f3f;
  --accent-blue: #3ea6ff;
  --member-badge-bg: #22a276;
}

html {
  scroll-behavior: smooth;
}

*:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}


.feather {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 56px;
  background-color: var(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.youtube-logo {
  height: 100px;
  width: auto;
}

.header-center {
  display: none;
}

.icon-btn-header {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 500;
  cursor: pointer;
}


.login-btn .feather {
  width: 20px;
}

.container {
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 16px;
}

.video-main-content {
  width: 100%;
}

.video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  border-radius: 12px;
  overflow: hidden;
  z-index: 1;
}

.overlay-button {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--text-primary);
  color: var(--bg-secondary);
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 9999;
}

.overlay-button.visible {
  opacity: 1;
  visibility: visible;
}

.video-info h1 {
  font-size: 1.15rem;
  margin-top: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.actions-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.channel-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.channel-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.channel-name {
  flex-grow: 1;
}

.channel-name div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.channel-name span {
  font-weight: 500;
}

.channel-name p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.verified-badge {
  width: 14px;
  height: 14px;
  fill: var(--text-secondary);
  flex-shrink: 0;
}

.subscribe-btn {
  background-color: var(--text-primary);
  color: var(--bg-dark);
  border: none;
  padding: 10px 16px;
  border-radius: 20px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.subscribe-btn.subscribed {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: var(--bg-secondary);
  border: none;
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s, transform 0.1s ease-out;
}

.action-btn:hover {
  background-color: var(--bg-hover);
}

.like-dislike-group {
  display: flex;
}

.like-dislike-group .action-btn:first-child {
  border-radius: 20px 0 0 20px;
  border-right: 1px solid var(--border-color);
}

.like-dislike-group .action-btn:last-child {
  border-radius: 0 20px 20px 0;
}

.action-btn.active .feather-thumbs-up,
.action-btn.active .feather-thumbs-down {
  fill: var(--text-primary);
}

.animation-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.like-btn.jump .feather-thumbs-up {
  animation: jump 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes jump {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.4) rotate(-15deg);
  }
}

.particle {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  opacity: 0;
  animation: particle-fall 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes particle-fall {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translate(var(--end-x), var(--end-y)) scale(0) rotate(360deg);
    opacity: 0;
  }
}

.video-meta-line {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.85rem;
  margin-top: 8px;
  color: var(--text-secondary);
}

.more-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-size: 0.85rem;
}

.expandable-description {
  display: none;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  padding: 12px;
  margin-top: 12px;
  font-size: 0.9rem;
  flex-direction: column;
  gap: 8px;
}

.expandable-description.expanded {
  display: flex;
}

.btn-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
  margin-top: 8px;
  text-decoration: underline;
}

.chat-container {
  background-color: #181818;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: 100%;
  height: 500px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.chat-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.chat-header h2 {
  font-size: 1.1rem;
  font-weight: 500;
}

.viewer-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}


.viewer-count .feather {
  width: 16px;
  height: 16px;
}

.chat-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.chat-messages {
  list-style: none;
  padding: 16px;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-messages::-webkit-scrollbar {
  width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #4d4d4d;
  border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: #6b6b6b;
}

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.chat-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
}

.message-content {
  line-height: 1.4;
}

.message-content .username {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 700;
  margin-right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.message-content .comment-text {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.member-badge {
  background-color: var(--member-badge-bg);
  color: var(--text-primary);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
}

.chat-system-message {
  padding: 16px;
  border-radius: 8px;
  background-color: var(--bg-secondary);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.chat-system-message p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.yt-icon {
  flex-shrink: 0;
}


.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.share-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #282828;
  color: var(--text-primary);
  border-radius: 16px 16px 0 0;
  z-index: 1001;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.share-modal.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 500;
}

.close-modal-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.social-links {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
  margin-left: 8px;
}

.social-links::-webkit-scrollbar {
  display: none;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f1f1f1;
  font-size: 0.75rem;
  text-align: center;
  min-width: 60px;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.2s ease;
}

.social-link:hover .social-icon {
  opacity: 0.85;
}

.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

.social-icon.whatsapp {
  background-color: #25D366;
}

.social-icon.whatsapp img {
  padding: 11px;
}

.social-icon.facebook {
  background-color: #1877F2;
}

.social-icon.facebook img {
  padding: 6px;
  height: 120%;
}

.social-icon.twitter-x {
  background-color: #FFFFFF;
}

.social-icon.twitter-x img {
  padding: 1px;
}

.social-icon.gmail {
  background-color: #FFFFFF;
}

.social-icon.gmail img {
  padding: 6px;
}

.social-icon.e-mail {
  background-color: #4285F4;
}

.social-icon.e-mail img {
  padding: 10px;
}

.modal-divider {
  border: none;
  height: 1px;
  background-color: var(--border-color);
  margin: 16px 0;
}

.copy-link-container {
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}

.copy-link-container:hover {
  background-color: var(--bg-hover);
}

.copy-link-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-tertiary);
}

.copy-link-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-primary);
}

.copy-link-text {
  font-size: 1rem;
  color: var(--text-primary);
}

.copy-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 12px 24px;
  border-radius: 20px;
  font-size: 0.9rem;
  z-index: 1002;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease;
  white-space: nowrap;
}

.copy-notification.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -10px);
}


.membership-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  flex-direction: column;
}

.membership-modal.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.membership-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 8px 12px 16px;
  flex-shrink: 0;
}

.top-bar-title {
  font-size: 1.1rem;
  font-weight: 500;
}

.top-bar-controls {
  display: flex;
  align-items: center;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

.membership-content {
  flex-grow: 1;
  overflow-y: auto;
}

.membership-content::-webkit-scrollbar {
  width: 8px;
}

.membership-content::-webkit-scrollbar-track {
  background: transparent;
}

.membership-content::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
  border: 2px solid var(--bg-dark);
}

.membership-content::-webkit-scrollbar-thumb:hover {
  background: var(--bg-hover);
}

.membership-hero {
  position: relative;
  background-color: #1e2a28;
  padding: 24px 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.membership-hero::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%), linear-gradient(135deg, transparent 75%, rgba(255, 255, 255, 0.05) 75%);
  background-size: 30px 30px;
  transform: rotate(-10deg);
}

.membership-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.channel-name-hero {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.membership-hero h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 4px 0;
}

.membership-hero p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.membership-plan-wrapper {
  padding: 24px 16px;
}

.membership-plan {
  background-color: var(--bg-dark);
  border: none;
  border-radius: 12px;
  padding: 0;
}

.plan-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.plan-details h3 {
  font-size: 1.1rem;
  font-weight: 500;
}

.plan-details span {
  font-size: 1.25rem;
  font-weight: 700;
}

.plan-details .price-suffix {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 4px;
}

.membership-cta-btn {
  display: block;
  width: 100%;
  background-color: var(--accent-blue);
  color: var(--bg-dark);
  border: none;
  border-radius: 20px;
  padding: 10px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  margin-top: 20px;
}

.membership-cta-btn:hover {
  opacity: 0.85;
}

.membership-disclaimer {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 12px;
}

.membership-guarantee {
  padding-top: 24px;
}

.membership-guarantee h4 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.membership-guarantee p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.membership-guarantee p+p {
  margin-top: 8px;
}

.available-prayers {
  padding-top: 24px;
}

.available-prayers h4 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.prayer-cards-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  -ms-overflow-style: none;

  scrollbar-width: none;

}

.prayer-cards-container::-webkit-scrollbar {
  display: none;
}

.prayer-card {
  flex: 0 0 140px;
  height: 100px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  background-color: var(--bg-secondary);
}


.prayer-card .feather {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

.prayer-card h5 {
  position: relative;
  z-index: 1;
  color: var(--text-primary);
  line-height: 1.2;
}

.prayer-card-more {
  flex: 0 0 60px;
  height: 100px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
}

.prayer-card-more span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.membership-benefits {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background-color: transparent;
  padding: 0;
}


.benefit-item .feather {
  color: var(--text-secondary);
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: -2px;
}

.benefit-item span {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.4;
}


@media (min-width: 768px) {
  .header-center {
    display: flex;
    flex: 0 1 728px;
    align-items: center;
  }

  .header-center input {
    width: 100%;
    padding: 10px 12px;
    background-color: #121212;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 40px 0 0 40px;
    color: var(--text-primary);
    font-size: 1rem;
  }

  .header-center .search-btn {
    padding: 8px 20px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 0 40px 40px 0;
    cursor: pointer;
  }

  .share-modal {
    width: 520px;
    left: 50%;
    top: 50%;
    bottom: auto;
    border-radius: 16px;
    transform: translate(-50%, -50%) scale(0.9);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease;
  }

  .share-modal.visible {
    transform: translate(-50%, -50%) scale(1);
  }

  .membership-modal {
    width: 580px;
    height: auto;
    max-height: 90vh;
    left: 50%;
    top: 50%;
    bottom: auto;
    border-radius: 16px;
    transform: translate(-50%, -50%) scale(0.9);
  }

  .membership-modal.visible {
    transform: translate(-50%, -50%) scale(1);
  }

  .membership-top-bar {
    padding: 12px 16px;
  }

  .membership-hero {
    border-radius: 12px 12px 0 0;
  }
}

@media (min-width: 1024px) {
  .container {
    flex-direction: row;
    align-items: flex-start;
    padding: 24px;
    max-width: 1800px;
    margin: 0 auto;
    gap: 24px;
  }

  .video-info h1 {
    font-size: 1.25rem;
  }

  .video-main-content {
    flex-grow: 1;
  }

  .chat-container {
    width: 380px;
    min-width: 380px;
    height: 70vh;
  }

  .actions-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}