.description {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: white;
    margin-top: 20px;
    margin-bottom: 15px;
    text-align: center;
    z-index: 5;
    max-width: 900px; width: 90%;
}

@keyframes float {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

.itch-embed {
  border-radius: 12px;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 1);
  margin: 20px 0;
  position: relative;
  left: 50%;
  width: 80%;
  max-width: 550px;
  transform: translateX(-50%);
  display: block;
}

.youtube-embed {
  border-radius: 12px;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 1);
  margin: 20px auto;
  position: relative;
  display: block;
  width: 80%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
}

.home-content {
  display: grid;
  position: relative;
  z-index: 5;
  grid-template-columns: 2fr 1.2fr;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
  width: 95%;
  height: auto;
  min-height: 910px;
  margin: 40px auto;
  max-width: 1300px;
  border-radius: 4px;
}

.home-content > * {
  background: rgba(0, 0, 0, 0.400);
  border: 2px solid white;
  border-radius: 20px;
  padding: 25px 25px;
}

.home-content h1 {
    font-weight: normal;
    text-align: center;;
}

.news-container {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  position: relative;
}

.videos-container {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

.videos-container .article-entry {
  height: 450px;
  max-height: 450px;
}

.media-container {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.media-container iframe {
  border-radius: 15px;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

.media-container .media-image {
  width: 100%;
  height: auto;
  margin-top: 18px;
  border-radius: 15px;
  display: block;
  max-width: 100%;
  object-fit: contain;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.18s;
  border: 7px solid transparent;
  box-shadow: none;
  cursor: pointer;
}

.media-container .media-image:hover {
  border-color: #00000000;
  box-shadow:
    0 0 0 5px #00FFFF;
  transform: scale(1.02);
}

.media-container .media-image.no-preview {
  margin-top: auto;
}

.media-container .media-image.no-preview:hover {
  border-color: transparent;
  box-shadow: none;
  transform: none;
  cursor: default;
}

.latest-news-preview {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 30px;
}

.latest-news-preview .latest-news-content {
  flex: 2;
}

.latest-news-title {
  font-size: 40px;
  font-weight: 500;
  color: white;
}

.latest-news-date {
  color: #aaa;
  margin: 10px 0 20px 0;
  font-size: 14px;
}

.latest-news-views {
  color: #aaa;
  font-size: 20px;
  margin-top: 10px;
  margin-bottom: 0;
}

.latest-news-thumbnail-container {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 10px;
}

.latest-news-thumbnail {
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: cover;
  border: 4px solid #00000053;
  border-radius: 10px;
}

.latest-news-content .full-article-content {
  color: #eee;
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.5;
  white-space: pre-line;
  list-style-position: inside;
}

.latest-news-content .full-article-content > * {
  margin-left: 0;
  padding-left: 0;
  text-align: left;
}

.latest-news-content .full-article-content h1 {
  font-size: 40px;
}

.news-preview-fade {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.news-preview-readmore {
  display: block;
  width: 100%;
  align-self: stretch;
  padding: 8px 24px;
  font-size: 18px;
  font-family: inherit;
  color: #fff;
  background: #00000053;
  border-color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  box-sizing: border-box;
  margin-top: 10px;
}

.news-preview-readmore:hover {
  color: #00ffff;
  border-color: #00ffff;
  transform: scale(1.02);
}

.news-preview-separator {
  border: none;
  border-top: 2.5px dashed rgb(171, 171, 171);
  margin-top: 10px;
  margin-bottom: 15px;
  width: 100%;
  opacity: 0.5;
}



.logo-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 46px;
    margin-top: 130px;
    margin-bottom: 20px;
    pointer-events: none;
}

.logo {
    position: relative;
    width: 70%;
    max-width: 450px;
    animation: float 3s ease-in-out infinite;
    margin-top: 0;
    margin-bottom: 0;
}

.logo-char {
    width: 120px;
    height: auto;
    margin-bottom: 0;
    filter:
    drop-shadow(0 0 2px #fff)
    drop-shadow(0 0 2px #fff)
    drop-shadow(0 0 8px #ffffff7d)
    ;
}

.news-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.nav-btn {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #fff;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover:not(:disabled) {
    border-color: #00ffff;
    color: #00ffff;
    transform: scale(1.05);
}

.news-counter {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    min-width: 60px;
}

.news-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.news-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.400);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-dot:hover {
    border-color: #00ffff;
    transform: scale(1.1);
}

.news-dot.active {
    background: #00ffff;
    border-color: #fff;
}

.news-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    width: 100%;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.news-loading-spinner {
    width: 125px;
    margin-bottom: 20px;
    animation: spin 2s linear infinite;
}

.news-loading-text {
    font-size: 24px;
    color: white;
    opacity: 0.8;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.news-container.loading {
    display: flex;
    flex-direction: column;
}

.news-container.loading h1 {
    margin-bottom: 20px;
}

.home-content .labels-container.tags {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.news-firey-img {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 120px;
    height: auto;
    z-index: 10;
    pointer-events: none;
}

.media-preview-modal {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: #000000dd;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.media-preview-modal .media-preview-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 18px;
  box-shadow: 0 0 32px #000;
  background: #202020;
}

.media-preview-close {
  position: absolute;
  top: 10px;
  right: 48px;
  font-size: 48px;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  z-index: 10001;
  transition: color 0.2s, transform 0.2s;
}

.media-preview-close:hover {
  color: #00ffff;
  transform: scale(1.2);
}

.media-preview-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-family: 'RobotoVariable', sans-serif;
}

.media-preview-modal .media-preview-alt {
  color: #eee;
  font-size: 22px;
  margin-top: 12px;
  text-align: center;
  max-width: 68vw;
  word-break: break-word;
  opacity: 0.95;
  background: #000000b3;
  border-radius: 14px;
  padding: 14px 24px;
  box-shadow: 0 2px 16px #0006;
  border: 3px solid #3a3a3a;
}

@media (max-width: 1100px) {
  .logo-char {
    display: none;
  }
  .home-content {
    grid-template-columns: 100%;
    grid-template-rows: auto;
  }
  .home-content > div {
    grid-column: auto;
    grid-row: auto;
  }
}
@media (max-width: 450px) {
  .news-firey-img {
    display: none;
  }
}

.countdown-container {
  display: flex;
  justify-content: center;
  margin: 30px 0;
  z-index: 1;
  position: relative;
}

.countdown {
  display: flex;
  gap: 30px;
  background: rgba(0, 0, 0, 0.500);
  border: 2px solid white;
  border-radius: 20px;
  padding: 40px 60px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.countdown-value {
  font-size: 48px;
  font-weight: bold;
  color: #00FFFF;
  min-width: 80px;
  text-align: center;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.countdown-label {
  font-size: 16px;
  color: #fff;
}

.embed-fallback {
  text-align: center;
  margin: 15px 0;
  position: relative;
  z-index: 5;
}

.embed-fallback-link {
  color: #FF66CC;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 18px;
  display: inline-block;
}

.embed-fallback-link:hover {
  color: #00FFFF;
}

@media (max-width: 768px) {
  .countdown {
    gap: 15px;
    padding: 30px 40px;
  }
  
  .countdown-value {
    font-size: 36px;
    min-width: 60px;
  }
  
  .countdown-label {
    font-size: 14px;
  }
}

@media (max-width: 500px) {
  .countdown {
    gap: 10px;
    padding: 20px 20px;
  }
  
  .countdown-value {
    font-size: 28px;
    min-width: 50px;
  }
  
  .countdown-label {
    font-size: 12px;
  }
}

.material-symbols-rounded {
  font-family: 'Material_Symbols_Rounded';
}

.play-buttons {
  display: flex;
  justify-content: center;
  font-size: 40px;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 70px;
  flex-wrap: wrap;
}

.play-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  font-size: 30px;
  font-family: inherit;
  color: #fff;
  background: #00000053;
  border: 2px solid white;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  margin: 0;
  z-index: 5;
  text-decoration: none;
}

.play-button .material-symbols-rounded {
  font-size: 40px;
}

.play-button:hover {
  color: #00ffff;
  border-color: #00ffff;
  transform: scale(1.02);
}