/* Paransky Raj - Frontend Styles */
:root {
  --primary: #667eea;
  --primary-dark: #5a67d8;
  --secondary: #764ba2;
  --accent: #f6ad55;
  --dark: #1a1a2e;
  --darker: #101018;
  --darkest: #08080e;
  --light: #edf2f7;
  --text: #e2e8f0;
  --text-muted: #a0aec0;
  --success: #48bb78;
  --danger: #f56565;
  --warning: #ed8936;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #b8a800;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 1200px) {
  .container {
    padding: 0 0.5rem 0 2rem;
  }
}

/* ========================================
   TICKER BAR
======================================== */
.ticker-bar {
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  height: 36px;
  overflow: hidden;
}

.ticker-label {
  background: transparent;
  color: #ffcc00;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  letter-spacing: 0.1em;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ticker-scroll {
  display: flex;
  gap: 3rem;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
  padding: 0 1rem;
  line-height: 36px;
}

.ticker-item {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.ticker-item a {
  color: var(--text);
  transition: color 0.2s;
}

.ticker-item a:hover {
  color: var(--primary);
}

@keyframes ticker-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ========================================
   HEADER
======================================== */
.main-header {
  background: #000;
  border-bottom: 1px solid rgba(255, 200, 100, 0.15);
  padding: 0.4rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.logo {
  position: relative;
}

.logo::before {
  display: none;
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 34px;
  display: block;
  /* Žluté logo na černém pozadí */
  filter: invert(1) sepia(1) saturate(3) hue-rotate(0deg) brightness(1.1);
}

/* ========================================
   MODERN NAV MENU
======================================== */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}

/* Nav Item */
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-item:hover {
  color: var(--text);
}

.nav-item:hover::after {
  width: 70%;
}

.nav-arrow {
  font-size: 0.65rem;
  opacity: 0.5;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: inline-block;
}

.nav-dropdown:hover .nav-arrow {
  transform: rotate(180deg);
}

/* Nav Badge (AI) */
.nav-badge {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(102, 126, 234, 0.4); }
  50% { box-shadow: 0 0 12px rgba(102, 126, 234, 0.7); }
}

/* Maruška nav special */
.maruska-nav {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
  border: 1px solid rgba(102, 126, 234, 0.15);
}

.maruska-nav:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
  border-color: rgba(102, 126, 234, 0.3);
}

.maruska-menu-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
}

.maruska-nav:hover .maruska-menu-avatar {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--secondary);
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.4);
}

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

/* Dropdown Menu - Ultra Modern */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) scaleY(0) perspective(500px) rotateX(-15deg);
  transform-origin: top center;
  background: linear-gradient(165deg, rgba(30, 30, 50, 0.98), rgba(20, 20, 35, 0.98));
  border: none;
  border-radius: var(--radius);
  padding: 0.25rem;
  min-width: 130px;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(102, 126, 234, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  /* Ultra smooth animation */
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease,
    visibility 0.3s ease,
    box-shadow 0.3s ease;
}

/* Glow effect on open */
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scaleY(1) perspective(500px) rotateX(0deg);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(102, 126, 234, 0.15),
    0 0 0 1px rgba(102, 126, 234, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Shimmer line at top */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.4s ease 0.1s;
}

.nav-dropdown:hover .nav-dropdown-menu::before {
  opacity: 1;
}

/* Dropdown Menu Items */
.nav-dropdown-menu a {
  display: block;
  padding: 0.4rem 0.7rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: calc(var(--radius) - 2px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Gradient background on hover */
.nav-dropdown-menu a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.08));
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: inherit;
}

/* Glowing dot indicator */
.nav-dropdown-menu a::after {
  content: '';
  position: absolute;
  left: 0.3rem;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 3px;
  height: 3px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--primary);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-dropdown-menu a:hover {
  color: var(--text);
  padding-left: 1.1rem;
}

.nav-dropdown-menu a:hover::before {
  opacity: 1;
}

.nav-dropdown-menu a:hover::after {
  transform: translateY(-50%) scale(1);
}

/* Staggered animation for items */
.nav-dropdown-menu a {
  opacity: 0;
  transform: translateX(-15px) scale(0.95);
}

.nav-dropdown:hover .nav-dropdown-menu a {
  animation: slideInBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.nav-dropdown:hover .nav-dropdown-menu a:nth-child(1) { animation-delay: 0.03s; }
.nav-dropdown:hover .nav-dropdown-menu a:nth-child(2) { animation-delay: 0.08s; }
.nav-dropdown:hover .nav-dropdown-menu a:nth-child(3) { animation-delay: 0.13s; }
.nav-dropdown:hover .nav-dropdown-menu a:nth-child(4) { animation-delay: 0.18s; }
.nav-dropdown:hover .nav-dropdown-menu a:nth-child(5) { animation-delay: 0.23s; }

@keyframes slideInBounce {
  0% {
    opacity: 0;
    transform: translateX(-20px) scale(0.9);
  }
  50% {
    transform: translateX(5px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Pařcoin menu link */
.parcoin-link {
  color: #ffc107 !important;
  font-weight: 600 !important;
}

.parcoin-link:hover {
  color: #ffca28 !important;
  text-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
}

.parcoin-menu-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-icons {
  display: flex;
  gap: 0.5rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  transition: all 0.2s;
}

.social-icons a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* Header Search */
.header-search {
  position: relative;
}

.header-search input {
  width: 180px;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.header-search input:focus {
  outline: none;
  width: 240px;
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.5);
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-results {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  margin-top: 0.5rem;
}

.search-results.active {
  display: block;
}

.search-result-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
  transition: background 0.15s;
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-img {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.search-result-content {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-cat {
  font-size: 0.75rem;
  color: var(--primary);
}

.search-no-results {
  padding: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

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

.btn-block {
  width: 100%;
}

/* ========================================
   MAIN CONTENT
======================================== */
.main-content {
  min-height: calc(100vh - 200px);
}

/* ========================================
   CONTENT BOX - Globální styl černého pozadí
======================================== */
.content-box {
  background: #000;
  color: #fff;
  padding: 1.5rem 2rem;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 100%, 25px 100%);
}

.content-box h1,
.content-box h2,
.content-box h3,
.content-box h4 {
  color: #fff;
}

.content-box a {
  color: #ffcc00;
}

.content-box a:hover {
  color: #fff;
}

/* Skosený styl - utility třída */
.skewed {
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 100%, 20px 100%);
  border-radius: 0;
}

/* ========================================
   HOME LAYOUT
======================================== */
.home-layout {
  display: block;
  padding: 2rem 0;
}

.home-layout .sidebar {
  display: none;
}

.main-column {
  min-width: 0;
}

/* ========================================
   FEATURED SLIDER
======================================== */
.featured-slider {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: #000;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 100%, 30px 100%);
}

.slider-container {
  position: relative;
  aspect-ratio: 16 / 4.2; /* -40% výška */
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slide.active {
  opacity: 1;
}

.slide a {
  display: block;
  height: 100%;
}

.slide-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--darkest);
}

/* Blurred background layer */
.slide-image::before {
  content: '';
  position: absolute;
  inset: -20px;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.5);
  transform: scale(1.1);
  z-index: 0;
}

.slide-image img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

.slide-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 2rem 1.25rem;
  z-index: 1;
  background: rgba(0, 0, 0, 0.75);
}

.slide-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 1rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.slide-title {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.slide-content p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.slider-btn:hover {
  background: var(--primary);
}

.slider-btn.prev {
  left: 1rem;
}

.slider-btn.next {
  right: 1rem;
}

.slider-dots {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.dot.active,
.dot:hover {
  background: var(--primary);
}

/* ========================================
   ARTICLES SECTION
======================================== */
.articles-section {
  margin-bottom: 2rem;
  padding-top: 1rem;
  border-top: 2px solid #000;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding: 0.5rem 2rem;
  background: #000;
  color: #fff;
  display: inline-block;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 100%, 15px 100%);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(322px, 1fr)); /* +15% šířka */
  gap: 1.5rem;
}

/* ========================================
   ARTICLE CARD
======================================== */
.article-card {
  background: #000;
  border-radius: 0;
  overflow: hidden;
  transition: all 0.3s;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 100%, 20px 100%);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-image-link {
  display: block;
}

.card-image {
  height: 153px;
  background-color: var(--darkest);
  position: relative;
  overflow: hidden;
}

/* Blurred background for cards */
.card-image::before {
  content: '';
  position: absolute;
  inset: -10px;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  filter: blur(15px) brightness(0.5);
  transform: scale(1.1);
  z-index: 0;
}

.card-image img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

.badge-new {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.625rem;
  background: var(--accent);
  color: var(--darkest);
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 0.25rem;
  letter-spacing: 0.05em;
  z-index: 2;
}

.card-content {
  padding: 1.25rem;
}

.card-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.card-category:hover {
  color: var(--secondary);
}

.card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.card-title a {
  transition: color 0.2s;
}

.card-title a:hover {
  color: var(--primary);
}

.card-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.meta-author,
.meta-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

a.meta-author {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

a.meta-author:hover {
  color: var(--primary);
}

/* Černá barva autora na detailu článku (žluté pozadí) */
.article-meta a.meta-author {
  color: #000;
}

.article-meta a.meta-author:hover {
  color: #333;
}

/* ========================================
   SIDEBAR
======================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.widget {
  background: linear-gradient(145deg, #f5f5f8 0%, #e8e8ee 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #2a2a3a;
}

.widget-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  color: #1a1a2e;
}

.widget-text {
  font-size: 0.875rem;
  color: #4a4a5a;
  margin-bottom: 1rem;
}

.widget-podcast img {
  width: 100%;
  border-radius: var(--radius);
  transition: opacity 0.2s;
}

.widget-podcast:hover img {
  opacity: 0.9;
}

.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.partner-link img {
  width: 100%;
  border-radius: var(--radius);
  transition: transform 0.2s;
}

.partner-link:hover img {
  transform: scale(1.02);
}

.widget-promo {
  padding: 0;
  overflow: hidden;
}

.widget-promo img {
  width: 100%;
  display: block;
}

.widget-qr {
  width: 100%;
  border-radius: var(--radius);
}

/* Search Widget */
.search-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: #fff;
  color: #1a1a2e;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.search-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.search-cat {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #4a4a5a;
  cursor: pointer;
}

.search-cat input[type="checkbox"] {
  accent-color: var(--primary);
}

.search-btn {
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Search Page */
.search-page {
  padding: 2rem 0;
}

.search-box {
  background: linear-gradient(145deg, #1a1a2e 0%, #16162a 100%);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.search-form-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-row {
  display: flex;
  gap: 0.75rem;
}

.search-input-page {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
}

.search-input-page:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.search-input-page::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-btn-page {
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}

.search-btn-page:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.search-categories-page {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.cat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.search-cat-page {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.search-cat-page input[type="checkbox"] {
  accent-color: var(--primary);
}

.search-results-count {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

@media (max-width: 576px) {
  .search-row {
    flex-direction: column;
  }

  .search-categories-page {
    gap: 0.5rem 1rem;
  }
}

/* ========================================
   EMPTY STATE
======================================== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: #000;
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

/* ========================================
   FOOTER
======================================== */
.main-footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-about {
  padding-right: 2rem;
}

.footer-support {
  text-align: center;
}

.footer-support h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer-qr {
  width: 120px;
  height: 120px;
  border-radius: var(--radius);
  object-fit: cover;
}

.footer-logo {
  height: 36px;
  margin-bottom: 1rem;
  /* Žluté logo na černém pozadí */
  filter: invert(1) sepia(1) saturate(3) hue-rotate(0deg) brightness(1.1) drop-shadow(0 0 8px rgba(255, 220, 0, 0.8));
}

.footer-about p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ========================================
   ARTICLE PAGE
======================================== */
.article-page {
  padding: 2rem 0;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
}

.article-main {
  min-width: 0;
}

.article-category {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-category:hover {
  background: var(--secondary);
}

.article-title {
  display: inline-block;
  position: relative;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #fff;
  padding: 0.6rem 2.5rem;
  background: #000;
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 100%, 40px 100%);
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #000;
  color: #333;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #000;
}

.article-meta svg {
  fill: #000;
}

.article-featured-image {
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.article-featured-image img {
  width: 100%;
  display: block;
}

.article-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #fff;
  background: #000;
  padding: 1.5rem 2rem;
  border: none;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 100%, 30px 100%);
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.article-content h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
}

.article-content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--dark);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
}

.article-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: #000;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 100%, 20px 100%);
}

.article-share span {
  font-weight: 600;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.2s;
}

.share-fb {
  background: #1877f2;
  color: white;
}

.share-tw {
  background: #1da1f2;
  color: white;
}

.share-btn:hover {
  transform: scale(1.1);
}

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.related-articles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.related-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.related-image {
  width: 80px;
  height: 60px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.related-content h4 {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.related-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========================================
   CATEGORY PAGE
======================================== */
.category-page {
  padding: 2rem 0;
}

.category-header {
  margin-bottom: 2rem;
}

.category-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.category-description {
  display: inline-block;
  position: relative;
  color: #fff;
  font-weight: 700;
  padding: 0.5rem 1rem;
  background: #000;
}

.category-description::after {
  content: '';
  position: absolute;
  top: 0;
  left: 100%;
  width: 100vw;
  height: 100%;
  background: linear-gradient(to right, #000 0%, transparent 70%);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.pagination-btn {
  padding: 0.5rem 1rem;
  background: #000;
  color: #fff;
  border-radius: var(--radius);
  font-weight: 500;
  transition: all 0.2s;
}

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

.pagination-info {
  color: #333;
  font-size: 0.875rem;
}

.pagination-top {
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-top: 0;
  padding-bottom: 1.5rem;
  border-top: none;
  border-bottom: 1px solid var(--border);
}

/* ========================================
   REDAKCE PAGE
======================================== */
.redakce-page {
  padding: 2rem 0;
}

.page-header {
  text-align: left;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.page-subtitle {
  display: inline-block;
  position: relative;
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  padding: 0.5rem 1rem;
  background: #000;
}

.page-subtitle::after {
  content: '';
  position: absolute;
  top: 0;
  left: 100%;
  width: 100vw;
  height: 100%;
  background: linear-gradient(to right, #000 0%, transparent 70%);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.team-member {
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
}

.member-photo {
  aspect-ratio: 1;
  overflow: hidden;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-info {
  padding: 1.5rem;
}

.member-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.member-role {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.member-bio {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.member-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.member-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.member-contact:hover {
  color: var(--primary);
}

.about-section,
.contact-section {
  background: #000;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

.about-section h2,
.contact-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-section p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.contact-item h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-item a {
  color: var(--primary);
  font-size: 0.875rem;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* ========================================
   ERROR PAGE
======================================== */
.error-page {
  text-align: center;
  padding: 6rem 2rem;
}

.error-page h1 {
  font-size: 6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.error-page p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
  .home-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .article-sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .footer-support {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }

  /* Hide social icons on tablet - they're in footer */
  .social-icons {
    display: none;
  }
}

@media (max-width: 768px) {
  .ticker-bar {
    display: none;
  }

  .main-header .container {
    flex-wrap: wrap;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--darker);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .main-nav.active {
    display: flex;
  }

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

  .social-icons {
    display: none;
  }

  .slide-title {
    font-size: 1.25rem;
  }

  .slide-content p {
    display: none;
  }

  .slider-btn {
    width: 36px;
    height: 36px;
  }

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

  .article-title {
    font-size: 1.5rem;
  }

  .article-meta {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-about {
    padding-right: 0;
  }

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

@media (max-width: 480px) {
  .slider-container {
    aspect-ratio: 4 / 3;
  }

  .card-image {
    height: 160px;
  }
}

/* Screen reader only - visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Site intro paragraph - subtle for SEO */
.site-intro {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    opacity: 0.6;
    text-align: center;
}

/* ========================================
   MOBILE IMPROVEMENTS
======================================== */

/* Tablet - 1024px */
@media (max-width: 1024px) {
  .header-search input {
    width: 150px;
  }
  .header-search input:focus {
    width: 200px;
  }
}

/* Mobile - 768px */
@media (max-width: 768px) {
  /* Container padding */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Header improvements */
  .main-header {
    padding: 0.75rem 0;
  }
  
  .logo img {
    height: 32px;
  }
  
  /* Search on mobile */
  .header-search {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: var(--darker);
    z-index: 1001;
    display: none;
  }
  
  .header-search.mobile-active {
    display: block;
  }
  
  .header-search input {
    width: 100%;
  }
  
  .header-search input:focus {
    width: 100%;
  }
  
  .search-results {
    width: 100%;
    left: 0;
    right: 0;
    border-radius: 0 0 8px 8px;
  }
  
  /* Mobile search toggle button */
  .mobile-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.25rem;
  }
  
  /* Mobile nav improvements */
  .main-nav {
    gap: 0;
  }
  
  .main-nav a {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
  }
  
  .main-nav a:last-child {
    border-bottom: none;
  }
  
  /* Slider mobile */
  .featured-slider {
    clip-path: none;
    border-radius: 8px;
    margin: 0 -1rem 1.5rem;
    width: calc(100% + 2rem);
  }
  
  .slide-content {
    padding: 1rem;
  }
  
  .slide-category {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }
  
  .slide-title {
    font-size: 1.1rem;
    line-height: 1.3;
  }
  
  /* Cards mobile */
  .article-card {
    display: flex;
    flex-direction: row;
    height: auto;
  }
  
  .card-image-link {
    flex-shrink: 0;
    width: 120px;
  }
  
  .card-image {
    height: 100%;
    min-height: 100px;
    border-radius: 8px 0 0 8px;
  }
  
  .card-content {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .card-title {
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 0.25rem;
  }
  
  .card-excerpt {
    display: none;
  }
  
  .card-meta {
    font-size: 0.75rem;
  }
  
  .badge-new {
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
    top: 0.5rem;
    left: 0.5rem;
  }
  
  /* Site intro mobile */
  .site-intro {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
  }
  
  /* Section title */
  .section-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  /* Footer mobile */
  .footer-grid {
    gap: 1.5rem;
  }
  
  .footer-col h4 {
    margin-bottom: 0.75rem;
  }
  
  .footer-col ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
  }
  
  .footer-col li {
    margin-bottom: 0;
  }
}

/* Small mobile - 480px */
@media (max-width: 480px) {
  /* Even smaller padding */
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  /* Smaller logo */
  .logo img {
    height: 28px;
  }
  
  /* Cards even more compact */
  .card-image-link {
    width: 100px;
  }
  
  .card-image {
    min-height: 85px;
  }
  
  .card-title {
    font-size: 0.875rem;
  }
  
  .card-content {
    padding: 0.5rem 0.75rem;
  }
  
  /* Slider */
  .slide-title {
    font-size: 1rem;
  }
  
  .slider-btn {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }
  
  .slider-dots {
    bottom: 0.5rem;
  }
  
  .slider-dots .dot {
    width: 6px;
    height: 6px;
  }
}

/* Touch improvements */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .main-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  
  .slider-btn {
    min-width: 44px;
    min-height: 44px;
  }
  
  .card-title a {
    display: block;
    padding: 0.25rem 0;
  }
  
  /* Remove hover effects on touch */
  .article-card:hover {
    transform: none;
  }
}

/* ========================================
   CARD SPIN ANIMATION
======================================== */
@keyframes cardSpinIn {
  0% {
    opacity: 0;
    transform: translate(var(--spin-x, 0), var(--spin-y, 0)) rotate(var(--spin-rot, 720deg)) scale(0.3);
  }
  60% {
    opacity: 1;
    transform: translate(0, 0) rotate(15deg) scale(1.05);
  }
  80% {
    transform: translate(0, 0) rotate(-5deg) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
}

.article-card.spin-animate {
  animation: cardSpinIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
}

/* Grid needs perspective for 3D effect */
.articles-grid.animating {
  perspective: 1500px;
}

/* ========================================
   PINNED ARTICLES - "HORKÉ ČLÁNKY"
======================================== */
/* ========================================
   DUAL SLIDER - HOMEPAGE
======================================== */
.dual-slider-section {
  margin-bottom: 2rem;
}

.dual-slider-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.slider-box {
  position: relative;
}

.slider-label {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.4rem 1rem 0.4rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 5;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%);
}

.slider-label.videos-label {
  background: #dc2626;
}

.mini-slider {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #000;
  clip-path: polygon(20px 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
}

.slides-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.mini-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
  text-decoration: none;
}

.mini-slide.active {
  opacity: 1;
}

.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1rem 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.mini-slider .slide-category {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.mini-slider .slide-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

/* Video specific */
.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(220, 38, 38, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  opacity: 0.9;
  transition: all 0.3s;
  z-index: 3;
}

.mini-slide:hover .video-play-icon {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 1;
}

/* Video overlay - hidden by default, show on hover */
.video-overlay {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.mini-slide:hover .video-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Video slide clickable */
.video-slide {
  cursor: pointer;
}

/* Video embed in slider */
.video-embed-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: none;
  background: #000;
}

.video-embed-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-close-btn {
  position: absolute;
  top: 40px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: rgba(220, 0, 0, 0.9);
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 9999;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-close-btn:hover {
  background: #f00;
  transform: scale(1.15);
}

/* Slider dots */
.mini-slider .slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.mini-slider .slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  padding: 0;
}

.mini-slider .slider-dots .dot.active {
  background: #fff;
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .dual-slider-wrapper {
    grid-template-columns: 1fr;
  }

  .mini-slider {
    height: 220px;
  }
}

.pinned-section {
  margin-bottom: 2.5rem;
}

/* Knight Rider scanner bar */
.knight-rider-bar {
  height: 12px;
  background: linear-gradient(180deg, #1a1a1a 0%, #000 50%, #1a1a1a 100%);
  border-radius: 6px;
  margin: 1rem 0 1.5rem 0;
  position: relative;
  overflow: hidden;
  border: 1px solid #333;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.9), 0 0 10px rgba(0,0,0,0.5);
}

/* Létající plamínek */
.knight-rider-bar::before {
  content: '🔥';
  position: absolute;
  top: -8px;
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px #ff6600) drop-shadow(0 0 15px #ff3300);
  animation: fireRider 2s linear infinite alternate;
}

@keyframes fireRider {
  0% {
    left: 0;
  }
  100% {
    left: calc(100% - 25px);
  }
}

/* Pohasínající oranžová stopa */
.knight-rider-bar::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 0;
  height: calc(100% - 2px);
  width: 150px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 150, 0, 0.1) 20%,
    rgba(255, 120, 0, 0.3) 40%,
    rgba(255, 100, 0, 0.5) 60%,
    rgba(255, 80, 0, 0.7) 80%,
    transparent 100%
  );
  border-radius: 4px;
  animation: knightRiderTrail 2.5s ease-in-out infinite;
}

@keyframes knightRiderMain {
  0% {
    left: -30px;
  }
  49% {
    left: 100%;
  }
  50% {
    left: 100%;
  }
  99% {
    left: -30px;
  }
  100% {
    left: -30px;
  }
}

@keyframes knightRiderTrail {
  0% {
    left: -150px;
    transform: scaleX(1);
  }
  49% {
    left: calc(100% - 120px);
    transform: scaleX(1);
  }
  50% {
    left: calc(100% - 30px);
    transform: scaleX(-1);
  }
  99% {
    left: -30px;
    transform: scaleX(-1);
  }
  100% {
    left: -150px;
    transform: scaleX(1);
  }
}

.pinned-section .section-title.pinned-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.pinned-title .knight-rider-bar {
  width: 100%;
  margin: 0.5rem 0 0 0;
}

.hot-badge {
  font-size: 1.2em;
  display: inline-block;
  animation: pulse 1.5s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.2);
    filter: brightness(1.3);
  }
}

.pinned-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.pinned-card {
  position: relative;
  border: 2px solid #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(0, 0, 0, 0.9) 50%);
}

.pinned-card:hover {
  border-color: #fbbf24;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.hot-ribbon {
  position: absolute;
  top: 12px;
  right: 15px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.25rem 1rem 0.25rem 0.75rem;
  z-index: 10;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%, 8px 50%);
}

.pinned-card .card-image {
  height: 160px;
}

@media (max-width: 768px) {
  .pinned-grid {
    grid-template-columns: 1fr;
  }

  .pinned-card {
    flex-direction: row;
  }

  .pinned-card .card-image {
    width: 120px;
    height: auto;
    min-height: 100px;
  }
}

/* ========================================
   PLAYING CARD EFFECT - REDAKCE
======================================== */
.team-grid {
  perspective: 2000px;
}

.team-member.playing-card {
  position: relative;
  height: 450px;
  background: transparent;
  border-radius: 16px;
}

.team-member.playing-card .card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.team-member.playing-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.team-member.playing-card .card-back,
.team-member.playing-card .card-front {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
}

/* Card Back - Classic playing card design */
.team-member.playing-card .card-back {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
  border: 3px solid #c9a227;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-back-design {
  width: 90%;
  height: 90%;
  border: 2px solid #c9a227;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-back-pattern {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(201, 162, 39, 0.1) 10px, rgba(201, 162, 39, 0.1) 20px),
    repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(201, 162, 39, 0.1) 10px, rgba(201, 162, 39, 0.1) 20px);
}

.card-back-center {
  font-size: 80px;
  color: #c9a227;
  text-shadow: 0 0 30px rgba(201, 162, 39, 0.5);
  z-index: 1;
  animation: cardPulse 2s ease-in-out infinite;
}

@keyframes cardPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* Card Front */
.team-member.playing-card .card-front {
  background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
  border: 3px solid #c9a227;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

/* Card corners with rank and suit */
.card-corner {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  font-weight: bold;
  z-index: 10;
}

.card-corner.top-left {
  top: 10px;
  left: 12px;
}

.card-corner.bottom-right {
  bottom: 10px;
  right: 12px;
  transform: rotate(180deg);
}

.card-rank {
  font-size: 1.5rem;
  color: #c9a227;
}

.card-suit {
  font-size: 1.2rem;
}

/* Suit colors */
[data-suit="hearts"] .card-suit,
[data-suit="diamonds"] .card-suit,
.hearts-card .card-suit,
.diamonds-card .card-suit {
  color: #e74c3c;
}

[data-suit="spades"] .card-suit,
[data-suit="clubs"] .card-suit {
  color: #2c3e50;
}

[data-suit="wild"] .card-suit,
.joker-card .card-suit {
  color: #9b59b6;
}

/* Joker special styling */
.joker-card {
  background: linear-gradient(180deg, #2d1f3d 0%, #1a1a2e 100%) !important;
  border-color: #9b59b6 !important;
}

.joker-card .card-rank {
  color: #9b59b6;
}

/* Hearts card accent */
.hearts-card {
  border-color: #e74c3c !important;
}

.hearts-card .card-rank {
  color: #e74c3c;
}

/* Diamonds card accent */
.diamonds-card {
  border-color: #e67e22 !important;
}

.diamonds-card .card-rank {
  color: #e67e22;
}

/* Member content inside card */
.team-member.playing-card .member-photo {
  width: 120px;
  height: 120px;
  margin: 1.5rem auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #c9a227;
  flex-shrink: 0;
}

.team-member.playing-card .member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member.playing-card .member-info {
  text-align: center;
  padding: 0 0.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.team-member.playing-card .member-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: #fff;
}

.team-member.playing-card .member-role {
  color: #c9a227;
  font-size: 0.85rem;
  font-weight: 500;
}

.team-member.playing-card .member-bio {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.75rem 0;
  line-height: 1.4;
  flex: 1;
}

.team-member.playing-card .member-contacts {
  margin-top: auto;
}

.team-member.playing-card .member-contact {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.team-member.playing-card .member-contact:hover {
  color: #c9a227;
}

/* Hover effect on flipped cards */
.team-member.playing-card.flipped:hover .card-inner {
  transform: rotateY(180deg) translateY(-8px);
}

/* Responsive */
@media (max-width: 768px) {
  .team-member.playing-card {
    height: 400px;
  }

  .team-member.playing-card .member-photo {
    width: 100px;
    height: 100px;
  }

  .card-back-center {
    font-size: 60px;
  }
}

/* ============================================
   SHINE SWEEP EFFECT (moved from inline)
   ============================================ */
.shine-sweep {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.shine-sweep::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.03) 45%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 55%,
        transparent 60%,
        transparent 100%
    );
    transform: translateX(-200%) translateY(-50%);
    opacity: 0;
}
.shine-sweep.from-left::before {
    animation: shineSweepLeft 2.5s ease-in-out forwards;
}
.shine-sweep.from-right::before {
    background: linear-gradient(
        -45deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.03) 45%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 55%,
        transparent 60%,
        transparent 100%
    );
    animation: shineSweepRight 2.5s ease-in-out forwards;
}
@keyframes shineSweepLeft {
    0% { transform: translateX(-100%) translateY(-25%); opacity: 1; }
    100% { transform: translateX(100%) translateY(25%); opacity: 1; }
}
@keyframes shineSweepRight {
    0% { transform: translateX(100%) translateY(-25%); opacity: 1; }
    100% { transform: translateX(-100%) translateY(25%); opacity: 1; }
}

/* ========================================
   VIDEO SIZES IN ARTICLES
======================================== */
.video-wrapper {
    margin: 1.5rem 0;
    clear: both;
}

.video-wrapper iframe {
    border-radius: var(--radius);
    max-width: 100%;
}

.video-small {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.video-medium {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.video-large {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.video-full {
    width: 100%;
}

.video-full iframe {
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
}

/* ========================================
   IMAGE SIZES IN ARTICLES
======================================== */
.article-image {
    border-radius: var(--radius);
    height: auto;
}

.image-small {
    max-width: 300px;
}

.image-medium {
    max-width: 500px;
}

.image-large {
    max-width: 800px;
}

.image-full {
    width: 100%;
    max-width: 100%;
}

.image-align-left {
    float: left;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.image-align-right {
    float: right;
    margin-left: 1rem;
    margin-bottom: 0.5rem;
}

.image-align-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    float: none;
}

/* Clear floats after images */
.article-body::after,
.article-content::after {
    content: '';
    display: table;
    clear: both;
}

@media (max-width: 600px) {
    .video-wrapper {
        max-width: 100% !important;
    }

    .article-image {
        float: none !important;
        display: block !important;
        margin: 1rem auto !important;
        max-width: 100% !important;
    }
}

/* Translation Announcement - Maruška articles header */
.translation-announcement {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.translation-announcement::before {
    content: '🎮';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 4rem;
    opacity: 0.1;
}

.translation-announcement .announcement-intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.translation-announcement .announcement-intro strong {
    color: var(--primary);
}

.translation-announcement .announcement-intro a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.translation-announcement .announcement-intro a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.translation-announcement .announcement-game {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0.5rem 0;
    line-height: 1.2;
}

.translation-announcement .announcement-game a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.translation-announcement .announcement-game a:hover {
    color: var(--primary);
}

.translation-announcement .announcement-download {
    font-size: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.translation-announcement .announcement-download a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.translation-announcement .announcement-download a:hover {
    color: var(--primary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .translation-announcement {
        padding: 1rem 1.25rem;
    }

    .translation-announcement .announcement-game {
        font-size: 1.5rem;
    }
}
