/*
Theme Name: OkiTalk Video
Theme URI: http://example.com/okitalk
Author: Leon Fresh
Author URI: http://leonfresh.com
Description: A polished video theme with upcoming and archived video support.
Version: 1.9
License: GNU General Public License v2 or later
Text Domain: okitalk
*/

/* Reset & Base (Default Dark Mode) */
:root {
  --primary: #932c26;
  --primary-hover: #75221e;
  --text-link-red: #e50914;
  --secondary: #fff; /* White text for headers in dark mode */
  --text-dark: #f5f5f1; /* Light text for body */
  --text-light: #aaa; /* Muted text */
  --bg-light: #141414; /* Dark Background (Netflix style) */
  --bg-white: #1f1f1f; /* Card Background */
  --bg-darker: #000000;
  --border-radius: 8px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s ease;
  --border-color: #333;
  --header-bg: rgba(20, 20, 20, 0.95);
  --nav-color: #ccc;
  --bg-section-alt: #2c2f33;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Light Mode Overrides */
body.light-mode {
  --secondary: #221f1f;
  --text-dark: #333;
  --text-light: #555;
  --bg-light: #f4f4f4;
  --bg-white: #ffffff;
  --bg-darker: #eaeaea;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --border-color: #eee;
  --header-bg: rgba(255, 255, 255, 0.95);
  --nav-color: #555;
  --bg-section-alt: #ffffff;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  margin-top: 0;
  color: var(--secondary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-content-wrapper {
  flex: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 15px;
  gap: 10px;
  text-decoration: none !important; /* Ensure no underline */
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  min-height: 36px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff; /* Ensure white text on hover */
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

body.light-mode .btn-outline {
  color: #333;
  border-color: rgba(0, 0, 0, 0.3);
}

body.light-mode .btn-outline:hover {
  background: #333;
  color: #fff;
  border-color: #333;
}

.btn-light-outline {
  background: #fff;
  color: #333;
  border: none;
}
body.light-mode .btn-light-outline {
  background: var(--primary);
  color: #fff;
}
.btn-light-outline:hover {
  background: #e6e6e6;
}

.btn-text {
  background: transparent;
  color: var(--secondary);
  font-weight: 600;
  padding: 0;
}

.btn-text:hover {
  color: var(--text-link-red);
}

.btn-large {
  padding: 15px 35px;
  font-size: 1.1rem;
}

/* Watch Later Actions */
.watch-later-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

/* Header */
.site-header {
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 3000;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  margin-right: 20px; /* Ensure space between logo and nav */
  flex-shrink: 0;
}

.logo h1 {
  font-size: 24px;
  margin: 0;
  letter-spacing: -0.5px;
  color: var(--secondary);
  text-transform: none; /* Ensure case is preserved */
}

body.light-mode .logo h1 {
  color: #221f1f;
}

.logo a {
  color: var(--text-link-red);
}

.main-nav ul {
  display: flex;
  gap: 5px; /* Reduced gap */
  align-items: center;
}

.main-nav a {
  font-weight: 500;
  color: var(--secondary); /* White by default */
  font-size: 0.95rem;
  padding: 8px 12px; /* Reduced padding */
  border-radius: 6px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap; /* Prevent wrapping (e.g., Über uns) */
}

/* Keep secondary color on hover/active, or adjust as needed */
.main-nav a:hover,
.main-nav li.current-menu-item > a,
.main-nav li.current-menu-parent > a,
.main-nav li.current_page_item > a {
  color: var(--secondary);
  background-color: rgba(255, 255, 255, 0.25);
}

body.light-mode .main-nav a:hover,
body.light-mode .main-nav li.current-menu-item > a,
body.light-mode .main-nav li.current-menu-parent > a,
body.light-mode .main-nav li.current_page_item > a {
  background-color: rgba(0, 0, 0, 0.15);
  color: var(--text-dark);
}

/* Live Menu Item Styling */
.blinky-live-dot a {
  color: var(--text-link-red) !important;
  font-weight: 700;
}

a.blinky-live-dot {
  color: var(--text-link-red) !important;
  font-weight: 700;
}

.blinky-live-dot::before {
  content: "\f111"; /* fa-circle */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--text-link-red);
  font-size: 0.6em;
  margin-right: 3px;
  position: relative;
  top: 1px;
  animation: livePulse 2s infinite;
}

@media (max-width: 1150px) {
  .blinky-live-dot::before {
    top: -2px;
    margin-right: 8px;
  }
}

@keyframes livePulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 5px; /* Reduced from 10px */
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero Section (Polished) */
.hero-section {
  position: relative;
  background: url("https://images.unsplash.com/photo-1478720568477-152d9b164e63?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80")
    center/cover no-repeat; /* Placeholder Nature Image */
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 40px;
}

/* Small Hero for Pages (Blog, Archive, Schedule) */
.small-hero {
  background: #252525;
  position: relative;
  height: 220px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 30px;
}

body.light-mode .small-hero {
  background: #111;
}

.small-hero .hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3),
    rgba(37, 37, 37, 1)
  );
}

body.light-mode .small-hero .hero-bg-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3),
    rgba(17, 17, 17, 1)
  );
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-section h1,
.small-hero h1 {
  color: #fff;
  font-size: 3.5rem;
  margin-bottom: 15px;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.small-hero h1 {
  font-size: 3rem;
  margin-bottom: 0; /* Remove bottom margin for vertical centering when solo */
}

/* Add margin back if there's a subtitle */
.small-hero h1:not(:last-child) {
  margin-bottom: 15px;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-description {
  font-size: 1.1rem;
  color: #ddd;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

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

/* Sections General */
section {
  margin-bottom: 60px;
}

.section-header {
  margin-bottom: 30px;
}

.section-header.centered-header {
  text-align: center;
}

.section-header h2 {
  font-size: 2.2rem;
  margin: 0;
  color: var(--secondary);
}

.view-all-link {
  font-weight: 600;
  color: var(--text-link-red);
}

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

.video-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.video-thumbnail {
  height: 200px;
  position: relative;
  background: #000;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  opacity: 0.9;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
  opacity: 1;
}

.placeholder-thumb {
  display: block;
  width: 100%;
  height: 100%;
  background: #333;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(147, 44, 38, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.play-icon::before {
  content: "";
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

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

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
}

.badge-upcoming {
  background: #007bff; /* Blue for upcoming */
  color: #fff;
}

.badge-archive {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
}

.video-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.meta-top {
  margin-bottom: 10px;
}

.meta-top .date {
  font-size: 0.85rem;
  color: var(--text-light);
}

.video-content h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  line-height: 1.4;
}
.video-content h3 a {
  color: var(--text-dark);
}
.video-content h3 a:hover {
  color: var(--text-link-red);
}

.read-more-link {
  color: var(--text-link-red);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
}

.read-more-link:hover {
  text-decoration: underline;
}

/* Content Link Styles */
.entry-content a {
  color: var(--text-link-red);
  font-weight: 600;
}

.entry-content a:hover {
  color: var(--text-link-red);
  text-decoration: underline;
}

/* Fix buttons inside entry content */
.entry-content a.btn {
  text-decoration: none;
}

.entry-content a.btn-primary {
  color: #fff;
}

.entry-content a.btn-primary:hover {
  color: #fff;
  text-decoration: none;
}

/* About Section */
.section-about {
  background: var(--bg-section-alt); /* Dark Slate */
  padding: 80px 0;
  margin-bottom: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 20px;
}

body.light-mode .about-text p {
  color: var(--text-light);
}

.about-img {
  width: 100%;
  height: 400px;
  background: url("/wp-content/uploads/2025/12/about-bridge.jpg")
    center/cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* Donate Section */
.section-donate {
  padding: 80px 0;
  background: var(--bg-light);
  text-align: center;
}

.donate-content {
  max-width: 600px;
  margin: 0 auto;
}

.donate-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.section-donate h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-donate p {
  color: var(--text-light);
  margin-bottom: 40px;
}

.donation-widget {
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.donation-options {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.donation-amount {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.donation-amount:hover,
.donation-amount.active {
  border-color: var(--primary);
  color: var(--text-link-red);
  background: rgba(147, 44, 38, 0.1);
}

.btn-donate {
  width: 100%;
  /* IMPORTANT: Keeps button inside container - do not remove box-sizing */
  box-sizing: border-box;
}

.paypal-link {
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: underline;
}

/* Join Section */
.section-join {
  background: #1a2c42; /* Dark Blueish */
  padding: 100px 0;
  margin-bottom: 0;
  text-align: center;
  color: #fff;
}

.section-join h2 {
  color: #fff;
}

.join-content h2 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.join-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.8;
}

/* Footer Fixes */
.site-footer {
  background: var(--primary); /* Dark Red to match screenshot */
  color: #fff;
  padding: 60px 0 20px;
  margin-top: auto; /* Sticky footer behavior */
  font-size: 0.95rem;
  border-top: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #fff;
  font-weight: 700;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  width: 40px;
  height: auto;
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.footer-tagline {
  color: #ccc;
  font-size: 0.9rem;
  margin: 0;
}

.footer-nav ul,
.footer-legal ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li,
.footer-legal li {
  margin-bottom: 10px;
}

.footer-nav a,
.footer-legal a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover,
.footer-legal a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-social .social-icons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-icon-link {
  width: 40px;
  height: 40px;
  background: #2c2f33; /* Dark gray background */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icon-link:hover {
  background: var(--primary);
  transform: scale(1.1);
}

.social-icon-link img,
.social-icon-link svg {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1); /* Make white */
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-img-placeholder {
    height: 250px;
  }
}

/* --- Restored Styles --- */

/* Single Video Page Styling */
.single-video-page .video-player-container {
  background: #000;
  width: 100%;
  padding: 0;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  border-radius: 8px; /* Added slightly rounded corners inside the grid */
  overflow: hidden; /* Ensure video doesn't spill out */
}

.featured-image-hero {
  width: 100%;
}

.featured-image-hero img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Removed .single-video-page .video-player-container .container rule as it's no longer needed */

.embed-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  width: 100%;
  background: #000;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin: 0; /* Removed margin as it's container controlled */
}

.embed-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  color: #fff;
  text-align: center;
  padding: 100px;
  background: #222;
  border-radius: 4px;
  width: 100%;
}

/* Lights Off Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

body.lights-off-active::before {
  opacity: 1;
  pointer-events: all;
}

/* Ensure the toggle button stays above the overlay */
body.lights-off-active #lights-toggle {
  position: relative;
  z-index: 2002;
  color: #fff;
}

/* Highlight video player in cinema mode */
body.lights-off-active .video-player-container {
  position: relative;
  z-index: 2002;
}

/* Single Layout Grid */
.single-layout-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  margin-top: 40px; /* Reduced space from header */
}

.single-layout-grid > * {
  min-width: 0; /* Prevent grid blowout */
}

.video-info-card {
  background: var(--bg-white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 50px;
  color: var(--text-dark);
}

.video-header {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

/* New Video Header Top */
.video-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.video-actions-top {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

@media (max-width: 768px) {
  .video-header-top {
    flex-direction: column;
    gap: 15px;
  }

  .video-actions-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    /* Order: Move above the title if desired, but request was "on top of the title" meaning visual stack */
    /* To put ON TOP visually, we can use order property */
    order: -1;
  }
}

.video-meta-row {
  color: var(--text-light);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap; /* Ensure meta info wraps on small screens */
}

/* Video Taxonomies */
.video-taxonomies {
  margin-top: 15px;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

.video-taxonomies a {
  color: var(--text-light);
  text-decoration: none;
  border-bottom: 1px dotted var(--text-light);
  transition: all 0.2s;
}

.video-taxonomies a:hover {
  color: var(--text-link-red);
  border-bottom-color: var(--text-link-red);
}

.video-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 15px;
  background: var(--bg-light);
  border-radius: 8px;
  flex-wrap: wrap;
  gap: 15px;
  border: 1px solid var(--border-color);
}

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

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

.share-label {
  font-weight: 600;
  margin-right: 5px;
  color: var(--text-dark);
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  transition: transform 0.2s;
}

.share-btn:hover {
  transform: translateY(-3px);
}

.share-btn.fb {
  background: #3b5998;
}
.share-btn.tw {
  background: #1da1f2;
}
.share-btn.rd {
  background: #ff4500;
}
.share-btn.li {
  background: #0077b5;
}
.share-btn.em {
  background: #777;
}

/* Rating UI */
.rating-ui {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  width: 100%;
  position: relative;
  z-index: 10;
}

.rating-ui .stars {
  display: flex;
  gap: 2px;
  cursor: pointer;
}

.rating-ui .star {
  color: #555;
  font-size: 1.2rem;
  transition: color 0.2s;
}

.rating-ui .star.filled,
.rating-ui .star.hover {
  color: #f5c518;
}

.rating-text {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Video Navigation */
.video-navigation {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.video-navigation a {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.9rem;
}

.video-navigation a:hover {
  color: var(--text-link-red);
}

/* Sidebar Widgets */
.sidebar-area {
  color: var(--text-dark);
}

.widget {
  background: var(--bg-white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.widget-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  border-bottom: 2px solid #932c26;
  padding-bottom: 10px;
  display: block;
  width: 100%;
  color: var(--text-dark);
}

.most-liked-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.liked-video-link {
  display: flex;
  align-items: center;
  gap: 15px;
}

.liked-video-link img {
  width: 80px;
  height: 45px;
  object-fit: cover;
  border-radius: 4px;
  background: #000;
}

.liked-video-link span:first-of-type {
  flex: 1;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.3;
}

.like-badge {
  background: var(--bg-light);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--text-light);
  white-space: nowrap;
}

.like-badge i {
  color: var(--primary);
  margin-right: 3px;
}

/* Auth Modal */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none; /* Force hidden by default */
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-modal.open {
  display: flex; /* Only flex when open */
  opacity: 1;
  visibility: visible;
}

.auth-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

.auth-modal-content {
  background: var(--bg-white);
  color: var(--text-dark);
  width: 100%;
  max-width: 450px;
  border-radius: var(--border-radius);
  position: relative;
  z-index: 2001;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.auth-modal.open .auth-modal-content {
  transform: scale(1);
}

.auth-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  z-index: 10;
}

.auth-modal-close:hover {
  color: var(--text-dark);
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
}

.auth-tab {
  flex: 1;
  padding: 20px;
  background: var(--bg-light);
  border: none;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}

.auth-tab.active {
  background: var(--bg-white);
  color: var(--text-link-red);
  border-bottom: 2px solid var(--text-link-red);
}

.auth-tab-content {
  display: none;
  padding: 40px;
}

.auth-tab-content.active {
  display: block;
}

.modal-body form p {
  margin-bottom: 15px;
}

.modal-body input[type="text"],
.modal-body input[type="email"],
.modal-body input[type="password"],
.modal-body textarea,
.modal-body select,
.modal-body input[type="datetime-local"],
.modal-body input[type="number"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  background: var(--bg-light);
  color: var(--text-dark);
  box-sizing: border-box;
}

.modal-body input[type="submit"] {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.modal-body input[type="submit"]:hover {
  background: var(--primary-hover);
}

.submission-header h3 {
  color: var(--text-dark);
}

/* Search Overlay */
.search-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-white);
  padding: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 4px 4px;
  display: none;
  width: 300px;
  z-index: 1500;
}

.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  color: var(--text-dark);
}

.header-search {
  position: relative;
}

.header-search.active .search-dropdown {
  display: block;
}

@media (max-width: 900px) {
  .single-layout-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .video-info-card {
    padding: 20px;
  }
}

/* Infinite Scroll Sentinel */
.infinite-scroll-sentinel {
  width: 100%;
  text-align: center;
  padding: 40px 0;
  color: var(--text-light);
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  clear: both;
}

.loading-spinner {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top: 3px solid var(--primary);
  width: 24px;
  height: 24px;
  -webkit-animation: spin 1s linear infinite;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* OkiTalk Filters */
.okitalk-filters {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-item {
  flex: 1;
  min-width: 200px;
}

.okitalk-filter-select,
.okitalk-filter-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  color: var(--text-dark);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s;
}

.okitalk-filter-select:focus,
.okitalk-filter-input:focus {
  outline: none;
  border-color: var(--primary);
}

@media (max-width: 600px) {
  .okitalk-filters {
    flex-direction: column;
    gap: 15px;
  }
}

/* Upcoming Page Layout */
.okitalk-upcoming-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}

.okitalk-sidebar {
  position: sticky;
  top: 100px; /* Adjust based on header height */
}

/* Voice Live Widget */
.voice-live-widget {
  background: #252525;
  padding: 30px 25px;
  border-radius: 8px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

.widget-decoration-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
}

.widget-icon {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 15px;
  display: inline-block;
  transform: rotate(-15deg); /* Slight tilt for phone icon */
}

.voice-live-widget h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #fff;
  line-height: 1.2;
}

.voice-live-widget p {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 20px;
  line-height: 1.5;
}

.contact-methods {
  margin-bottom: 20px;
}

.contact-methods li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.contact-methods i {
  width: 20px;
  text-align: center;
}

.contact-methods li:first-child i {
  color: #2aabee; /* Telegram Blue */
}

.contact-methods li:last-child i {
  color: #ccc; /* Email icon color */
}

.contact-methods a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px dotted #aaa;
  transition: all 0.2s;
}

.contact-methods a:hover {
  color: var(--text-link-red);
  border-bottom-color: var(--text-link-red);
}

.voice-live-widget .note {
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
  margin-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
}

/* Widget Actions */
.widget-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.widget-actions .btn-full {
  width: 100%;
  justify-content: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
  border-radius: 4px;
  transition: all 0.3s;
  box-sizing: border-box; /* Ensure padding doesn't add to width */
}

.widget-actions .btn-full:hover {
  background: #e6e6e6;
  color: #333;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 900px) {
  .okitalk-upcoming-layout {
    grid-template-columns: 1fr;
  }

  .okitalk-sidebar {
    position: static;
    margin-bottom: 40px;
  }

  .voice-live-widget {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .widget-actions {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Comments Section (YouTube Style) */
.comments-wrapper.video-info-card {
  padding: 25px;
  background: var(--bg-white);
  border-radius: 8px;
}

.comments-title {
  font-size: 1.3rem;
  margin-bottom: 25px;
  color: var(--secondary);
  border-bottom: none;
}

/* Comment List */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment-list li.comment {
  margin-bottom: 20px;
  padding-bottom: 0;
}

.comment-body {
  display: flex;
  gap: 15px;
}

.comment-avatar img {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.comment-content-area {
  flex: 1;
}

.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.comment-author {
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.95rem;
}

.comment-author a {
  color: inherit;
  text-decoration: none;
}

.comment-date {
  font-size: 0.8rem;
  color: var(--text-light);
}

.comment-text {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 8px;
}

.comment-text p {
  margin: 0 0 10px;
}

.comment-actions {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
}

.reply-link a,
.edit-link a {
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.reply-link a:hover,
.edit-link a:hover {
  color: var(--text-link-red);
}

.comment-awaiting-moderation {
  display: block;
  font-size: 0.85rem;
  color: #e5a00d; /* Warning color */
  margin-bottom: 5px;
}

/* Nested Comments */
.children {
  list-style: none;
  padding-left: 55px; /* Indent replies */
  margin-top: 20px;
}

/* Comment Form */
.comment-respond {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.comment-form-row {
  margin-bottom: 15px;
}

.comment-form-textarea {
  margin-bottom: 10px;
}

#commentform input[type="text"],
#commentform input[type="email"] {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid #444;
  color: var(--text-dark);
  transition: border-color 0.3s;
  border-radius: 0;
  box-sizing: border-box;
}

#commentform textarea {
  width: 100%;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  padding: 12px 14px;
  min-height: 120px;
  resize: vertical;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  border-radius: 10px;
  font-family: inherit;
  line-height: 1.5;
  box-sizing: border-box;
}

#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus {
  outline: none;
  border-bottom-color: var(--secondary); /* White line on focus */
  border-bottom-width: 2px;
}

#commentform textarea:focus {
  outline: none;
  border-color: #932c26;
  box-shadow: 0 0 0 1px #932c26 inset;
  background: var(--bg-white);
}

.form-submit {
  text-align: right;
}

.btn-comment-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #932c26;
  color: #fff;
  border-radius: 12px;
  padding: 10px 24px;
  font-size: 0.95rem;
  text-transform: none;
  font-weight: 600;
  border: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.btn-comment-submit:hover {
  background: #b5423b;
  box-shadow: 0 8px 20px rgba(147, 44, 38, 0.4);
  transform: translateY(-1px);
}

/* Hide default labels for cleaner look since we use placeholders */
.comment-form-author label,
.comment-form-email label,
.comment-form-comment label {
  display: none;
}

.no-comments {
  color: var(--text-light);
  font-style: italic;
  text-align: center;
  margin-top: 20px;
}

.video-actions-bar .btn-action {
  background: #932c26;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 20px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.video-actions-bar .btn-action i {
  margin-right: 6px;
}

.video-actions-bar .btn-action:hover,
.video-actions-bar .btn-action:focus {
  background: #b5423b;
  box-shadow: 0 8px 20px rgba(147, 44, 38, 0.4);
  transform: translateY(-1px);
  color: #fff;
}

.video-actions-bar .btn-action.active {
  background: #b5423b;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

/* Mobile Menu Extras (Hidden on Desktop) */
.mobile-menu-extras {
  display: none;
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  flex-direction: column;
  gap: 15px;
}

.mobile-actions-row {
  display: flex;
  justify-content: space-around;
  gap: 10px;
}

.mobile-actions-row .header-icon-btn {
  width: auto;
  height: auto;
  padding: 8px 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  gap: 8px;
}

.mobile-icon-label {
  font-size: 0.9rem;
  font-weight: 500;
}

.mobile-lang-menu {
  display: flex;
  flex-direction: row; /* Force row */
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0; /* Reset margin */
}

.mobile-lang-menu li {
  margin: 0; /* Prevent li margins from stacking */
}

.mobile-lang-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  line-height: 1.2; /* Match height of icon buttons */
  font-family: inherit;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.mobile-lang-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-link-red);
}

.mobile-lang-menu .current-menu-item a,
.mobile-lang-menu .active_language a {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-link-red);
  font-weight: 600;
}

body.light-mode .mobile-lang-menu a {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

body.light-mode .mobile-lang-menu a:hover,
body.light-mode .mobile-lang-menu .current-menu-item a,
body.light-mode .mobile-lang-menu .active_language a {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-link-red);
}

/* Responsive Navigation */
/* Intermediate Tablet/Desktop Size: Reduce spacing to prevent overlap */
@media (max-width: 1280px) {
  .main-nav a {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
  .header-actions {
    gap: 10px;
  }
  .logo h1 {
    font-size: 20px;
  }
  .main-nav ul {
    gap: 5px;
  }
}

@media (max-width: 1150px) {
  .site-header-inner {
    flex-wrap: nowrap; /* Keep everything in one line */
    gap: 10px;
  }

  /* Ensure Language Menu overrides general nav ul styles */
  .main-nav .mobile-lang-menu {
    flex-direction: row;
    width: auto; /* Don't take full width if not needed, though justify-center handles it */
  }

  .mobile-menu-extras {
    display: flex;
  }

  /* Only hide icons on smaller tablet/mobile (< 750px) */
  @media (max-width: 750px) {
    .header-actions .theme-toggle,
    .header-actions .language-switcher,
    .header-actions .header-search,
    .header-actions a[href*="watch-later"] {
      display: none;
    }
  }

  .mobile-menu-toggle {
    display: block;
    order: 3; /* Hamburger on the right */
    margin-left: 10px;
  }

  .logo {
    order: 1;
    margin-right: auto; /* Push everything else to the right */
    flex-shrink: 0;
  }

  .header-actions {
    order: 2;
    margin-right: 0;
    gap: 10px;
    flex-shrink: 1; /* Allow shrinking if needed */
    justify-content: flex-end;
  }

  .main-nav {
    display: none;
    width: 100%;
    order: 4;
    background: var(--bg-white);
    position: absolute;
    top: 100%;
    left: 0;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-color);
    z-index: 999;
  }

  /* ... rest of mobile styles ... */

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 15px;
    align-items: center; /* Center items on mobile */
  }

  .main-nav a {
    display: block;
    padding: 10px 20px;
    font-size: 1.1rem;
    white-space: nowrap; /* Prevent wrapping */
    border-radius: 8px;
  }

  /* Adjust Header Actions for Mobile */
  .header-actions .btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .header-actions .btn-outline,
  .header-actions .btn-primary {
    /* Simplify buttons on very small screens */
    padding: 8px;
    font-size: 0; /* Hide text */
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Hide Register button on mobile to keep one line */
  .header-actions #register-btn {
    display: none;
  }

  .header-actions .btn-outline::before {
    content: "\f007"; /* FontAwesome User Icon for Login (Clearer than sign-in arrow) */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1rem;
  }

  /* If logged in (btn-text usually for logout) */
  .header-actions .btn-text {
    font-size: 0;
  }

  /* Target the Logout link specifically */
  .header-actions a[href*="logout"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-header {
    padding: 10px 0;
  }

  .logo h1 {
    font-size: 1.2rem;
  }

  .site-logo-img {
    height: 30px;
    width: auto;
  }
}

/* General Responsive Fixes */
@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .hero-section {
    height: auto;
    min-height: 400px;
    padding: 60px 20px; /* Reduced padding */
  }

  .hero-section h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .hero-actions,
  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%; /* Prevent overflow */
    margin: 0 auto;
    align-items: center; /* Center buttons */
  }

  .hero-actions .btn,
  .hero-buttons .btn {
    width: 100%;
    max-width: 320px; /* Limit max width for better aesthetics */
    justify-content: center;
    margin: 0 auto;
  }

  /* Small Hero (Archive/Page) Mobile Fixes */
  .small-hero {
    height: 180px;
    min-height: 180px;
    margin-bottom: 40px;
  }

  .small-hero h1 {
    font-size: 2rem;
  }

  .single-layout-grid {
    margin-top: 20px;
  }

  .video-actions-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .action-group {
    width: 100%;
    justify-content: space-between;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Header Actions Consistency */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-dark);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  text-decoration: none;
}

.header-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary);
}

body.light-mode .header-icon-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.add-video-btn {
  background: var(--primary);
  color: white;
}

.add-video-btn:hover {
  background: var(--primary-hover);
  color: white;
}

.search-toggle,
.theme-toggle {
  padding: 0;
  background: transparent;
}

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

.language-switcher {
  display: flex;
  align-items: center;
}
