
:root {
  --highlight: #cdbc8d;
  --highlight-hover: #cdbc8d66;
  --background: #111;
  --foreground: #eee;
  --header-bg: #1a1a1a;
  --card-bg: #222;
  --card-shadow: #000;
  --text-muted: #ccc;
  --footer-bg: #000;
  --footer-text: #666;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--foreground);
}

header {
  text-align: center;
  padding: 2rem;
  background: var(--header-bg);
  font-size: 1.5rem;
  color: var(--highlight);
}

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

.card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s;
  box-shadow: 0 0 10px var(--card-shadow);
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px var(--highlight-hover);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: opacity 0.5s;
}

.card-content {
  padding: 1rem;
}

.card h2 {
  margin-top: 0;
  color: var(--highlight);
}

.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.card a {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--foreground);
  background: var(--highlight);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
}

.main-hero {
  position: relative;
  height: 60vh;
  background-size: cover;
  background-position: center;
  margin-bottom: 2rem;
  border-bottom: 4px solid var(--highlight);
}

.main-overlay {
  position: absolute;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: var(--foreground);
  padding: 2rem;
}

.main-overlay h2 {
  font-size: 2rem;
  margin: 0 0 1rem;
  color: var(--highlight);
}

.main-overlay p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  max-width: 600px;
}

.main-overlay a {
  background: var(--highlight);
  color: var(--background);
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
}

footer {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background-color: var(--footer-bg);
  font-size: 0.9rem;
  color: var(--footer-text);
}

footer a {
  color: var(--highlight);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
/* Slideshow container for Eva Nilon highlight */
.slideshow-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 60vh;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease-in-out;
  top: 0;
  left: 0;
}
/* Video Channel Player */
#videoChannelPlayer {
  max-width: 980px;
  margin: 2.5rem auto 3rem auto;
  position: relative;
  z-index: 5;
}
.channel-panel {
  position: fixed;
  right: 0; top: 0; bottom: 0;
  width: 320px;
  background: rgba(30,30,30,0.97);
  box-shadow: -8px 0 24px #000a;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.6,.3,.3,1.1);
  z-index: 200;
  display: flex; flex-direction: column;
  padding: 2rem 1rem 1rem 1rem;
}
.channel-panel.open {
  transform: translateX(0);
}
.channel-panel-open {
  position: fixed;
  right: 0; top: 40%; 
  transform: translateY(-50%);
  background: #111c;
  color: var(--highlight);
  font-size: 2rem;
  padding: 1rem 0.5rem 1rem 1.5rem;
  border-radius: 2rem 0 0 2rem;
  cursor: pointer;
  z-index: 201;
  transition: background 0.2s;
}
.channel-list {
  display: flex; flex-direction: column; gap: 1.2rem;
}
.channel-card {
  display: flex; align-items: center; gap: 1rem;
  background: #232323bb;
  border-radius: 1rem;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px #0004;
}
.channel-card:hover, .channel-card.active {
  background: #2c2c22;
  box-shadow: 0 4px 16px #cdbc8d55;
}
.channel-flag { font-size: 1.6rem; }
.channel-name { font-weight: bold; color: #eee; font-size: 1.1rem; }
.channel-count { color: var(--highlight); font-size: 0.95rem; }
@media (max-width: 700px) {
  .channel-panel { width: 88vw; padding: 1.2rem 0.4rem 1.2rem 0.7rem;}
  .channel-panel-open { font-size: 1.6rem; padding: 1rem 0.3rem 1rem 1.2rem;}
}
.channel-flag {
  width: 2rem;
  height: 2rem;
  display: inline-block;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 2px #222;
  vertical-align: middle;
  margin-right: 0.2rem;
}
.channel-flag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
