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

:root{
  --bg:#090c12;
  --panel:rgba(255,255,255,.055);
  --line:rgba(255,255,255,.12);
  --soft:rgba(255,255,255,.07);
  --text:#f7f7f8;
  --muted:rgba(247,247,248,.52);
  --muted2:rgba(247,247,248,.34);
  --danger:#d95d4b;
}

html{
  background:var(--bg);
}

body{
  min-height:100vh;
  overflow-x:hidden;
  color:var(--text);
  background:
    linear-gradient(180deg,#0a0d14 0%,#0d1119 100%);
  font-family:"Nunito Sans",sans-serif;
  -webkit-font-smoothing:antialiased;
}

button,
input,
textarea{
  font:inherit;
}

button{
  border:0;
  color:inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible{
  outline:2px solid rgba(255,255,255,.6);
  outline-offset:3px;
}

.hidden{
  display:none!important;
}


/* =========================================================
   REAL LOADER COMPONENT (JS INTEGRATED)
========================================================= */

.loader-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  width: 100%;
  min-height: 120px;
}

/* HTML: <div class="loader"></div> */
.loader {
  width: 15px;
  aspect-ratio: 1;
  border-radius: 50%;
  animation: l5 1s infinite linear alternate;
}

@keyframes l5 {
    0%  {box-shadow: 20px 0 #fff, -20px 0 rgba(255,255,255,0.15); background: #fff }
    33% {box-shadow: 20px 0 #fff, -20px 0 rgba(255,255,255,0.15); background: rgba(255,255,255,0.15)}
    66% {box-shadow: 20px 0 rgba(255,255,255,0.15), -20px 0 #fff; background: rgba(255,255,255,0.15)}
    100%{box-shadow: 20px 0 rgba(255,255,255,0.15), -20px 0 #fff; background: #fff }
}


/* =========================================================
   BACKGROUND
========================================================= */

.app-bg{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background:
    radial-gradient(
      700px 380px at 0 -10%,
      rgba(255,255,255,.035),
      transparent 65%
    ),
    radial-gradient(
      650px 360px at 100% 10%,
      rgba(255,255,255,.02),
      transparent 68%
    );
}


/* =========================================================
   HOME HEADER BAR
========================================================= */

.home-header {
  position: relative;
  z-index: 40;

  margin: 0 0 20px 0;
  padding: 10px 16px;

  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(20, 23, 30, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.home-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.home-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  background: #191c24;
}

.home-header-name {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.home-search-button{
  position: relative;
  width: 38px;
  height: 38px;

  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;

  background: rgba(255,255,255,.08);

  display: grid;
  place-items: center;

  cursor: pointer;
  flex-shrink: 0;
  transition: .18s ease;
}

.home-search-button:hover{
  background:rgba(255,255,255,.16);
  transform:scale(1.03);
}

.home-search-button svg,
.round-button svg,
.full-search svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}


/* =========================================================
   FLOATING SEARCH BAR
========================================================= */

.floating-search-bar {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: 50%;
  transform: translate(-50%, -80px);
  z-index: 100;

  width: min(520px, calc(100% - 32px));
  opacity: 0;
  pointer-events: none;

  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-search-bar.show {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.floating-search-inner {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 10px 18px;
  border-radius: 35px;

  background: rgba(22, 26, 36, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.floating-search-inner .search-icon {
  width: 19px;
  height: 19px;
  stroke: rgba(255, 255, 255, 0.6);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.floating-search-inner input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.floating-search-inner input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}


/* =========================================================
   APP SHELL
========================================================= */

.app-shell{
  width:min(980px,100%);
  margin:auto;
  padding:20px 18px 105px;
}

.views{
  position:relative;
  overflow:hidden;
}

.view{
  display:none;
}

.view.active{
  display:block;
}


/* =========================================================
   HOME & CAROUSELS
========================================================= */

.featured-section{
  margin-bottom:28px;
}

.featured-track{
  display:flex;
  gap:14px;

  overflow-x:auto;

  scroll-snap-type:x mandatory;
  scrollbar-width:none;

  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;

  padding:2px 1px 7px;
}

.featured-track::-webkit-scrollbar{
  display:none;
}

.featured-card{
  position:relative;

  flex:0 0 100%;

  height:300px;

  overflow:hidden;

  border-radius:27px;
  border:1px solid var(--line);

  background:#151820;

  scroll-snap-align:start;

  cursor:pointer;

  box-shadow:0 20px 55px rgba(0,0,0,.3);
}

.featured-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.featured-card:after{
  content:"";
  position:absolute;
  inset:0;

  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.05) 24%,
      rgba(0,0,0,.13) 44%,
      rgba(0,0,0,.9) 100%
    );
}

.featured-content{
  position:absolute;
  z-index:2;

  inset:auto 20px 22px;

  text-align:center;
}

.featured-title{
  font-size:24px;
  line-height:1.12;
  font-weight:800;

  text-shadow:0 3px 15px #000;
}

.new-tag{
  display:inline-flex;
  align-items:center;

  padding:5px 11px;

  border-radius:9px;

  background:rgba(120,120,120,.48);
  border:1px solid rgba(255,255,255,.12);

  font-size:10px;
  font-weight:800;
  letter-spacing:1px;

  text-transform:uppercase;

  margin-bottom:9px;
}

.featured-footer{
  display:flex;
  align-items:center;
  justify-content:center;

  position:relative;

  min-height:22px;
}

.dots{
  display:flex;
  justify-content:center;

  gap:6px;
  margin-top:5px;
}

.dot{
  width:7px;
  height:7px;

  border-radius:50%;

  background:rgba(255,255,255,.24);

  transition:width .2s ease;
}

.dot.active{
  width:22px;
  border-radius:8px;
  background:#fff;
}

.counter{
  position:absolute;
  right:4px;
  top:7px;

  font-size:10px;

  color:var(--muted2);
  font-weight:700;
}

.loading-featured{
  width:100%;
  height:300px;

  border-radius:27px;
  border:1px solid var(--line);

  display:grid;
  place-items:center;

  color:var(--muted2);

  background:rgba(255,255,255,.025);
}

.content-section{
  margin-top:32px;
}

.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;

  gap:12px;

  margin:0 2px 13px;
}

.section-head h2{
  font-size:23px;
  letter-spacing:-.7px;
  margin-top:3px;
}

.eyebrow{
  display:block;

  color:var(--muted2);

  font-size:10px;
  font-weight:800;
  letter-spacing:1.7px;

  text-transform:uppercase;
}

.text-button{
  background:transparent;

  color:rgba(255,255,255,.68);

  font-size:12px;
  font-weight:800;

  cursor:pointer;

  display:flex;
  align-items:center;

  gap:7px;
}

.text-button:hover{
  color:#fff;
}

.arrow{
  width:7px;
  height:7px;

  border-top:1.5px solid currentColor;
  border-right:1.5px solid currentColor;

  transform:rotate(45deg);
}

.arrow.down{
  transform:rotate(135deg);
}

.anime-row{
  display:flex;

  gap:13px;

  overflow-x:auto;

  padding:2px 1px 12px;

  scrollbar-width:none;

  scroll-snap-type:x proximity;

  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
}

.anime-row::-webkit-scrollbar{
  display:none;
}

.anime-row .anime-card{
  flex:0 0 126px;
  width:126px;
}

.anime-grid{
  display:grid;

  grid-template-columns:
    repeat(3,minmax(0,1fr));

  gap:18px 13px;
}

.anime-card{
  min-width:0;

  cursor:pointer;

  animation:cardIn .32s ease both;
}

.anime-poster-wrap{
  position:relative;

  overflow:hidden;

  border-radius:17px;

  background:#161920;

  border:1px solid var(--soft);
}

.anime-poster{
  display:block;

  width:100%;

  aspect-ratio:2/3;

  object-fit:cover;

  background:#14161c;
}

.card-badge{
  position:absolute;

  left:8px;
  top:8px;

  padding:5px 8px;

  border-radius:8px;

  background:rgba(115,115,115,.62);

  border:1px solid rgba(255,255,255,.12);

  font-size:9px;
  font-weight:800;
}

.favorite-mini{
  position:absolute;

  right:8px;
  top:8px;

  width:29px;
  height:29px;

  border-radius:50%;

  display:grid;
  place-items:center;

  background:rgba(0,0,0,.46);

  cursor:pointer;
  transition: all 0.2s ease;
}

.favorite-mini svg{
  width:15px;
  height:15px;

  fill:none;
  stroke:rgba(255,255,255,0.8);
  stroke-width:1.7;
  transition: all 0.2s ease;
}

/* WARNA INTERAKSI PADA TOMBOL/TAG FAVORIT DIPENCET JADI PUTIH TERANG */
.favorite-mini.active{
  background: rgba(255,255,255,0.3) !important;
  border: 1px solid rgba(255,255,255,0.85) !important;
}

.favorite-mini.active svg,
.favorite-mini.active svg path {
  fill: #ffffff !important;
  stroke: #ffffff !important;
  color: #ffffff !important;
}

.anime-info{
  padding:8px 2px 0;
}

.anime-title{
  font-size:12px;
  line-height:1.35;
  font-weight:800;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;

  overflow:hidden;
}

.anime-meta{
  font-size:10px;

  color:var(--muted2);

  margin-top:4px;
}

.empty-inline,
.empty-panel,
.loading-card{
  color:var(--muted2);

  font-size:12px;

  border:1px dashed var(--line);

  border-radius:17px;

  padding:22px;

  text-align:center;

  min-width:100%;
}

.anime-grid .empty-panel{
  grid-column:1/-1;
}

.show-more-wrap{
  display:flex;
  justify-content:center;

  padding-top:18px;
}

.show-more-button{
  background:transparent;

  color:rgba(255,255,255,.76);

  font-size:13px;
  font-weight:800;

  display:inline-flex;
  align-items:center;

  gap:9px;

  padding:8px 16px;

  border-radius:18px;

  cursor:pointer;
}

.genre-list{
  display:flex;

  flex-wrap:wrap;

  gap:9px;
}

.genre-chip{
  display:inline-flex;

  align-items:center;
  justify-content:center;

  min-height:38px;

  padding:8px 14px;

  border-radius:20px;

  border:1px solid rgba(255,255,255,.12);

  background:rgba(255,255,255,.025);

  color:rgba(255,255,255,.76);

  font-size:12px;
  font-weight:700;

  cursor:pointer;

  text-decoration:none;
}

.movie-row .anime-card{
  flex-basis:145px;
  width:145px;
}


/* =========================================================
   PAGE HEADING
========================================================= */

.page-heading{
  padding:10px 3px 20px;
}

.page-heading h1{
  font-size:34px;
  letter-spacing:-1.2px;
  margin-top:5px;
}

.page-heading p{
  font-size:13px;
  color:var(--muted);
  margin-top:5px;
}


/* =========================================================
   SCHEDULE
========================================================= */

.schedule-page{
  padding-top:0px;
}

.schedule-week{
  display:flex;

  gap:4px;

  overflow-x:auto;

  scrollbar-width:none;

  padding:0 2px 13px;

  border-bottom:1px solid rgba(255,255,255,.08);

  touch-action: pan-x pan-y;
}

.schedule-week::-webkit-scrollbar{
  display:none;
}

.schedule-day-btn{
  flex:0 0 auto;

  min-width:70px;

  height:42px;

  padding:0 14px;

  border-radius:22px;

  background:rgba(255,255,255,.025);

  color:rgba(255,255,255,.52);

  font-size:12px;
  font-weight:800;

  cursor:pointer;

  transition:.2s ease;
}

.schedule-day-btn.active{
  background:rgba(255,255,255,.17);
  color:#fff;
}

.schedule-date{
  width:max-content;

  min-width:170px;

  margin:20px auto 20px;

  padding:10px 24px;

  text-align:center;

  border-radius:30px;

  background:rgba(255,255,255,.1);

  border:1px solid rgba(255,255,255,.1);

  font-size:20px;
  font-weight:900;
}

.schedule-timeline{
  position:relative;

  padding-left:42px;
}

.timeline-line{
  position:absolute;

  left:17px;
  top:10px;
  bottom:0;

  width:5px;

  border-radius:50px;

  background:rgba(255,255,255,.14);
}

.schedule-item{
  position:relative;

  display:grid;

  grid-template-columns:
    210px minmax(0,1fr);

  gap:24px;

  padding:10px 0 36px;

  min-height:180px;
}

.schedule-node{
  position:absolute;

  left:-35px;
  top:25px;

  width:20px;
  height:20px;

  border-radius:50%;

  background:#444;

  border:3px solid #0b0e14;

  z-index:2;
}

.schedule-cover{
  width:100%;

  max-width:210px;

  aspect-ratio:2/3;

  object-fit:cover;

  display:block;

  border-radius:18px;

  border:1px solid rgba(255,255,255,.11);

  background:#161920;
}

.schedule-info{
  min-width:0;

  padding-top:4px;
}

.schedule-title{
  font-size:21px;

  line-height:1.2;

  font-weight:900;

  margin-bottom:13px;
}

.schedule-tags{
  display:flex;

  flex-wrap:wrap;

  gap:7px;

  margin-bottom:12px;
}

.schedule-tag{
  display:inline-flex;

  align-items:center;

  min-height:28px;

  padding:5px 11px;

  border-radius:20px;

  background:rgba(255,255,255,.08);

  border:1px solid rgba(255,255,255,.11);

  font-size:10px;

  font-weight:800;
}

.schedule-tag.ongoing{
  background:rgba(105,165,158,.2);
}

.schedule-empty{
  border:1px dashed var(--line);

  border-radius:18px;

  padding:25px;

  color:var(--muted);

  text-align:center;
}


/* =========================================================
   HISTORY WITH LIQUID GLASS DELETE
========================================================= */

.history-page{
  padding:10px 2px 30px;
}

.history-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.history-title h1{
  display:inline-block;
  padding:6px 20px;
  border-radius:30px;
  background:rgba(255,255,255,.1);
  font-size:26px;
  font-weight:900;
}

.liquid-glass-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  padding: 8px 16px;
  border-radius: 24px;

  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 800;

  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.liquid-glass-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateY(-1px);
}

.liquid-glass-btn.confirm-delete-btn {
  background: rgba(217, 93, 75, 0.25);
  border-color: rgba(217, 93, 75, 0.45);
  color: #ff8a7a;
}

.liquid-glass-btn.confirm-delete-btn:hover:not(:disabled) {
  background: rgba(217, 93, 75, 0.45);
  color: #fff;
}

.liquid-glass-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

.history-delete-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 12px 18px;
  margin-bottom: 22px;

  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.selected-count-text {
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.75);
}

.delete-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-list{
  display:flex;
  flex-direction:column;
  gap:0;
}

.history-item{
  position: relative;
  display:grid;

  grid-template-columns: 140px minmax(0,1fr) auto;
  gap:20px;

  padding:14px;
  margin-bottom:18px;

  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);

  transition: border-color 0.2s ease;
}

.history-item.delete-mode {
  cursor: pointer;
}

.history-item.selected {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
}

.history-poster{
  width:140px;
  aspect-ratio:2/3;
  object-fit:cover;
  border-radius:14px;
  background:#161920;
  border:1px solid rgba(255,255,255,.1);
}

.history-info{
  padding-top:4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.history-anime-title{
  font-size:18px;
  font-weight:900;
  line-height:1.25;
  margin-bottom:10px;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.history-episode{
  display:inline-flex;
  width: fit-content;
  padding:6px 12px;
  border-radius:16px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.1);
  font-size:11px;
  font-weight:800;
}

.history-time{
  display:block;
  color:var(--muted2);
  font-size:10px;
  margin-top:10px;
}

.history-select-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 6px;
}

.history-select-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.history-item.selected .history-select-circle {
  background: #fff;
  border-color: #fff;
}

.history-select-circle svg {
  width: 14px;
  height: 14px;
  stroke: #111;
  fill: none;
  stroke-width: 3;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.history-item.selected .history-select-circle svg {
  opacity: 1;
}


/* =========================================================
   ABOUT & PROFILE
========================================================= */

.about-page{
  max-width:520px;
  margin:0 auto;
  padding:15px 10px 30px;
}

.profile-panel{
  width:100%;
  padding:24px 20px 20px;
  border-radius:32px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.045);
  text-align:center;
}

.profile-avatar-button{
  position:relative;
  width:100px;
  height:100px;
  margin:0 auto 14px;
  border-radius:50%;
  overflow:visible;
  background:#171a22;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  cursor:pointer;
  transition: border-color 0.2s ease;
}

.profile-avatar-button:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.profile-avatar-button img{
  width:100%;
  height:100%;
  border-radius:50%;
  object-fit:cover;
  display:block;
}

.avatar-edit{
  position:absolute;
  right:-2px;
  bottom:2px;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fff;
  color:#111;
  font-size:16px;
  font-weight:900;
  border:3px solid #0b0e14;
}

.profile-name-button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  background:transparent;
  font-size:20px;
  font-weight:900;
  cursor:pointer;
}

.edit-name{
  font-size:9px;
  color:var(--muted2);
  padding:4px 7px;
  border-radius:10px;
  background:rgba(255,255,255,.06);
}

.profile-bio{
  display:block;
  width:100%;
  min-height:72px;
  max-height:100px;
  resize:vertical;
  margin-top:18px;
  padding:12px 13px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:17px;
  outline:none;
  background:rgba(0,0,0,.15);
  color:#fff;
  text-align:center;
  font-size:12px;
  line-height:1.5;
}

.profile-bio::placeholder{
  color:var(--muted2);
}

.bio-save-btn {
  margin-top: 10px;
  width: 100%;
}

.about-actions{
  width:92%;
  margin:25px auto 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:13px;
}

.about-action{
  width:100%;
  max-width:430px;
  min-height:55px;
  padding:0 20px;
  border-radius:30px;
  background:rgba(255,255,255,.09);
  border:1px solid rgba(255,255,255,.12);
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  transition:.2s ease;
}

.about-action:hover{
  background:rgba(255,255,255,.14);
  transform:translateY(-1px);
}

.about-action#logoutButton{
  background:var(--danger);
  border-color:rgba(255,255,255,.18);
}


/* =========================================================
   POPUP
========================================================= */

.popup-overlay{
  position:fixed;
  inset:0;
  z-index:200;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(0,0,0,.68);
}

.popup-box{
  position:relative;
  width:min(520px,100%);
  max-height:min(720px,85vh);
  overflow:hidden;
  padding:25px;
  border-radius:50px;
  border:1px solid rgba(255,255,255,.18);
  background:#202228;
  box-shadow:
    0 30px 80px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.popup-back{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-bottom:18px;
  padding:7px 12px;
  border-radius:20px;
  background:rgba(255,255,255,.07);
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}

.popup-back svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
}

.popup-box h2{
  font-size:26px;
  font-weight:900;
  margin-bottom:15px;
}

.popup-content{
  max-height:58vh;
  overflow-y:auto;
  padding-right:8px;
  color:rgba(255,255,255,.64);
  font-size:13px;
  line-height:1.8;
  white-space:pre-wrap;
}

.popup-content::-webkit-scrollbar{
  width:4px;
}

.popup-content::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.15);
  border-radius:50px;
}


/* =========================================================
   SEARCH
========================================================= */

.search-view{
  min-height:calc(100vh - 180px);
}

.search-page-head{
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 0 24px;
}

.round-button{
  width:52px;
  height:52px;
  flex:0 0 52px;
  display:grid;
  place-items:center;
  background:transparent;
  border-radius:50%;
  cursor:pointer;
}

.round-button:hover{
  background:rgba(255,255,255,.06);
}

.full-search{
  height:58px;
  flex:1;
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 18px;
  border-radius:31px;
  background:#252b37;
  border:1px solid rgba(255,255,255,.04);
}

.full-search input{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  color:#fff;
  font-size:16px;
  font-weight:600;
}

.full-search input::placeholder{
  color:rgba(255,255,255,.48);
}

.search-heading{
  padding:0 3px 18px;
}

.search-heading h1{
  font-size:25px;
  margin-top:4px;
}

.search-grid{
  padding-bottom:50px;
}


/* =========================================================
   AUTH SCREEN & FADE ANIMATIONS
========================================================= */

.auth-screen{
  position:fixed;
  inset:0;
  z-index:500;
  overflow-y:auto;
  padding:30px 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#090c12;
}

.auth-box{
  width:min(430px,100%);
  padding:30px 24px;
  border-radius:35px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.045);
  box-shadow:0 30px 80px rgba(0,0,0,.4);
  text-align:center;
}

.auth-logo{
  width:65px;
  height:65px;
  margin:0 auto 18px;
  display:grid;
  place-items:center;
  border-radius:22px;
  background:#fff;
  color:#111;
  font-size:28px;
  font-weight:900;
}

.auth-box h1{
  font-size:29px;
  font-weight:900;
}

.auth-subtitle{
  color:var(--muted);
  font-size:12px;
  margin:5px 0 22px;
}

.auth-field{
  display:block;
  text-align:left;
  margin-bottom:13px;
}

.auth-field span{
  display:block;
  color:var(--muted2);
  font-size:10px;
  font-weight:800;
  margin:0 0 6px 5px;
}

.auth-field input{
  width:100%;
  height:50px;
  padding:0 15px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.1);
  outline:none;
  background:rgba(255,255,255,.06);
  color:#fff;
  font-size:13px;
}

.auth-submit{
  width:100%;
  height:52px;
  margin-top:8px;
  border-radius:27px;
  background:#fff;
  color:#111;
  font-size:14px;
  font-weight:900;
  cursor:pointer;
}

.auth-switch{
  margin-top:18px;
  background:transparent;
  color:rgba(255,255,255,.62);
  font-size:11px;
  cursor:pointer;
}

.auth-switch:hover{
  color:#fff;
}

/* ANIMASI HALUS BERPINDAH HALAMAN / LOGOUT */
.fade-out {
  animation: fadeOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in {
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.95); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}


/* =========================================================
   BOTTOM NAV
========================================================= */

.bottom-nav{
  position:fixed;
  z-index:50;
  left:50%;
  bottom:max(12px,env(safe-area-inset-bottom));
  transform:translateX(-50%);
  width:min(620px,calc(100% - 28px));
  height:58px;
  padding:4px;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  border-radius:50px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(18,20,25,.88);
  box-shadow:
    0 16px 45px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.07);
}

.nav-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  border-radius:44px;
  background:transparent;
  color:var(--muted2);
  cursor:pointer;
  font-size:8px;
  font-weight:800;
}

.nav-item.active{
  color:#fff;
  background:rgba(255,255,255,.14);
}

.nav-item svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}


/* =========================================================
   TOAST
========================================================= */

.toast{
  position:fixed;
  z-index:600;
  left:50%;
  bottom:84px;
  transform:translate(-50%,15px);
  opacity:0;
  pointer-events:none;
  padding:10px 15px;
  border:1px solid var(--line);
  background:rgba(20,22,28,.95);
  border-radius:14px;
  font-size:11px;
  color:#fff;
  transition:.2s ease;
}

.toast.show{
  opacity:1;
  transform:translate(-50%,0);
}


/* =========================================================
   ANIMATION
========================================================= */

@keyframes cardIn{
  from{
    opacity:0;
    transform:translateY(7px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media(min-width:760px){
  .featured-card{
    flex-basis:calc(100% - 100px);
  }

  .anime-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}

@media(max-width:680px){
  .app-shell{
    padding:20px 15px 100px;
  }

  .featured-card{
    height:275px;
  }

  .featured-title{
    font-size:21px;
  }

  .anime-grid{
    gap:17px 11px;
  }

  .anime-row .anime-card{
    flex-basis:118px;
    width:118px;
  }

  .movie-row .anime-card{
    flex-basis:135px;
    width:135px;
  }

  .full-search{
    height:56px;
  }

  .round-button{
    width:46px;
    height:46px;
    flex-basis:46px;
  }

  .schedule-item{
    grid-template-columns:125px minmax(0,1fr);
    gap:15px;
  }

  .schedule-cover{
    max-width:125px;
  }

  .schedule-title{
    font-size:16px;
  }

  .history-item{
    grid-template-columns:110px minmax(0,1fr) auto;
    gap:14px;
    padding:10px;
  }

  .history-poster{
    width:110px;
  }

  .history-anime-title{
    font-size:15px;
  }

  .profile-panel{
    padding:21px 17px 18px;
  }

  .about-action{
    min-height:52px;
  }
}

@media(max-width:390px){
  .featured-card{
    height:250px;
  }

  .anime-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .nav-item{
    font-size:7px;
  }

  .nav-item svg{
    width:19px;
    height:19px;
  }

  .bottom-nav{
    height:56px;
  }

  .schedule-item{
    grid-template-columns:105px minmax(0,1fr);
    gap:12px;
  }

  .schedule-cover{
    max-width:105px;
  }

  .history-item{
    grid-template-columns:90px minmax(0,1fr) auto;
    gap:12px;
  }

  .history-poster{
    width:90px;
  }
}

@media(prefers-reduced-motion:reduce){
  *,
  *:before,
  *:after{
    scroll-behavior:auto!important;
    animation-duration:.01ms!important;
    transition-duration:.01ms!important;
  }
}

/* =========================================================
   1. SKELETON SHIMMER CARD LOADING
========================================================= */

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 13px;
  width: 100%;
}

.skeleton-row {
  display: flex;
  gap: 13px;
  overflow: hidden;
  width: 100%;
}

.skeleton-card {
  border-radius: 17px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--soft);
  min-width: 0;
}

.skeleton-row .skeleton-card {
  flex: 0 0 126px;
  width: 126px;
}

.skeleton-poster {
  width: 100%;
  aspect-ratio: 2/3;
  background: linear-gradient(90deg, #151820 25%, #252a38 50%, #151820 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s infinite linear;
}

.skeleton-line {
  height: 12px;
  margin: 10px 8px 4px;
  border-radius: 6px;
  background: linear-gradient(90deg, #151820 25%, #252a38 50%, #151820 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s infinite linear;
}

.skeleton-line.short {
  width: 60%;
  height: 10px;
  margin-top: 4px;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* =========================================================
   2. FIX FAVORITE BUTTON COLOR RESET
========================================================= */

.favorite-mini {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset saat tidak aktif */
.favorite-mini:not(.active) {
  background: rgba(0, 0, 0, 0.55) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.favorite-mini:not(.active) svg,
.favorite-mini:not(.active) svg path {
  fill: none !important;
  stroke: rgba(255, 255, 255, 0.8) !important;
}

/* Aktif (Favorite) */
.favorite-mini.active {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: #ffffff !important;
  transform: scale(1.08);
}

.favorite-mini.active svg,
.favorite-mini.active svg path {
  fill: #111111 !important;
  stroke: #111111 !important;
}


/* =========================================================
   3. CAROUSEL DOTS ANIMATION FIX
========================================================= */

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 0;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.dot.active {
  width: 24px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}


/* =========================================================
   4. POPUP OVERLAY & BOX ANIMATION
========================================================= */

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.popup-overlay:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

.popup-box {
  position: relative;
  width: min(520px, 100%);
  max-height: min(720px, 85vh);
  overflow: hidden;
  padding: 25px;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #181b22;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.popup-overlay:not(.hidden) .popup-box {
  transform: scale(1) translateY(0);
}


/* =========================================================
   5. BOTTOM NAV SMOOTH TRANSITION
========================================================= */

.bottom-nav {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(620px, calc(100% - 28px));
  height: 58px;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(18, 20, 25, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 44px;
  background: transparent;
  color: var(--muted2);
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.nav-item:active {
  transform: scale(0.93);
}

* {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: transparent;
  color: inherit;
}
