

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.icons {
  display: block;
  font-family: 'Material Symbols Rounded';
  font-size: var(--font-size);
  line-height: 1;
  color: var(--text);
  font-variation-settings:
  'FILL' 1,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}

* {
  font-family: 'Montserrat', sans-serif;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

:root {
  --bg: #000;
  --item-bg: rgba(255, 255, 255, 0.05);
  --text: #FFF;
  --font-size: 16px;
  --border: rgba(255, 255, 255, 0.10);
  --border-atv: rgba(255, 255, 255, 0.30);
  --stale-bg: #000;
}

::-webkit-scrollbar {
  display: none;
}

html {
  margin: 0;
  height: 100%;
}

h1 {
  font-size: 60px;
  margin: 0;
}

.vanta {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

body {
  background: var(--bg);
  background-size: cover;
  background-repeat: no-repeat;
  margin: 0;
  display: flex;
  height: 100%;
  overflow: hidden;
  gap: 1rem;
}

.startup {
  background: var(--item-bg);
  backdrop-filter: blur(10px);
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 10;
  flex-direction: column; 
}

.startup p {
  color: var(--text);
  font-size: var(--font-size);
}

.spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid #FFF;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 0.75rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.immersive {
  width: 100%;
  display: grid;
  background: var(--item-bg);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--border);
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 1rem max(10%, 1rem);
}

.nv-left,
.nv-center,
.nv-right,
.back-btn {
  background: none;
  backdrop-filter: blur(10px);
  border: 2px solid var(--border);
  border-radius: 50px;
  display: flex;
  padding: 1rem;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.back-btn {
  background: var(--item-bg);
}

.nv-left,
.nv-center,
.nv-right {
  height: max-content;
}

.ux {
  background: none;
  border: none;
  backdrop-filter: none;
}

.nv-left {
  justify-self: start;
}

.nv-center {
  justify-self: center;
}

.nv-right {
  justify-self: end;
}

.nv-item {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  text-decoration: none;
  color: var(--text);
  transition: 1.2s ease;
  font-size: var(--font-size);
}

.nv-text {
  text-decoration: none;
  color: var(--text);
  font-size: var(--font-size);
}

.nv-item:hover {
  transform: scale(1.2);
  background: var(--item-bg);
  border-radius: 50%;
  box-shadow: 0 0 0 8px var(--item-bg);
}

.nv-item.active {
  background: var(--item-bg);
  border-radius: 50%;
  box-shadow: 0 0 0 8px var(--item-bg);
}

.main {
  display: flex;
  width: 100%;
  flex-direction: column;
  min-height: 0;
}

.home {
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center; 
  color: var(--text);
}

footer {
  position: absolute;
  bottom: 0;
  padding: 1rem;
  display: flex;
  gap: 1rem;
}

footer button {
  background: none;
  border: none;
  padding: 0;
  font-size: var(--font-size);
}

.center {
  padding: 1rem;
  display: grid;
  gap: 1rem;
  justify-items: stretch;
  text-align: center;
  align-items: center;
  width: 100%;
  max-width: 600px;
}

.openyt .center {
  max-width: 100%;
}

.btn-rail {
  display: flex;
  flex-wrap: wrap;
  width: 368px;
  justify-content: center;
  justify-self: center;
  gap: 1rem;
}

.home-btn {
  display: grid; 
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--item-bg);
  backdrop-filter: blur(10px);
  width: 80px;
  aspect-ratio: 6 / 7;
  justify-content: center;
  align-items: center;
  color: var(--text);
  font-size: 14px;
  place-items: center;
  gap: .2rem;
  transition: 1.2s ease;
}

.home-btn .icons {
  background: var(--item-bg);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  border: 2px solid var(--border);
  padding: .5rem;
}

.img-icons {
  height: 36px;
  border-radius: 25px;
  border: 2px solid var(--border);
}

.home-btn:hover {
  transform: scale(1.05);
  border: 2px solid var(--border-atv);
}

a {
  text-decoration: none;
}

.link {
  color: rgba(255, 255, 255, 0.3);
  transition: 1.2s ease;
}

.link:hover {
  color: var(--text);
}

.category-bar,
.search-container {
  display: flex;
  width: 100%;
  border: 2px solid var(--border);
  background: var(--item-bg);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  align-items: center;
  padding: 1rem;
  gap: 1rem;
  transition: 1.2s ease;
}

.search-container:hover {
  border-color: var(--border-atv);
  box-shadow: 0 0 0 3px var(--border);
}

.search-container:focus-within {
  border-color: var(--border-atv);
  box-shadow: 0 0 0 3px var(--border);
}

.searchux .search-container {
  border-radius: 10px;
  background: none;
}

.search-input {
  background: none;
  border: none;
  width: 100%;
  color: var(--text);
}

.search-input:focus {
  outline: none;
}

.tiles,
.clips,
.openyt,
.settings,
.aichat {
  margin: 0;
  padding: 0 max(10%, 24px);
  color: var(--text);
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-anchor: none;
}

.hidden {
  display: none !important;
}

.content {
  display: grid;
  max-width: 1400px;
  margin: 1rem auto;
  gap: 1rem;
}

h2 {
  margin: 0;
}

.content .header {
  gap: 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
}

.content .settings-header {
  grid-template-columns: auto 1fr;
}

.sections {
  display: grid;
  height: 100%;
  width: 100%;
  justify-content: center;
  gap: 1rem;
  overflow: hidden;
  grid-template-columns: 1fr;
}

select, ::picker(select) {
  appearance: base-select;
  -webkit-appearance: none;
  -moz-appearance: none;
}

select:focus {
  outline: none;
  box-shadow: none;
}

.dropdown {
  display: flex;
  width: 100%;
  border: 2px solid var(--border);
  background: var(--item-bg);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  align-items: center;
  padding: 1rem;
  gap: 1rem;
  max-width: 600px;
  transition: 1.2s ease;
  justify-self: end;
}

option {
  background: var(--stale-bg);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(150px,1fr));
  gap: 1rem;
}

.video-grid {
  grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
}

.video-card,
.clips-card,
.game-card {
  background: var(--item-bg);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 2px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: 1.2s ease;
}

.video-card:hover,
.clips-card:hover,
.game-card:hover,
.theme-btn:hover {
  transform: scale(1.05);
  border: 2px solid var(--border-atv);
  background-size: cover;
}

.game-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.video-overlay,
.clips-overlay,
.game-overlay,
.theme-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  padding: 1rem;
  color: var(--text);
  font-size: var(--font-size);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: left;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7),
    transparent
  );
}

.video-overlay,
.theme-overlay {
  display: grid;
  align-items: end;
}

.video-title,
.video-channel,
.video-stats {
  font-size: var(--font-size);
  margin: 0;
}

.video-card:hover .video-overlay,
.clips-card:hover .clips-overlay,
.game-card:hover .game-overlay,
.theme-btn:hover .theme-overlay {
  opacity: 1;
  visibility: visible;
}

.player {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  width: 100%;
  justify-content: center;
  align-items: center;
}

#sj-frame,
.player-frame {
  width: 100%;
  height: 100%;
  border: none;
  backdrop-filter: blur(10px);
}

.clips-bar {
  grid-template-columns: 1fr auto auto 1fr;
  gap: 1rem;
}

.clips-center {
  padding: 1rem;
}

.clips-selector {
  display: flex;
  background: none;
  border: none;
  border-radius: 25px;
  transition: 1.2s ease;
  color: var(--text);
}

.clips-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.rating {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: white;
  font-size: 12px;
  padding: 0.5rem;
  font-weight: 500;
}

.game-title,
.movie-title {
  position: absolute;
  bottom: 1rem;
}

.category-bar button {
  background: none;
  border: none;
  color: var(--text);
  transition: 1.2s ease;
}

.category-bar button:hover {
  transform: scale(1.2);
  background: var(--item-bg);
  border-radius: 15px;
  box-shadow: 0 0 0 8px var(--item-bg);
}

.category-bar button.active {
  background: var(--item-bg);
  border-radius: 15px;
  box-shadow: 0 0 0 8px var(--item-bg);
}

.video-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
}

.video-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-img .img-placeholder {
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  object-fit: cover;
}

.stg-section {
  padding: 2rem;
  background: var(--item-bg);
  backdrop-filter: blur(10px);
  border: 2px solid var(--border);
  border-radius: 10px;
  display: grid;
  width: 100%;
  font-size: var(--font-size);
  gap: 1rem;
}

.section-img {
  height: 150px;
  border-radius: 5px;
  border: 2px solid var(--border);
}

.section-title {
  font-size: 18px;
  font-weight: bold;
}

.aichat {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.aichat .content {
  grid-template-rows: auto auto 1fr;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.aichat .header {
  grid-template-columns: auto 1fr;
}

.chat-container {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.chat {
  flex: 1;
  overflow-y: auto;
}

.message {
  margin-bottom: 1rem;
  display: flex;
}

.message.user {
  justify-content: flex-end;
}

.message-content {
  color: var(--text);
  max-width: 70%;
  word-wrap: break-word;
  line-height: 1.5;
}

.assistant .message-content {
  max-width: 100%;
}

.user .message-content {
  background: var(--item-bg);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  border: 2px solid var(--border);
  padding: 1rem;
}

.dialog {
  position: absolute;
  background: var(--item-bg);
  backdrop-filter: blur(10px);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  z-index: 9999;
  transition: 1.2s ease;
}

.dialog .stg-section {
  text-align: left;
  color: var(--text);
}
