/* Google Fonts are enqueued via wp_enqueue_scripts in functions.php */

:root {
  --magic-purple: #0f172a; 
  --magic-dark: #020617;   
  --magic-teal: #13017a;   
  --magic-yellow: #eab308; 
  --text-light: #ffffff;
  --text-dark: #222222;
  --font-main: 'Montserrat', sans-serif;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: #ffffff;
  color: var(--text-dark);
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* --- Header --- */
.site-header {
  position: relative;
  z-index: 1000;
  background-color: var(--magic-purple);
  color: var(--text-light);
  padding: 15px 0;
}

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

.logo img {
  max-height: 100px;
  width: auto;
  display: block;
  transform: translateY(10px); 
}

.logo span {
  color: var(--magic-teal);
}

.main-nav {
  display: flex;
  gap: 30px;
  list-style: none;
}

.main-nav a {
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: var(--magic-teal);
}

.social-icons {
  display: flex;
  gap: 15px;
}

/* --- TV Schedule Timeline --- */
.tv-schedule-bar {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); 
}

.schedule-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
}

.live-now {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: var(--magic-purple); 
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 6px;
  margin: 10px 0;
}

.live-indicator {
  background-color: #d9534f;
  color: #ffffff;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #ffffff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

.live-now .show-time {
  color: var(--magic-yellow); 
  font-weight: 700;
  font-size: 14px;
}

.live-now .show-title {
  color: #ffffff !important;
  font-weight: 800;
  font-size: 15px !important;
  margin: 0 !important;
  line-height: normal !important;
}

.up-next {
  display: flex;
  gap: 35px;
  flex: 1;
  padding-left: 30px;
}

.next-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.next-time {
  font-weight: 800;
  color: #9ca3af; 
  font-size: 13px;
}

.next-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
}

.full-schedule-link {
  font-size: 12px;
  font-weight: 800;
  color: var(--magic-teal);
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.full-schedule-link:hover {
  opacity: 0.7;
}

@media (max-width: 1024px) {
  .up-next .next-item:last-child { display: none; }
}
@media (max-width: 768px) {
  .up-next, .full-schedule-link { display: none; }
  .live-now { width: 100%; justify-content: center; }
}
.schedule-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}

.live-now {
  min-width: 0;
  flex: 0 1 auto;
  max-width: 60%;
}

.live-now .show-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.up-next {
  min-width: 0;
  flex: 1 1 auto;
  padding-left: 10px;
  gap: 20px;
}

.next-item {
  min-width: 0;
  flex: 1 1 0;
}

.next-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.full-schedule-link {
  flex-shrink: 0;
  white-space: nowrap;
}

@media screen and (max-width: 768px) {
  .live-now {
    max-width: 100%;
    width: 100%;
  }

  .live-now .show-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}
/* --- Hero Section --- */
.hero-section {
  background: linear-gradient(135deg, var(--magic-purple) 0%, var(--magic-dark) 40%, var(--magic-teal) 100%);
  padding: 50px 0;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: 'ТЕЛЕВИЗИЯ РОДИНА';
  position: absolute;
  left: 2%;
  top: 10%;
  font-size: 400px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    radial-gradient(2px 2px at 15% 15%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 45% 25%, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 75% 10%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 25% 45%, rgba(255,255,255,0.5), transparent),
    radial-gradient(2.5px 2.5px at 85% 55%, rgba(255,255,255,1), transparent),
    radial-gradient(1px 1px at 10% 75%, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 55% 85%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 80% 90%, rgba(255,255,255,0.8), transparent);
  background-size: 350px 350px; 
  opacity: 0.4; 
  pointer-events: none;
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.hero-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background-color: #000;
  cursor: pointer;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  opacity: 0.85;
}

.hero-card:hover img {
  transform: scale(1.03);
}

.hero-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 25px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.hero-card.main-card {
  min-height: 450px;
}

.hero-card.main-card h2 {
  font-size: 28px;
  font-weight: 800;
  margin-top: 10px;
}

.side-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-cards .hero-card {
  height: calc(50% - 10px);
}

.side-cards h3 {
  font-size: 16px;
  font-weight: 600;
}

@media screen and (min-width: 851px) {
  .hero-section .hero-grid {
    height: 480px;
    max-height: 480px;
    overflow: hidden;
  }

  .hero-section .hero-card.main-card {
    height: 480px;
    max-height: 480px;
    min-height: 0;
    overflow: hidden;
  }

  .hero-section .side-cards {
    height: 480px;
    max-height: 480px;
    overflow: hidden;
  }

  .hero-section .side-cards .hero-card {
    height: calc(50% - 10px);
    min-height: 0;
    overflow: hidden;
  }

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

/* --- Универсални карти за новини (за Начало и Архив) --- */
.news-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.news-archive-page {
  padding: 40px 0;
  background-color: #f5f5f5; 
}

.news-archive-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-title {
  text-align: center;
  margin-bottom: 40px;
  color: #1a1a2e; 
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.news-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-bottom: 20px; 
  text-decoration: none;
  color: inherit;
}

.news-item:hover {
  transform: translateY(-5px);
}

.news-item .news-img,
.news-item img,
.news-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
  border-radius: 0;
}

.news-item h4,
.news-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  color: #1a1a2e;
  transition: color 0.3s;
  padding: 0 20px; 
  margin: 0 0 10px 0;
}

.news-item:hover h4,
.news-item:hover .news-title {
  color: var(--magic-purple);
}

.news-date {
  font-size: 12px;
  color: #888;
  padding: 0 20px;
  margin-bottom: 10px;
}

.news-excerpt {
  font-size: 14px;
  color: #555;
  padding: 0 20px;
  line-height: 1.5;
  margin: 0;
}

.pagination {
  margin-top: 40px;
  text-align: center;
}

/* Специални стилове за снимките в решетката на артистите */
.artists-archive-page .news-thumbnail img {
  height: 300px; 
  object-position: top center; 
}

/* --- Single Article View --- */
.single-article-section {
  padding: 40px 0 80px;
  background-color: #ffffff;
}

.article-header {
  max-width: 900px;
  margin: 0 auto 30px;
  text-align: center;
}

.article-meta {
  color: var(--magic-teal);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 15px;
  display: block;
}

.article-title {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.article-featured-image {
  max-width: 1000px;
  margin: 0 auto 40px;
}

.article-featured-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}

.article-content p {
  margin-bottom: 25px;
}

/* --- Performers Grid --- */
.performers-section {
  padding: 60px 0;
  background-color: #f8fafc;
}

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

.performer-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.performer-card:hover {
  transform: translateY(-8px);
}

.performer-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.performer-info {
  padding: 20px;
}

.performer-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--magic-dark);
  margin-bottom: 5px;
}

.performer-genre {
  font-size: 13px;
  color: var(--magic-teal);
  font-weight: 600;
  text-transform: uppercase;
}

/* --- Single Performer View --- */
.single-performer-section {
  padding: 60px 0 80px;
  background-color: #ffffff;
}

.performer-profile-wrapper {
  display: flex;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: flex-start;
}

.performer-portrait {
  flex: 0 0 400px; 
}

.performer-portrait img {
  width: 100%;
  height: 100%; 
  max-height: 550px; 
  object-fit: cover; 
  object-position: top center; 
  border-radius: 10px; 
}

.performer-details {
  flex: 1;
}

.performer-details h1 {
  font-size: 42px;
  font-weight: 900;
  color: var(--magic-dark);
  margin-bottom: 10px;
  line-height: 1.1;
}

.performer-tag {
  display: inline-block;
  background-color: var(--magic-teal);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 25px;
}

.performer-bio {
  font-size: 18px;
  line-height: 1.8;
  color: #333333;
}

.performer-bio p {
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .performer-profile-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .performer-portrait {
    flex: 0 0 auto;
    width: 100%;
    align-self: flex-start;
  }
}

/* --- Full Schedule Page --- */
.schedule-page-section {
  padding: 60px 0 80px;
  background-color: #f8fafc;
}

.schedule-container {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  padding: 40px;
}

.schedule-day-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--magic-dark);
  margin-bottom: 20px;
  border-bottom: 3px solid var(--magic-teal);
  padding-bottom: 10px;
  display: inline-block;
}

.schedule-list {
  display: flex;
  flex-direction: column;
}

.schedule-row {
  display: flex;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
  transition: background-color 0.2s;
}

.schedule-row:hover {
  background-color: #f9fafb;
}

.schedule-row:last-child {
  border-bottom: none;
}

.schedule-time {
  font-size: 20px;
  font-weight: 900;
  color: #dc2626;
  width: 130px;
  flex-shrink: 0;
}

.schedule-show {
  font-size: 18px;
  color: #333333;
  font-weight: 600;
}

.schedule-day-block {
  margin-bottom: 50px;
}

.schedule-day-block:last-child {
  margin-bottom: 0;
}

/* --- Страница ЗА НАС --- */
.about-page-section {
  padding: 50px 0;
  background-color: #f5f5f5; 
}

.about-page-section .container {
  max-width: 900px; 
  margin: 0 auto;
  padding: 0 20px;
}

.about-content-wrapper {
  background: #ffffff;
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  font-size: 17px;
  line-height: 1.8;
  color: #444;
}

.about-content-wrapper h2, 
.about-content-wrapper h3 {
  color: #1a1a2e; 
  margin-top: 30px;
  margin-bottom: 15px;
}

.about-content-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  display: block;
}

/* --- Стандартна страница (page.php) --- */
.default-page-section {
  padding: 50px 0;
  background-color: #f5f5f5; 
}

.default-page-section .container {
  max-width: 900px; 
  margin: 0 auto;
  padding: 0 20px;
}

.default-content-wrapper {
  background: #ffffff;
  padding: 40px 50px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--magic-dark);
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

.footer-links {
  margin-bottom: 20px;
}

.footer-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-menu-list a {
  color: #a0aec0; 
  text-decoration: none;
  font-size: 14px;
  font-weight: 500; 
  transition: color 0.3s ease;
}

.footer-menu-list a:hover {
  color: #ffffff; 
}

.made-with-love {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.6;
  letter-spacing: 0.5px;
}

.made-with-love .heart {
  color: #dc2626; 
  display: inline-block;
  font-size: 14px;
}
/* --- СЕКЦИЯ МУЗИКА (ВИДЕО ГАЛЕРИЯ) --- */
.music-page-section {
    padding: 60px 0 100px;
    background-color: #f8fafc;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.video-card {
    cursor: pointer;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #1a1a2e;
}

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

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

/* Тъмен слой и бутон Play */
.play-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.play-btn {
    background: #d9534f; /* Червен цвят за Play бутона */
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    padding-left: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.video-card:hover .play-btn {
    transform: scale(1);
}

.video-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--magic-dark);
    padding: 20px;
    margin: 0;
    text-align: center;
}

/* --- ИЗСКАЧАЩ ПРОЗОРЕЦ (MODAL LIGHTBOX) --- */
.modal {
    display: none; 
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

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

.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Трика за перфектно 16:9 пропорционално видео */
    height: 0;
}

.iframe-container iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 8px;
}
/* =========================================
   ГЛОБАЛЕН ДИЗАЙН НА СТАНДАРТНИ БЛОКОВЕ
   ========================================= */

/* 1. БУТОНИ (WordPress стандартен блок) */
.wp-block-button__link {
    background-color: #d9534f !important; /* Фирменото червено */
    color: #ffffff !important;
    border-radius: 6px !important;
    font-weight: 800 !important;
    padding: 12px 25px !important;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    box-shadow: 0 4px 10px rgba(217, 83, 79, 0.3);
}

.wp-block-button__link:hover {
    background-color: #c9302c !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(217, 83, 79, 0.4);
}

/* 2. ТАБЛИЦИ (WordPress стандартен блок) */
.wp-block-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.wp-block-table th, 
.wp-block-table td {
    padding: 15px;
    border: 1px solid #eaeaea;
    text-align: left;
}

/* Оцветяваме заглавния ред на таблиците в тъмносиньо */
.wp-block-table th,
.wp-block-table thead td {
    background-color: #0f172a;
    color: #ffffff;
    font-weight: bold;
}

/* Редуване на цветовете на редовете за по-лесно четене */
.wp-block-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

/* 3. ОБЩИ ТЕКСТОВЕ И СПИСЪЦИ В СТРАНИЦИТЕ */
.entry-content ul, 
.entry-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.entry-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}
/* =========================================
   МЕДИЯ, ГАЛЕРИИ, КАЛЕНДАРИ И ЦИТАТИ
   ========================================= */

/* 4. ВГРАЖДАНИЯ (YouTube, Spotify, Vimeo, TikTok, Видео и Аудио) */
.wp-block-embed,
.wp-block-video,
.wp-block-audio {
    margin: 30px 0;
}
.wp-block-embed iframe,
.wp-block-video video {
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    max-width: 100%;
}

/* 5. ИЗОБРАЖЕНИЯ И ГАЛЕРИИ */
.wp-block-image img,
.wp-block-gallery .wp-block-image img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: auto;
}
.wp-block-gallery {
    gap: 15px;
    margin-bottom: 30px;
}

/* 6. ЦИТАТИ (За интервюта и важни акценти в новините) */
.wp-block-quote {
    border-left: 4px solid #d9534f; /* Червеният акцент на ТВ Родина */
    background-color: #f8fafc;
    padding: 20px 25px;
    margin: 30px 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}
.wp-block-quote p {
    margin-bottom: 0;
    font-size: 18px;
    color: #1a1a2e;
}
.wp-block-quote cite {
    display: block;
    margin-top: 15px;
    font-size: 14px;
    font-weight: bold;
    color: #666;
    font-style: normal;
}

/* 7. КАЛЕНДАР */
.wp-block-calendar {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.wp-block-calendar table {
    width: 100%;
    border-collapse: collapse;
}
.wp-block-calendar th {
    background-color: #0f172a; /* Тъмносиният цвят */
    color: #fff;
    padding: 10px;
    text-align: center;
    font-weight: normal;
}
.wp-block-calendar td {
    padding: 10px;
    text-align: center;
    border: 1px solid #eaeaea;
}
.wp-block-calendar #today {
    background-color: #d9534f; /* Днешната дата свети в червено */
    color: #fff;
    font-weight: bold;
}
/* Скриване на линковете за предишен/следващ месец в календара */
.wp-block-calendar tfoot,
.wp-block-calendar .wp-calendar-nav {
    display: none !important;
}

/* Деактивиране на кликането върху самите дати в календара */
.wp-block-calendar table a {
    pointer-events: none !important;
    color: inherit !important;
    text-decoration: none !important;
    cursor: default !important;
}
/* Глобално скриване на категориите навсякъде в сайта */
.post-categories,
.cat-links,
.category-name {
    display: none !important;
}
/* Професионална иконка за служебната поща в менюто */
.webmail-icon a::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: -4px;
    background-color: currentColor; /* Автоматично взема цвета на текста от темата */
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline></svg>') no-repeat center / contain;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline></svg>') no-repeat center / contain;
}
/* =========================================
   STICKY FOOTER (Агресивен метод)
   ========================================= */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* Избутваме футъра принудително на дъното */
footer, 
#footer, 
.site-footer,
.footer-wrap {
    margin-top: auto !important;
    width: 100%;
}
/* =========================================
   МОБИЛНО МЕНЮ И АДАПТИВЕН ДИЗАЙН (RESPONSIVE)
   ========================================= */

/* 1. Хамбургер бутон на десктоп */
#mobile-toggle {
    display: none;
    font-size: 28px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    padding: 8px 12px;
    user-select: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.2s ease;
}

#mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* 2. Таблети и телефони (под 850px) */
@media screen and (max-width: 850px) {

    /* Хедър подредба */
    .site-header {
        padding: 12px 0;
    }

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

    .logo {
        order: 1;
    }

    .logo img {
        max-height: 60px;
        transform: none;
    }

    .header-search-wrap {
        order: 2;
        margin-left: auto;
        margin-right: 12px;
    }

    .header-social-icons {
        order: 3;
        margin-left: 0;
        margin-right: 15px;
        gap: 12px !important;
    }

    #mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 4;
    }

    /* Мобилно падащо меню */
    ul.main-nav, ul.menu, ul.nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #0f172a;
        padding: 15px 20px;
        z-index: 9999;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        list-style: none;
        order: 4;
    }

    ul.main-nav.mobile-active, ul.menu.mobile-active, ul.nav-menu.mobile-active {
        display: flex !important;
    }

    ul.main-nav li, ul.menu li, ul.nav-menu li {
        margin: 0;
        padding: 12px 0;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    ul.main-nav li:last-child, ul.menu li:last-child {
        border-bottom: none;
    }

    ul.main-nav a, ul.menu a, ul.nav-menu a {
        font-size: 15px;
        display: block;
        color: #ffffff;
        padding: 6px 0;
    }

    /* Hero секция на начална страница */
    .hero-section {
        padding: 30px 0;
    }

    .hero-section::before {
        font-size: 80px;
        top: 2%;
        opacity: 0.02;
    }

    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .hero-card.main-card {
        min-height: 280px;
    }

    .hero-card.main-card h2 {
        font-size: 20px;
        line-height: 1.3;
    }

    .side-cards {
        gap: 15px;
    }

    .side-cards .hero-card {
        height: 180px;
    }

    .side-cards h3 {
        font-size: 15px;
    }

    .hero-card-content {
        padding: 15px;
    }
}

/* 3. Мобилни устройства (под 768px) */
@media screen and (max-width: 768px) {

    /* Контейнер */
    .container {
        padding: 0 16px;
    }

    /* Лента за предавания (On-Air Bar) */
    .tv-schedule-bar {
        padding: 4px 0;
    }

    .live-now {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
        gap: 8px;
        padding: 10px 14px;
        margin: 8px 0;
    }

    .live-now .show-title {
        font-size: 14px;
        text-align: center;
    }

    /* Решетки за новини и музика */
    .news-section {
        padding: 35px 0;
    }

    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .news-item .news-img,
    .news-item img,
    .news-thumbnail img {
        height: 200px;
    }

    .artists-archive-page .news-thumbnail img {
        height: 280px;
    }

    .music-page-section {
        padding: 35px 0 60px;
    }

    .video-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .performers-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* Заглавия на страници */
    .page-title {
        font-size: 26px !important;
        margin-bottom: 25px !important;
    }

    /* Единична новина / статия */
    .single-article-section {
        padding: 25px 0 50px;
    }

    .article-title {
        font-size: 22px !important;
        line-height: 1.3 !important;
        padding: 0 !important;
    }

    .article-header {
        margin-bottom: 25px !important;
    }

    .article-featured-image {
        margin-bottom: 25px;
    }

    .article-featured-image img {
        max-height: 300px;
    }

    .article-content {
        font-size: 16px !important;
        line-height: 1.7 !important;
    }

    /* Профил на артист */
    .single-performer-section {
        padding: 30px 0 50px;
    }

    .performer-details h1 {
        font-size: 26px !important;
        line-height: 1.2 !important;
    }

    .performer-bio {
        font-size: 16px !important;
        line-height: 1.7 !important;
    }

    .performer-portrait img {
        max-height: 380px;
    }

    /* Пълна програма (page-program.php) */
    .schedule-page-section {
        padding: 30px 0 50px;
    }

    .schedule-filter-bar {
        text-align: center !important;
        margin-bottom: 20px !important;
    }

    .schedule-filter-bar form {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }

    .schedule-filter-bar label {
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 5px;
    }

    .schedule-container {
        padding: 18px 12px !important;
        border-radius: 8px;
    }

    .schedule-day-block {
        padding: 14px !important;
        margin-bottom: 15px !important;
    }

    .schedule-day-title {
        font-size: 16px !important;
    }

    .schedule-time {
        font-size: 15px !important;
        width: 70px !important;
    }

    .schedule-show {
        font-size: 15px !important;
    }

    /* Страници "За нас" и стандартни страници */
    .about-page-section, .default-page-section {
        padding: 30px 0;
    }

    .about-content-wrapper, .default-content-wrapper {
        padding: 22px 16px !important;
        font-size: 16px !important;
    }

    /* Страница "Контакти" */
    .contacts-page-section {
        padding: 30px 0 !important;
    }

    .contacts-grid, .regulatory-grid {
        gap: 20px !important;
        margin-bottom: 30px !important;
    }

    .contact-info-card, .regulator-card {
        min-width: 100% !important;
        padding: 22px 16px !important;
        flex: 1 1 100% !important;
    }

    .contact-map {
        min-width: 100% !important;
        flex: 1 1 100% !important;
    }

    .contact-map iframe {
        min-height: 280px !important;
    }

    /* Видео модал (Изскачащ прозорец) */
    .modal {
        padding: 15px;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
    }

    .close-modal {
        top: -42px;
        right: 0;
        font-size: 32px;
        padding: 2px 10px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 4px;
        line-height: 1;
    }

    /* Таблици и вграждания */
    .wp-block-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Футър */
    .site-footer {
        padding: 30px 0;
    }

    .footer-menu-list {
        gap: 15px;
        font-size: 13px;
    }
}

/* 4. Малки телефони (под 420px) */
@media screen and (max-width: 420px) {
    .container {
        padding: 0 12px;
    }

    .logo img {
        max-height: 48px;
    }

    .header-social-icons {
        gap: 8px !important;
        margin-right: 8px;
    }

    .header-social-icons svg {
        width: 17px;
        height: 17px;
    }

    #mobile-toggle {
        font-size: 22px;
        padding: 6px 10px;
    }

    .hero-card.main-card h2 {
        font-size: 18px;
    }

    .side-cards .hero-card {
        height: 160px;
    }

    .article-title {
        font-size: 20px !important;
    }
}

/* =========================================================
   СЪБИТИЯ И КОНЦЕРТИ (EVENTS & CONCERTS STYLES)
   ========================================================= */

.events-section {
    position: relative;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.event-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.event-poster-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    background-color: #0f172a;
    overflow: hidden;
}

.event-poster-link {
    display: block;
    width: 100%;
    height: 100%;
}

.event-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.event-card:hover .event-poster-img {
    transform: scale(1.05);
}

/* Календарно баджче */
.event-calendar-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    min-width: 58px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.badge-month {
    display: block;
    background: #d9534f;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 6px;
    letter-spacing: 0.5px;
}

.badge-day {
    display: block;
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
    padding: 3px 6px 5px;
    line-height: 1;
}

.event-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-artist-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #d9534f;
    margin-bottom: 10px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.event-artist-tag:hover {
    color: #b52b27;
    text-decoration: underline;
}

.event-title {
    font-size: 19px;
    line-height: 1.35;
    font-weight: 700;
    margin: 0 0 14px;
    color: #0f172a;
}

.event-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.event-title a:hover {
    color: #d9534f;
}

.event-meta-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #64748b;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.meta-icon {
    font-size: 15px;
    flex-shrink: 0;
}

.meta-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-card-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.event-btn {
    flex: 1;
    text-align: center;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.event-btn-details {
    background: #0f172a;
    color: #ffffff;
}

.event-btn-details:hover {
    background: #1e293b;
    color: #ffffff;
}

.event-btn-tickets {
    background: #d9534f;
    color: #ffffff;
}

.event-btn-tickets:hover {
    background: #b52b27;
    color: #ffffff;
}

.events-all-link {
    display: inline-block;
    padding: 12px 30px;
    background-color: #0f172a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    transition: background 0.3s ease;
}

.events-all-link:hover {
    background-color: #1e293b;
    color: #ffffff;
}

/* Кръгли аватари на изпълнители в събитие — снимките се изрязват отгоре, не от средата */
.event-artists-box img,
.event-artist-card img {
    object-position: top center !important;
}

@media screen and (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .single-event-container {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    .event-poster-wrapper {
        height: 200px;
    }

    .single-event-header {
        padding: 20px !important;
    }

    .single-event-header h1 {
        font-size: 24px !important;
    }

    .single-event-content {
        padding: 20px !important;
    }
}


/* =========================================================
   SVG ИКОНИ (без emoji — за по-професионален вид)
   ========================================================= */

/* Базов клас за всички икони в инфо-карето на събитие */
.ev-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    vertical-align: middle;
}

/* Икона: Календар (дата) */
.ev-icon-cal {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

/* Икона: Часовник */
.ev-icon-clock {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
}

/* Икона: Локация / Пин */
.ev-icon-pin {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

/* Малки икони в картичките на събитията */
.meta-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    min-width: 16px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    font-size: 0; /* скрива евентуален emoji текст */
}

.meta-icon-pin {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.meta-icon-clock {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
}

/* Икона: Микрофон за изпълнители */
.ev-icon-mic {
    display: inline-block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9534f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3z'/%3E%3Cpath d='M19 10v2a7 7 0 0 1-14 0v-2'/%3E%3Cline x1='12' y1='19' x2='12' y2='22'/%3E%3C/svg%3E");
    vertical-align: middle;
}


/* =========================================================
   ПРЕДАВАНИЯ И ЕПИЗОДИ (TV SHOWS & EPISODES CATALOG)
   ========================================================= */

/* Сетка на предаванията */
.shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
}

/* Карта на предаване */
.show-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.show-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.show-poster-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}

.show-poster-link {
    display: block;
    width: 100%;
    height: 100%;
}

.show-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.show-card:hover .show-poster-img {
    transform: scale(1.05);
}

.show-poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.show-top-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #d9534f;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.show-episodes-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.show-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.show-card .show-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px;
    line-height: 1.35;
}

.show-card .show-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.show-card .show-title a:hover {
    color: #d9534f;
}

.show-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.show-host-row {
    color: #334155;
}

.show-schedule-row {
    color: #64748b;
}

.show-excerpt {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin: 10px 0 20px;
}

.show-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.show-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d9534f;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: gap 0.2s, color 0.2s;
}

.show-action-btn:hover {
    gap: 10px;
    color: #b91c1c;
}

/* Сетка на епизодите */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 26px;
}

/* Карта на епизод */
.episode-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.episode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.episode-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}

.episode-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
}

.episode-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.episode-card:hover .episode-thumb-img {
    transform: scale(1.06);
}

.episode-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.episode-card:hover .episode-play-overlay {
    opacity: 1;
}

.episode-play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #d9534f;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.85);
    transition: transform 0.3s ease, background 0.2s;
    box-shadow: 0 4px 15px rgba(217, 83, 79, 0.5);
}

.episode-card:hover .episode-play-btn {
    transform: scale(1);
}

.episode-num-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
}

.episode-duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 2;
}

.episode-content {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.episode-air-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.episode-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 14px;
    line-height: 1.4;
}

.episode-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.episode-title a:hover {
    color: #d9534f;
}

.episode-footer {
    margin-top: auto;
    padding-top: 12px;
}

.episode-watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d9534f;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.2s;
}

.episode-watch-btn:hover {
    gap: 9px;
    color: #b91c1c;
}

/* Тъмна тема за картички при единичен епизод */
.episode-card-dark {
    background: #0f172a !important;
    border-color: #1e293b !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.episode-card-dark:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5) !important;
    border-color: #334155 !important;
}

/* Респонсив стилове за предавания и епизоди */
@media (max-width: 992px) {
    .broadcast-hero-inner {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        padding: 25px !important;
    }
}

@media (max-width: 768px) {
    .shows-grid {
        grid-template-columns: 1fr;
    }
    .episodes-grid {
        grid-template-columns: 1fr;
    }
    .broadcast-hero-inner {
        padding: 20px !important;
    }
    .episode-details-box {
        padding: 22px !important;
    }
}


/* =========================================================
   ДОКУМЕНТАЛНИ ФИЛМИ (TV FILMS CATALOG)
   ========================================================= */

/* Сетка за филми */
.films-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Карта на филм */
.film-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.film-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.film-poster-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}

.film-poster-link {
    display: block;
    width: 100%;
    height: 100%;
}

.film-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.film-card:hover .film-poster-img {
    transform: scale(1.06);
}

.film-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.film-card:hover .film-play-overlay {
    opacity: 1;
}

.film-play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #d9534f;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.85);
    transition: transform 0.3s ease, background 0.2s;
    box-shadow: 0 4px 15px rgba(217, 83, 79, 0.5);
}

.film-card:hover .film-play-btn {
    transform: scale(1);
}

.film-top-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #d9534f;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.film-genre-badge {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.film-meta-badges {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.film-year-badge {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fde047;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.film-duration-badge {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.film-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.film-title {
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.35;
}

.film-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.film-title a:hover {
    color: #d9534f;
}

.film-director-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
}

.film-excerpt {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin: 6px 0 18px;
}

.film-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.film-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d9534f;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: gap 0.2s;
}

.film-action-btn:hover {
    gap: 9px;
    color: #b91c1c;
}

.film-card-dark {
    background: #0f172a !important;
    border-color: #1e293b !important;
}

.film-card-dark:hover {
    border-color: #334155 !important;
}

/* =========================================================
   ОЧАКВАЙТЕ / ПРОМО ТРЕЙЛЪРИ (TV PROMOS)
   ========================================================= */

/* Сетка за промота */
.promos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

/* Карта на промо */
.promo-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.promo-poster-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}

.promo-poster-link {
    display: block;
    width: 100%;
    height: 100%;
}

.promo-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.promo-card:hover .promo-poster-img {
    transform: scale(1.06);
}

.promo-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.promo-card:hover .promo-play-overlay {
    opacity: 1;
}

.promo-play-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #d9534f;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.85);
    transition: transform 0.3s ease, background 0.2s;
    box-shadow: 0 4px 15px rgba(217, 83, 79, 0.5);
}

.promo-card:hover .promo-play-btn {
    transform: scale(1);
}

.promo-badge-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #d9534f;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.promo-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.promo-air-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #d9534f;
    font-weight: 700;
    margin-bottom: 8px;
}

.promo-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.35;
}

.promo-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.promo-title a:hover {
    color: #d9534f;
}

.promo-subtitle {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 18px;
}

.promo-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.promo-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d9534f;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: gap 0.2s;
}

.promo-action-btn:hover {
    gap: 9px;
    color: #b91c1c;
}

.promo-target-btn {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.promo-target-btn:hover {
    color: #ffffff;
}

/* Тъмна тема за карти в началната страница */
.promo-card-dark {
    background: #0f172a !important;
    border-color: #1e293b !important;
    color: #f8fafc !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

.promo-card-dark:hover {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6) !important;
    border-color: #334155 !important;
}

.promo-card-dark .promo-title {
    color: #ffffff !important;
}

.promo-card-dark .promo-title a:hover {
    color: #f87171 !important;
}

.promo-card-dark .promo-action-btn {
    color: #f87171 !important;
}

/* Пулсираща точка за индикация Скоро в ефир */
@keyframes promoPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.live-indicator-dot {
    animation: promoPulse 2s infinite ease-in-out;
}

/* Респонсив */
@media (max-width: 768px) {
    .films-grid {
        grid-template-columns: 1fr;
    }
    .promos-grid {
        grid-template-columns: 1fr;
    }
    .film-details-box,
    .promo-details-box {
        padding: 22px !important;
    }
}

/* ---- Header Search ---- */
.header-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.header-search-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0.85;
  display: flex;
  align-items: center;
  padding: 4px;
  transition: opacity 0.2s;
}
.header-search-btn:hover { opacity: 1; }
.header-search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 300px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 12px;
  z-index: 9999;
}
.header-search-dropdown.open { display: block; }
.header-search-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.header-search-input {
  flex: 1;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  color: #0f172a;
  transition: border-color 0.2s;
}
.header-search-input:focus { border-color: #d9534f; }
.header-search-submit {
  background: #d9534f;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 9px 12px;
  transition: background 0.2s;
}
.header-search-submit:hover { background: #c0392b; }
@media (max-width: 768px) {
  .header-search-dropdown { right: -60px; width: 260px; }
}
/* Повече място за текущото предаване в лентата "В ЕФИР" */
@media screen and (min-width: 769px) {
  .tv-schedule-bar .schedule-flex {
    gap: 16px;
  }

  .tv-schedule-bar .live-now {
    flex: 0 1 55%;
    max-width: 55%;
  }

  .tv-schedule-bar .live-now .show-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.25;
  }

  .tv-schedule-bar .up-next {
    flex: 1 1 auto;
    padding-left: 6px;
    gap: 14px;
  }

  .tv-schedule-bar .next-item {
    flex: 0 1 auto;
    min-width: 0;
  }

  .tv-schedule-bar .up-next .next-item:nth-child(n+3) {
    display: none;
  }
}