/* /style.css */
:root {
  --bg: #0e0f13;
  --panel: #151822;
  --muted: #8b90a0;
  --text: #e9ecf1;
  --accent: #6ee7b7;
  --card: #191d28;
  --cardHover: #202637;
  --border: #232836;
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial
}

a {
  color: inherit;
  text-decoration: none
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px
}

.site-header {
  background: linear-gradient(180deg, #0e0f13 0%, #10131a 60%, #0e0f13 100%);
  border-bottom: 1px solid var(--border)
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px
}

.brand-mark {
  font-size: 22px;
  color: var(--accent)
}

.brand-title {
  margin: 0;
  font-size: 22px;
  letter-spacing: .5px
}

.main-nav a {
  margin-left: 16px;
  padding: 8px 10px;
  border-radius: 8px;
  opacity: .9
}

.main-nav a:hover {
  background: var(--panel)
}

.hero {
  padding: 28px 0 10px 0
}

.hero h2 {
  margin: .2em 0 .2em 0;
  font-size: 28px
}

.hero p {
  margin: 0;
  color: var(--muted)
}

.section {
  padding: 28px 0;
  border-top: 1px solid var(--border)
}

.section-title {
  margin: 0 0 14px 0;
  font-size: 22px
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px
}

.grid>.card {
  grid-column: span 6
}

@media (min-width:720px) {
  .grid>.card {
    grid-column: span 4
  }
}

@media (min-width:980px) {
  .grid>.card {
    grid-column: span 3
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: .2s ease;
  min-height: 140px
}

.card:hover {
  transform: translateY(-2px);
  background: var(--cardHover)
}

.card-thumb {
  aspect-ratio: 16/9;
  background: #0f121a;
  border-bottom: 1px solid var(--border);
  display: grid;
  place-items: center;
  position: relative
}

.card-thumb svg {
  width: 34%;
  opacity: .55
}

.card-body {
  padding: 12px 12px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px
}

.card-title {
  font-weight: 600
}

.card-meta {
  color: var(--muted);
  font-size: 13px
}

.card-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.btn {
  display: block;
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: #10131a;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.btn:hover {
  border-color: #2a3145;
  background: #2a3242; /* lighter */
}

.badge {
  display: inline-block;
  background: rgba(110, 231, 183, .1);
  border: 1px solid rgba(110, 231, 183, .25);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  margin-top: 20px;
  color: var(--muted)
}

/* Video cards */
.grid-videos .card-thumb {
  background: #0c1017
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none
}

.play-overlay span {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: saturate(1.2) blur(2px)
}

.play-overlay svg {
  width: 22px;
  fill: white;
  opacity: .95;
  margin-left: 2px
}

.iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000
}

.iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-bottom: 1px solid var(--border)
}


#intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: black;
  z-index: 10;
}

#lettersContainer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
}

.letter {
  display: block;
  position: relative;
  width: 1em;
  height: 1em;
}

.letter span {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  text-align: center;
}

.letter .from {
  opacity: 1;
  color: grey;
}

.letter .to {
  opacity: 0;
  color: whitesmoke;
  color: darkred;
}


/*


@media (max-width: 767px) {

  #lettersContainer, 
  #lettersContainer .from{
    font-size: 1.4em;
  }
  #lettersContainer, 
  #lettersContainer .to {
    font-size: 1.4em;
  }
}*/