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

body {
  margin: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

canvas {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 999;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

canvas.snow {
  background-color: #aaa;
  opacity: 0.2;
  pointer-events: none;
}

#screen {
  width: 100%;
  height: 100%;
  background-size: cover;
  pointer-events: none;
}

.screen-container {
  width: 96%;
  height: 96%;
  overflow: hidden;
  position: relative;
  pointer-events: none;
}

.screen-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.vcr {
  opacity: 0.6;
}

.video {
  filter: blur(1px);
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.image {
  width: 100%;
  height: auto;
  filter: blur(1.2px);
  user-select: none;
  pointer-events: none;
}

.vignette {
  background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/86186/crt.png);
  width: 100.5%;
  height: 100.5%;
  position: absolute;
  left: 0;
  top: 0;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  z-index: 10000;
}

.scanlines {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 9999;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
    linear-gradient(90deg,
      rgba(255, 0, 0, 0.06),
      rgba(0, 255, 0, 0.02),
      rgba(0, 0, 255, 0.06));
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

.wobblex {
  -webkit-animation: wobblex 100ms infinite;
  animation: wobblex 100ms infinite;
}

.wobbley {
  -webkit-animation: wobbley 100ms infinite;
  animation: wobbley 100ms infinite;
}

.glitch {
  -webkit-animation: 5s ease 2000ms normal none infinite running glitch;
  animation: 5s ease 2000ms normal none infinite running glitch;
}

.screenEffect {
  background-color: #e1eef6;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%);
  overflow: hidden;
  background: #16222a;
  background: -webkit-linear-gradient(to left, #16222a, #3a6073);
  background: linear-gradient(to left, #16222a, #3a6073);
  background-size: cover;
  transform-origin: center;
  background-image: url(https://cldup.com/gn3s3Fg75t.gif);
  color: #e1eef6;
  z-index: 2;
}

.screen-text {
  position: absolute;
  right: 8vh;
  bottom: 5vh;
  display: flex;
  flex-direction: column;
  z-index: 1;
  font-family: "Cal Sans", sans-serif;
  color: #fff;
  text-align: right;
  width: 50%;
}

.screen-text h3 {
  font-size: 12vh;
  margin: 0;
  line-height: 1;
}

.screen-text p {
  font-size: 5vh;
  margin: 0;
}

@-webkit-keyframes wobblex {
  50% {
    transform: translateX(1px);
  }

  51% {
    transform: translateX(0);
  }
}

@keyframes wobblex {
  50% {
    transform: translateX(1px);
  }

  51% {
    transform: translateX(0);
  }
}

@-webkit-keyframes wobbley {
  0% {
    transform: translateY(1px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes wobbley {
  0% {
    transform: translateY(1px);
  }

  100% {
    transform: translateY(0);
  }
}

@-webkit-keyframes glitch {
  40% {
    opacity: 1;
    transform: scale(1, 1);
    transform: skew(0, 0);
  }

  41% {
    opacity: 0.8;
    transform: scale(1, 1.2);
    transform: skew(80deg, 0);
  }

  42% {
    opacity: 0.8;
    transform: scale(1, 1.2);
    transform: skew(-50deg, 0);
  }

  43% {
    opacity: 1;
    transform: scale(1, 1);
    transform: skew(0, 0);
  }
}

@keyframes glitch {
  40% {
    opacity: 1;
    transform: scale(1, 1);
    transform: skew(0, 0);
  }

  41% {
    opacity: 0.8;
    transform: scale(1, 1.2);
    transform: skew(80deg, 0);
  }

  42% {
    opacity: 0.8;
    transform: scale(1, 1.2);
    transform: skew(-50deg, 0);
  }

  43% {
    opacity: 1;
    transform: scale(1, 1);
    transform: skew(0, 0);
  }
}

@-webkit-keyframes glitch1 {
  0% {
    transform: translateX(0);
  }

  30% {
    transform: translateX(0);
  }

  31% {
    transform: translateX(10px);
  }

  32% {
    transform: translateX(0);
  }

  98% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(10px);
  }
}

@keyframes glitch1 {
  0% {
    transform: translateX(0);
  }

  30% {
    transform: translateX(0);
  }

  31% {
    transform: translateX(10px);
  }

  32% {
    transform: translateX(0);
  }

  98% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(10px);
  }
}

.text span:nth-child(2) {
  -webkit-animation: glitch2 1s infinite;
  animation: glitch2 1s infinite;
}

@-webkit-keyframes glitch2 {
  0% {
    transform: translateX(0);
  }

  30% {
    transform: translateX(0);
  }

  31% {
    transform: translateX(-10px);
  }

  32% {
    transform: translateX(0);
  }

  98% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-10px);
  }
}

@keyframes glitch2 {
  0% {
    transform: translateX(0);
  }

  30% {
    transform: translateX(0);
  }

  31% {
    transform: translateX(-10px);
  }

  32% {
    transform: translateX(0);
  }

  98% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-10px);
  }
}

.overlay .text {
  -webkit-animation: 5s ease 2000ms normal none infinite running glitch;
  animation: 5s ease 2000ms normal none infinite running glitch;
}

.on>.screen-wrapper {
  -webkit-animation: 3000ms linear 0ms normal forwards 1 running on;
  animation: 3000ms linear 0ms normal forwards 1 running on;
}

.off>.screen-wrapper {
  -webkit-animation: 750ms cubic-bezier(0.23, 1, 0.32, 1) 0ms normal forwards 1 running off;
  animation: 750ms cubic-bezier(0.23, 1, 0.32, 1) 0ms normal forwards 1 running off;
}

@-webkit-keyframes on {
  0% {
    transform: scale(1, 0.8) translate3d(0, 0, 0);
    filter: brightness(4);
    opacity: 1;
  }

  3.5% {
    transform: scale(1, 0.8) translate3d(0, 100%, 0);
  }

  3.6% {
    transform: scale(1, 0.8) translate3d(0, -100%, 0);
    opacity: 1;
  }

  9% {
    transform: scale(1.3, 0.6) translate3d(0, 100%, 0);
    filter: brightness(4);
    opacity: 0;
  }

  11% {
    transform: scale(1, 1) translate3d(0, 0, 0);
    filter: contrast(0) brightness(0);
    opacity: 0;
  }

  100% {
    transform: scale(1, 1) translate3d(0, 0, 0);
    filter: contrast(1) brightness(1.2) saturate(1.3);
    opacity: 1;
  }
}

@keyframes on {
  0% {
    transform: scale(1, 0.8) translate3d(0, 0, 0);
    filter: brightness(4);
    opacity: 1;
  }

  3.5% {
    transform: scale(1, 0.8) translate3d(0, 100%, 0);
  }

  3.6% {
    transform: scale(1, 0.8) translate3d(0, -100%, 0);
    opacity: 1;
  }

  9% {
    transform: scale(1.3, 0.6) translate3d(0, 100%, 0);
    filter: brightness(4);
    opacity: 0;
  }

  11% {
    transform: scale(1, 1) translate3d(0, 0, 0);
    filter: contrast(0) brightness(0);
    opacity: 0;
  }

  100% {
    transform: scale(1, 1) translate3d(0, 0, 0);
    filter: contrast(1) brightness(1.2) saturate(1.3);
    opacity: 1;
  }
}

@-webkit-keyframes off {
  0% {
    transform: scale(1, 1);
    filter: brightness(1);
  }

  40% {
    transform: scale(1, 0.005);
    filter: brightness(100);
  }

  70% {
    transform: scale(1, 0.005);
  }

  90% {
    transform: scale(0.005, 0.005);
  }

  100% {
    transform: scale(0, 0);
  }
}

@keyframes off {
  0% {
    transform: scale(1, 1);
    filter: brightness(1);
  }

  40% {
    transform: scale(1, 0.005);
    filter: brightness(100);
  }

  70% {
    transform: scale(1, 0.005);
  }

  90% {
    transform: scale(0.005, 0.005);
  }

  100% {
    transform: scale(0, 0);
  }
}

.roller {
  position: relative;
  -webkit-animation: 2000ms linear 0ms forwards infinite roll;
  animation: 2000ms linear 0ms forwards infinite roll;
}

@-webkit-keyframes roll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(0, -50%, 0);
  }
}

@keyframes roll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(0, -50%, 0);
  }
}

@keyframes rainbow {

  0%,
  100% {
    fill: red;
  }

  33% {
    fill: blue;
  }

  66% {
    fill: yellow;
  }
}

.screen-video {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  visibility: hidden;
  text-align: center;
}

.screen-video h3 {
  position: absolute;
  width: 80%;
  font-size: 12vh;
  color: #fff;
  font-family: "VT323", monospace;
}

.screen-video svg {
  animation: rainbow 60s linear infinite;
}

.camera {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  border: none;
  outline: none;
  object-fit: cover;
  visibility: hidden;
}

.clock-main {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
}

.clock {
  position: relative;
  display: flex;
  width: max-content;
  overflow: hidden;
  font-weight: 700;
  color: #fff;
  font-family: "VT323", monospace;
  font-size: 15vh;
}

.clock>div {
  display: flex;
}

.dg.ac {
  z-index: 10000 !important;
}

.weather {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, 0fr);
  align-items: stretch;
  align-content: center;
  justify-content: center;
  gap: 5vh;
  visibility: hidden;
}

.weather .card {
  width: 19vh;
  padding: 2vh 0vh;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.5vh;
  justify-content: flex-start;
  background: #104985;
}

.weather .card .icon img {
  width: auto;
  height: 9vh;
}

.weather .card .city {
  font-family: "VT323", monospace;
  color: #fff;
  font-size: 3.5vh;
  text-align: center;
}

.weather .card .temp {
  font-family: "VT323", monospace;
  color: #fff;
  font-size: 7vh;
  text-align: center;
}

.no-content {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
}

.music {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
}

.music video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music h2 {
  position: absolute;
  z-index: 2;
  bottom: 5vh;
  left: 7vh;
  font-family: "VT323", monospace;
  color: #fff;
  font-size: 4vh;
}

.no-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  background: #0611d6;
  width: 100%;
  height: 100%;
  position: absolute;
  border-radius: 0.3rem;
  pointer-events: all;
  visibility: hidden;
}

.menu__inner {
  width: max-content;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 5vh 0;
}

.menu .menu__items {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(5, 0fr);
  align-items: center;
  align-content: center;
  gap: 8vh;
  column-gap: 8vh;
  align-items: center;
}

.menu .menu__items .menu__item {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

.menu .menu__items .menu__item:focus {
  outline: none;
  border: none;
}

.menu .menu__items .menu__item.is-active p {
  color: #0611d6;
  background-color: #fff;
}

.menu .menu__items .menu__item:hover p {
  color: #0611d6;
  background-color: #fff;
}

.menu .menu__items .menu__item p {
  font-family: "VT323", monospace;
  color: #fff;
  font-size: 5.5vh;
  text-align: center;
  padding: 0 1.5vh;
}

.menu .menu__items .menu__item img {
  width: 18vh;
  height: auto;
}

.menu__footer {
  display: flex;
  gap: 5vh;
  width: 100%;
}

.menu__footer p {
  color: #fff;
  font-family: "VT323", monospace;
  font-size: 4vh;
}

.menu__footer .menu__action {
  display: flex;
  flex-direction: column;
  gap: 1vh;
}

.menu__footer .menu__action div {
  display: flex;
  align-items: center;
  gap: 1vh;
}

.menu__footer .menu__action img {
  width: 2.5vh;
  height: auto;
}

.menu__footer .menu__action img:nth-child(2) {
  transform: rotate(180deg);
}

.menu__footer .menu__action img:nth-child(3) {
  transform: rotate(270deg);
}

.menu__footer .menu__action img:nth-child(4) {
  transform: rotate(90deg);
}

.header {
  position: fixed;
  z-index: 99999;
  top: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7vh 10vh;
  pointer-events: none;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "VT323", monospace;
  color: #fff;
  padding: 0.5vh 1.5vh;
  font-size: 2.8vh;
  cursor: pointer;
  pointer-events: all;
  user-select: none;
  transition: 0.2s ease-in-out;
}

.menu-btn a {
  text-decoration: none;
  font-family: "VT323", monospace;
  font-size: 2.8vh;
  color: #fff;
}

.menu-btn:hover a {
  color: #0611d6;
}

.menu-btn:hover {
  background-color: #fff;
  color: #0611d6;
}

.header .right {
  display: flex;
  align-items: center;
  gap: 3vh;
}

.music-btn {
  position: fixed;
  bottom: 5vh;
  left: 10vh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  user-select: none;
}

.music-btn img {
  position: absolute;
  width: 4vh;
  height: auto;
  cursor: pointer;
  transition: 0.2s ease-in-out;
  opacity: 0;
}

.music-btn img:nth-child(1) {
  opacity: 1;
}

.music-btn.active img:nth-child(1) {
  opacity: 0;
}

.music-btn.active img:nth-child(2) {
  opacity: 1;
}

.music-btn:hover img {
  transform: scale(0.95);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

.logo__link {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.textcircle {
  position: absolute;
  display: block !important;
  width: 9vh !important;
  animation: rotate360 10s linear infinite;
  pointer-events: none;
  opacity: 0;
  transition: 0.3s ease-in-out;
}

.textcircle text {
  text-transform: uppercase;
  font-family: var(--_font-default);
  font-weight: 300;
  font-size: 3.5vh;
}

@keyframes rotate360 {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.logo__link svg {
  width: auto;
  height: 4rem;
  pointer-events: all;
  animation: rotate2360 10s linear infinite;
  animation-play-state: paused;
}

.logo__link:hover span {
  opacity: 1;
  pointer-events: all;
}

.logo:hover svg {
  animation-play-state: running;
}

.logo:hover .textcircle {
  opacity: 1;
}

@keyframes rotate2360 {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

.logo__link span {
  display: -webkit-inline-box;
  display: -moz-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  padding-left: 1.4rem;
  padding-right: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease-in-out;
  color: #fff;
}

@media only screen and (min-width: 1400px) {
  .logo__link svg {
    height: 2em;
  }

  .logo__link span {
    padding-left: 1.6rem;
  }
}

body::-webkit-scrollbar {
  width: 0;
}

.wrap {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  perspective: 1200px;
  padding-bottom: 6vh;
}

.viewport {
  width: 100%;
  height: 40vh;
  overflow: visible;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  position: relative;
  cursor: grab;
}

.viewport.dragging {
  cursor: grabbing;
}

.track {
  position: absolute;
  bottom: 16px;
  left: 0;
  height: 100%;
  will-change: transform;
}

.bg {
  position: absolute;
  width: 100%;
  top: 8vh;
  z-index: 1;
  pointer-events: none;
}

.film-track {
  gap: 3vh !important;
}

.bg svg {
  width: 100%;
  height: auto;
}

.title {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 5vh;
  font-family: "Cal Sans", sans-serif;
  z-index: 1;
  left: 8vh;
  top: 20vh;
}

.title div {
  display: flex;
  flex-direction: column;
}

.title div h3 {
  color: #fff;
  font-size: 5.5vh;
  font-weight: 500;
}

.title div h3 span {
  text-decoration: underline;
}

.title .links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.2vh;
}

.title .links p {
  color: #fff;
  font-size: 2.8vh;
}

.title a {
  color: #fff;
  text-decoration: none;
  font-size: 2.8vh;
  width: max-content;
  padding: 0 1vh;
  transition: 0.1s ease-in-out;
}

.title a:hover {
  background-color: #fff;
  color: #0611d6;
}

.card-movie {
  width: clamp(260px, 30vw, 400px);
  aspect-ratio: 16 / 9;
  margin-right: 48px;
  overflow: hidden;
  position: absolute;
  bottom: 0;
  transform-style: preserve-3d;
  border-radius: 0.325rem;
  background: #111;
}

.card-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-inner img {
  width: 140%;
  height: 140%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transform: translate3d(0, 0, 0);
}

.info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 12px 16px;
}

.info h2 {
  font-size: 2vh;
  font-weight: 500;
  font-family: "Cal Sans", sans-serif;
  color: #fff;
}

.info p {
  font-size: 0.9rem;
  opacity: 0.8;
  font-family: "Cal Sans", sans-serif;
  color: #fff;
}

@media (max-width: 1000px) {
  .header {
    padding: 6vh 4vh;
  }

  .logo {
    z-index: 999999999;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .screen-text {
    position: absolute;
    right: 2vh;
    bottom: 6vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
    font-family: "Cal Sans", sans-serif;
    color: #fff;
    text-align: right;
    width: 70%;
  }

  .screen-text h3 {
    font-size: 5vh;
    text-align: right;
  }

  .screen-text p {
    font-size: 2.5vh;
    text-align: right;
  }

  .screen-container {
    width: 100%;
    height: 100%;
  }

  .vignette {
    background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/86186/crt.png);
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: 10000;
  }

  .image {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
  }

  .menu .menu__items {
    grid-template-columns: repeat(3, 0fr);
    gap: 2vh;
    column-gap: 2vh;
  }

  .menu .menu__items .menu__item img {
    width: 7vh;
  }

  .menu .menu__items .menu__item p {
    font-size: 3.5vh;
  }

  .menu .menu__items .menu__item.is-active p {
    color: #fff;
    background-color: unset;
  }

  .menu__footer p {
    font-size: 3.5vh;
  }

  .menu__footer .menu__action img {
    width: 2vh;
  }

  .screen-video h3 {
    font-size: 6vh;
  }

  .clock {
    font-size: 8vh;
  }

  .music-btn {
    left: 4vh;
  }
}

.grid {
  display: grid;
  padding: 10rem 5vw;
  margin: 0 auto;
  grid-template-columns: repeat(7, minmax(80px, 1fr));
  grid-column-gap: 5vw;
  grid-row-gap: 5vw;

  @media screen and (min-width: 65em) {
    --column-count: 7;
  }
}

.grid__item {
  margin: 0;
}

.grid__item-img {
  aspect-ratio: 128 / 160;
  background-size: cover;
  background-position: center;
}

.grid__column {
  display: flex;
  flex-direction: column;
  gap: 5vw;
}

.grid__item-caption {
  font-size: 1.8vh;
  font-weight: 600;
  margin-top: 0.15rem;
  font-family: "Cal Sans", sans-serif;
  color: #fff;
}

/* Filter UI Styles - Shadcn Inspired */
.filter-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 7vh 10vh;
  /* Zinc-950 with opacity */
}

.filter-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.filter-item {
  position: relative;
  display: flex;
  align-items: center;
}

/* Search Input */
.search-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 10px;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

#search-input {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 12px 8px 36px;
  color: #fff;
  font-family: "Inter", sans-serif;
  /* Use Inter if available, or system font */
  font-size: 14px;
  width: 240px;
  outline: none;
  transition: all 0.2s ease;
}

#search-input:hover {
  background: rgba(255, 255, 255, 0.05);
}

#search-input:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

#search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Year Comboboxes */
.year-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.combobox {
  position: relative;
  width: 100px;
}

.combobox-input-wrapper {
  position: relative;
  width: 100%;
}

.combobox-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 8px 24px 8px 8px;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  text-align: center;
}

.combobox-input:hover {
  background: rgba(255, 255, 255, 0.08);
}

.combobox-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.combobox-input-wrapper .chevron-down {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.combobox.open .chevron-down {
  transform: translateY(-50%) rotate(180deg);
}

.combobox-content {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 4px;
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.combobox.open .combobox-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.combobox-item {
  padding: 6px 8px;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: center;
}

.combobox-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.combobox-item.selected {
  background: rgba(255, 255, 255, 0.15);
  font-weight: 500;
}

.combobox-item.hidden {
  display: none;
}

/* Scrollbar for combobox */
.combobox-content::-webkit-scrollbar {
  width: 6px;
}

.combobox-content::-webkit-scrollbar-track {
  background: transparent;
}

.combobox-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.combobox-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.year-wrapper .separator {
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
}

/* Custom Select - Shadcn Style */
.custom-select {
  position: relative;
  width: 180px;
}

.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.select-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
}

.select-trigger:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.select-trigger .chevron-down {
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease;
}

.custom-select.open .select-trigger .chevron-down {
  transform: rotate(180deg);
}

.select-content {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 4px;
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.custom-select.open .select-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.select-item {
  padding: 8px 12px;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.select-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.select-item.selected {
  background: rgba(255, 255, 255, 0.15);
  font-weight: 500;
}

/* Clear Button */
.btn-clear {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.7);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-clear:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Hide number input arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ========================================
   QUIZ GAME STYLES
   ======================================== */

.game {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  overflow: hidden;
}

.game__background {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

.game__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) blur(2px);
}

.game__content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 6vh;
  gap: 2vh;
}

/* Progress Dots */
.game__progress {
  position: relative;
  margin-bottom: 2vh;
}

.game__dots {
  display: flex;
  gap: 1.2vh;
  justify-content: center;
}

.game__dot {
  width: 1.8vh;
  height: 1.8vh;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.game__dot.active {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.game__dot.correct {
  background: #2ecc71;
  border-color: #27ae60;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.8);
}

.game__dot.wrong {
  background: #e74c3c;
  border-color: #c0392b;
  box-shadow: 0 0 10px rgba(231, 76, 60, 0.8);
}

/* Timer - Kim Milyoner Olmak İster Style */
.game__timer {
  position: absolute;
  top: 12vh;
  right: 10vh;
  width: 12vh;
  height: 12vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game__timer-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.game__timer-bg {
  fill: none;
  stroke: rgba(255, 165, 0, 0.15);
  stroke-width: 4;
}

.game__timer-progress {
  fill: none;
  stroke: url(#timerGradient);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.game__timer-progress.warning {
  stroke: #ff8c00;
}

.game__timer-progress.danger {
  stroke: #ff4500;
  animation: timerPulse 0.5s ease-in-out infinite;
}

@keyframes timerPulse {

  0%,
  100% {
    filter: drop-shadow(0 0 12px rgba(255, 69, 0, 1));
  }

  50% {
    filter: drop-shadow(0 0 20px rgba(255, 69, 0, 1));
  }
}

.game__timer-inner {
  position: absolute;
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(10, 10, 30, 0.9) 0%, rgba(5, 5, 20, 0.95) 100%);
  border-radius: 50%;
  border: 2px solid rgba(255, 165, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 0 20px rgba(0, 0, 0, 0.8),
    0 0 15px rgba(255, 165, 0, 0.3);
}

.game__timer-text {
  font-family: "VT323", monospace;
  font-size: 5vh;
  color: #ffa500;
  font-weight: bold;
  text-shadow:
    0 0 10px rgba(255, 165, 0, 0.8),
    0 0 20px rgba(255, 165, 0, 0.4);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.game__timer-progress.warning+.game__timer-inner .game__timer-text,
.game__timer.warning .game__timer-text {
  color: #ff8c00;
  text-shadow:
    0 0 10px rgba(255, 140, 0, 0.9),
    0 0 20px rgba(255, 140, 0, 0.5);
}

.game__timer-progress.danger+.game__timer-inner .game__timer-text,
.game__timer.danger .game__timer-text {
  color: #ff4500;
  text-shadow:
    0 0 15px rgba(255, 69, 0, 1),
    0 0 30px rgba(255, 69, 0, 0.6);
}

/* Question Box - Hexagon Style */
.game__question-box {
  position: relative;
  width: 70%;
  max-width: 800px;
  padding: 3vh 5vh;
  background: linear-gradient(135deg, #1a237e 0%, #0d1442 100%);
  clip-path: polygon(3% 0%, 97% 0%, 100% 50%, 97% 100%, 3% 100%, 0% 50%);
  border: 3px solid #3f51b5;
  box-shadow:
    0 0 20px rgba(63, 81, 181, 0.5),
    inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.game__question-box::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 100%);
  clip-path: polygon(3% 0%, 97% 0%, 100% 50%, 97% 100%, 3% 100%, 0% 50%);
  pointer-events: none;
}

.game__question-text {
  font-family: "VT323", monospace;
  font-size: 3.5vh;
  color: #fff;
  text-align: center;
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Options Grid */
.game__options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5vh 3vh;
  width: 80%;
  max-width: 900px;
  pointer-events: all;
}

/* Option Style - Hexagon */
.game__option {
  position: relative;
  display: flex;
  align-items: center;
  padding: 1.8vh 3vh;
  background: linear-gradient(135deg, #1a237e 0%, #0d1442 100%);
  clip-path: polygon(5% 0%, 95% 0%, 100% 50%, 95% 100%, 5% 100%, 0% 50%);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #3f51b5;
  box-shadow: 0 0 15px rgba(63, 81, 181, 0.3);
}

.game__option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  clip-path: polygon(5% 0%, 95% 0%, 100% 50%, 95% 100%, 5% 100%, 0% 50%);
  pointer-events: none;
}

.game__option:hover {
  background: linear-gradient(135deg, #283593 0%, #1a237e 100%);
  border-color: #5c6bc0;
  box-shadow: 0 0 25px rgba(92, 107, 192, 0.5);
  transform: scale(1.02);
}

.game__option.selected {
  background: linear-gradient(135deg, #f39c12 0%, #d68910 100%);
  border-color: #f1c40f;
  box-shadow: 0 0 25px rgba(241, 196, 15, 0.6);
}

.game__option.correct {
  background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
  border-color: #2ecc71;
  box-shadow: 0 0 30px rgba(46, 204, 113, 0.7);
  animation: correctPulse 0.5s ease-in-out;
}

.game__option.wrong {
  background: linear-gradient(135deg, #c0392b 0%, #922b21 100%);
  border-color: #e74c3c;
  box-shadow: 0 0 30px rgba(231, 76, 60, 0.7);
  animation: wrongShake 0.5s ease-in-out;
}

.game__option.disabled {
  pointer-events: none;
  opacity: 0.7;
}

.game__option-letter {
  font-family: "VT323", monospace;
  font-size: 3vh;
  color: #f1c40f;
  font-weight: bold;
  margin-right: 1.5vh;
  text-shadow: 0 0 5px rgba(241, 196, 15, 0.5);
}

.game__option-text {
  font-family: "VT323", monospace;
  font-size: 2.8vh;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Animations */
@keyframes correctPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes wrongShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-10px);
  }

  40% {
    transform: translateX(10px);
  }

  60% {
    transform: translateX(-10px);
  }

  80% {
    transform: translateX(10px);
  }
}

/* Result Screen */
.game__result {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 3vh;
  padding: 5vh 8vh;
  background: linear-gradient(135deg, #1a237e 0%, #0d1442 100%);
  border: 3px solid #3f51b5;
  border-radius: 2vh;
  box-shadow: 0 0 50px rgba(63, 81, 181, 0.5);
}

.game__result.show {
  display: flex;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.game__result-title {
  font-family: "VT323", monospace;
  font-size: 6vh;
  color: #f1c40f;
  text-shadow: 0 0 20px rgba(241, 196, 15, 0.5);
}

.game__result-score {
  font-family: "VT323", monospace;
  font-size: 4vh;
  color: #fff;
}

.game__result-score span:first-child {
  color: #2ecc71;
  font-size: 5vh;
}

.game__restart-btn {
  font-family: "VT323", monospace;
  font-size: 3vh;
  padding: 1.5vh 4vh;
  background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
  border: 2px solid #2ecc71;
  border-radius: 1vh;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
}

.game__restart-btn:hover {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  box-shadow: 0 0 20px rgba(46, 204, 113, 0.5);
  transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 1000px) {
  .game__question-box {
    width: 90%;
    padding: 2vh 3vh;
  }

  .game__question-text {
    font-size: 2.8vh;
  }

  .game__options {
    width: 95%;
    gap: 1vh 1.5vh;
  }

  .game__option {
    padding: 1.5vh 2vh;
  }

  .game__option-letter {
    font-size: 2.5vh;
  }

  .game__option-text {
    font-size: 2.2vh;
  }

  .game__timer {
    top: 8vh;
    right: 4vh;
    width: 9vh;
    height: 9vh;
  }

  .game__timer-text {
    font-size: 3.5vh;
  }

  .game__progress {
    margin-bottom: 1.5vh;
  }

  .game__dot {
    width: 1.4vh;
    height: 1.4vh;
  }

  .game__result {
    padding: 3vh 5vh;
  }

  .game__result-title {
    font-size: 4vh;
  }

  .game__result-score {
    font-size: 3vh;
  }

  .game__restart-btn {
    font-size: 2.5vh;
    padding: 1vh 3vh;
  }
}