html, body {
  margin: 0;
  padding: 0;

  overflow-x: hidden;
  overflow-y: auto;

  background:
    linear-gradient(
      97deg,
      rgba(0,0,0,1) 0%,
      rgb(19,18,21) 50%,
      rgb(33,23,39) 100%
    );

  color: white;
  font-family: Verdana, sans-serif;
}

.screen {
  position: relative;

  width: 100%;
  height: 100%;

  overflow-y: auto;
  overflow-x: hidden;

  padding-bottom: 40px;

  box-sizing: border-box;
}

.terminal {
  position: fixed;
  inset: 0;

  display: flex;

  background-color: #383838;
  padding: 20px;
  box-sizing: border-box;

  overflow: hidden;
}

.frame {
  position: relative;

  width: 100%;
  height: 97%;

  border-radius: 50px;

  overflow: hidden;

  background:
    radial-gradient(
      #2001605e,
      #220127b3
    );

  border: 15px solid;

  border-bottom-color: #121212;
  border-left-color: #080808;
  border-right-color: #080808;
  border-top-color: #020202;

  box-shadow:
    inset 0 0 18rem black,
    inset 0 0 3rem black,
    0 0 10rem black;
}

::-webkit-scrollbar {
  display: none;
}

.frame::before {

  content: "";

  position: absolute;

  inset: 0;

  background:
    repeating-linear-gradient(
      to bottom,
      rgb(255 255 255 / 51%) 0px,
      rgb(255 255 255 / 0%) 1px,
      #00000078 2px,
      transparent 4px
    );

  pointer-events: none;

  z-index: 10000;

  opacity: 0.22;

  mix-blend-mode: soft-light;
}


/* TOP BAR */

.topbar {
  position: sticky;

  top: 0;

  left: 0;

  width: 100%;

  height: 60px;

  background:
    rgba(0,0,0,0.35);

  backdrop-filter: blur(10px);

  -webkit-backdrop-filter: blur(10px);

  border-bottom:
    1px solid rgba(255,255,255,0.08);

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 0 30px;

  box-sizing: border-box;

  z-index: 1000;
}

.topbar-left,
.topbar-right {

  font-size: 12px;

  letter-spacing: 2px;

  text-transform: uppercase;

  color:
    rgba(255,255,255,0.75);
}


/* SIDEBAR */

.sidebar {

  position: fixed;

  top: 95px;
  left: 35px;

  width: 220px;

  height: calc(100% - 110px);

  box-sizing: border-box;

  z-index: 999;

  background:
    rgba(0, 0, 0, 0.35);

  backdrop-filter: blur(8px);

  -webkit-backdrop-filter: blur(8px);

  border-right:
    1px solid rgba(255, 255, 255, 0.08);

  display: flex;

  flex-direction: column;

  padding-top: 40px;

  border-radius: 0 0 0 35px;
}

.nav-logo {

  padding-left: 28px;

  margin-bottom: 30px;

  letter-spacing: 4px;

  font-size: 20px;
}

.sidebar a {

  color: white;

  text-decoration: none;

  padding: 16px 28px;

  font-size: 13px;

  letter-spacing: 2px;

  text-transform: uppercase;

  transition: 0.3s;
}

.sidebar a:hover {

  background:
    rgba(255,255,255,0.08);

  padding-left: 38px;
}


/* PAGE CONTENT */

.page-content {

  margin-left: 220px;

  margin-top: 60px;

  padding: 40px;

  box-sizing: border-box;

  width: calc(100% - 220px);
}


/* HERO */

.fandoms-hero {

  margin-bottom: 50px;

  display: flex;

  flex-direction: column;

  align-items: center;
}

.hero-title {

  margin: 0;

  font-size: 4rem;

  letter-spacing: 6px;

  font-weight: 900;
}

.hero-subtitle {

  margin-top: 10px;

  color:
    rgba(255,255,255,0.7);

  font-size: 1.1rem;

  letter-spacing: 1px;
}

.hero-actions {

  margin-top: 30px;

  display: flex;

  gap: 15px;

  flex-wrap: wrap;
}


/* SEARCH */

.fandom-search {

  background:
    rgba(255,255,255,0.08);

  border:
    1px solid rgba(255,255,255,0.12);

  color: white;

  padding: 14px 18px;

  border-radius: 10px;

  width: 320px;

  outline: none;

  font-size: 0.95rem;

  backdrop-filter: blur(10px);
}

.fandom-search::placeholder {

  color:
    rgba(255,255,255,0.45);
}

.fandom-search:focus {

  border-color:
    rgba(180,140,255,0.5);
}


/* REQUEST BUTTON */

.request-btn {

  background: white;

  color: black;

  border: none;

  padding: 14px 20px;

  border-radius: 10px;

  font-weight: bold;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.request-btn:hover {

  transform: translateY(-2px);

  opacity: 0.9;
}


/* CARD LAYOUT */

.box-row1 {

  display: flex;

  flex-direction: column;

  gap: 35px;

  align-items: center;
}


/* CARD */

.fandom-box {

  width: min(75rem, 100%);

  background:
    linear-gradient(
      145deg,
      rgba(18,18,24,0.95),
      rgba(28,20,38,0.95)
    );

  border:
    1px solid rgba(180,140,255,0.12);

  border-radius: 18px;

  overflow: hidden;

  backdrop-filter: blur(12px);

  box-shadow:
    0 10px 40px rgba(0,0,0,0.35);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.fandom-box:hover {

  transform: translateY(-8px);

  border-color:
    rgba(180,140,255,0.35);

  box-shadow:
    0 20px 60px rgba(120,80,255,0.18);
}


/* IMAGE */

.fandom-image {

  width: 100%;

  height: 20rem;

  object-fit: cover;

  display: block;

  filter:
    brightness(0.78)
    contrast(1.05);
}


/* BODY */

.fandom-body {

  padding: 28px;

  padding-top: 0;

  display: grid;

  gap: 20px;
}


/* TITLE SECTION */

.title-sect {

  margin-top: -45px;

  display: flex;

  justify-content: space-between;

  align-items: flex-end;

  position: relative;

  z-index: 5;
}


/* TITLE TAB */

.fandom-title {

  margin: 0;

  padding:
    12px 24px;

  font-size: 1.7rem;

  font-weight: 900;

  letter-spacing: 2px;

  text-transform: uppercase;

  color: white;

  background:
    linear-gradient(
      135deg,
      rgba(25,25,35,0.98),
      rgba(60,35,95,0.98)
    );

  clip-path:
    polygon(
      0 0,
      92% 0,
      100% 100%,
      0 100%
    );

  border:
    1px solid rgba(255,255,255,0.08);

  backdrop-filter: blur(10px);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.35);
}


/* ICONS */

.fandom-icons {

  display: flex;

  gap: 12px;
}

.icon-wrapper {

  position: relative;

  display: flex;

  align-items: center;

  justify-content: center;
}

.fandom-icon {

  width: 3rem;

  height: 3rem;

  border-radius: 50%;

  object-fit: cover;

  border:
    2px solid rgba(255,255,255,0.15);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.fandom-icon:hover {

  transform: scale(1.12);

  border-color:
    rgba(180,140,255,0.7);

  box-shadow:
    0 0 20px rgba(140,90,255,0.4);
}


/* TOOLTIP */

.icon-tooltip {

  position: absolute;

  bottom: -42px;

  left: 50%;

  transform:
    translateX(-50%)
    translateY(6px);

  background:
    rgba(20,20,30,0.96);

  color: white;

  padding:
    8px 12px;

  border-radius: 10px;

  font-size: 0.75rem;

  letter-spacing: 1px;

  white-space: nowrap;

  border:
    1px solid rgba(180,140,255,0.2);

  opacity: 0;

  pointer-events: none;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;

  box-shadow:
    0 10px 25px rgba(0,0,0,0.35);

  z-index: 50;
}

.icon-tooltip::before {

  content: "";

  position: absolute;

  top: -6px;

  left: 50%;

  transform: translateX(-50%);

  width: 12px;
  height: 12px;

  background:
    rgba(20,20,30,0.96);

  rotate: 45deg;

  border-left:
    1px solid rgba(180,140,255,0.2);

  border-top:
    1px solid rgba(180,140,255,0.2);
}

.icon-wrapper:hover .icon-tooltip {

  opacity: 1;

  transform:
    translateX(-50%)
    translateY(0);
}


/* CONTENT */

.fandom-content {

  margin: 0;

  line-height: 1.8;

  color:
    rgba(255,255,255,0.82);

  font-size: 1rem;
}


/* BOTTOM */

.bottom-sect {

  display: flex;

  justify-content: space-between;

  align-items: center;

  color:
    rgba(255,255,255,0.45);

  font-size: 0.9rem;
}


/* MONITOR BUTTON */

.monitor-btn {

  position: relative;

  width: 100%;

  margin-top: 10px;

  padding: 18px;

  border: none;

  background:
    linear-gradient(
      90deg,
      rgba(28,20,40,1),
      rgba(45,28,70,1)
    );

  color: white;

  font-size: 0.95rem;

  font-weight: 700;

  letter-spacing: 3px;

  text-transform: uppercase;

  cursor: pointer;

  overflow: hidden;

  border-top:
    1px solid rgba(255,255,255,0.08);

  transition:
    transform 0.25s ease,
    background 0.3s ease;
}

.monitor-btn::before {

  content: "";

  position: absolute;

  top: 0;
  left: -100%;

  width: 100%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(170,120,255,0.35),
      transparent
    );

  transition: left 0.6s ease;
}

.monitor-btn:hover::before {
  left: 100%;
}

.monitor-btn:hover {
  transform: translateY(-2px);
}

.monitor-btn.active {

  background:
    linear-gradient(
      90deg,
      #3a1010,
      #5e1a1a
    );

  color:
    rgb(255,190,190);
}


/* LIKE BUTTON */

.like-btn {

  background: none;

  border: none;

  color:
    rgba(255,255,255,0.5);

  cursor: pointer;

  font-size: 1.3rem;

  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.like-btn:hover {

  transform: scale(1.15);

  color:
    rgba(255,255,255,0.9);
}

.like-btn.liked {
  color: rgb(255,90,120);
}


/* SUBJECTS PANEL */

.subjects-panel {

  max-height: 0;

  overflow: hidden;

  opacity: 0;

  transform: translateY(-25px);

  transition:
    max-height 0.7s ease,
    opacity 0.45s ease,
    transform 0.45s ease,
    padding 0.45s ease;

  padding: 0 28px;

  background:
    linear-gradient(
      180deg,
      rgba(10,10,15,0),
      rgba(8,8,12,0.95)
    );

  border-top:
    1px solid rgba(255,255,255,0.05);
}


/* ACTIVE STATE */

.subjects-panel.active {

  max-height: 700px;

  opacity: 1;

  transform: translateY(0);

  padding:
    30px 28px 35px;
}


/* TITLE */

.subjects-title {

  text-align: center;

  font-size: 1.15rem;

  letter-spacing: 5px;

  text-transform: uppercase;

  margin: 0 0 12px 0;

  color:
    rgba(255,255,255,0.92);
}


/* SUBTEXT */

.subjects-subtext {

  text-align: center;

  color:
    rgba(255,255,255,0.5);

  font-size: 0.92rem;

  line-height: 1.6;

  max-width: 600px;

  margin:
    0 auto 35px auto;
}


/* GRID */

.subjects-grid {

  display: flex;

  justify-content: center;

  align-items: center;

  flex-wrap: wrap;

  gap: 22px;
}


/* CHARACTER CARD */

.subject-card {

  position: relative;

  width: 120px;

  height: 170px;

  border-radius: 16px;

  overflow: hidden;

  background: black;

  border:
    1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 10px 25px rgba(0,0,0,0.35);

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}


/* HOVER */

.subject-card:hover {

  transform:
    translateY(-8px)
    scale(1.03);

  border-color:
    rgba(180,140,255,0.45);

  box-shadow:
    0 18px 35px rgba(120,80,255,0.22);
}


/* IMAGE */

.subject-image {

  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;

  filter:
    brightness(0.78);
}


/* NAME OVERLAY */

.subject-name {

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  padding: 12px;

  box-sizing: border-box;

  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.92),
      transparent
    );

  color: white;

  font-size: 0.72rem;

  letter-spacing: 2px;

  text-transform: uppercase;

  text-align: center;

  opacity: 0;

  transform: translateY(-10px);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}


/* SHOW NAME ON HOVER */

.subject-card:hover .subject-name {

  opacity: 1;

  transform: translateY(0);
}