:root { --bg: #050505; --accent: #e50914; --text: #ffffff; --card-w: 160px; --card-h: 240px; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); margin: 0; overflow-x: hidden; }

.navbar { position: fixed; width: 100%; padding: 15px 5%; z-index: 1000; display: flex; justify-content: space-between; background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent); box-sizing: border-box; }
.logo { color: var(--accent); font-weight: 900; font-size: 1.8rem; letter-spacing: -1px; }
.nav-icons i { font-size: 1.2rem; cursor: pointer; margin-left: 20px; transition: 0.3s; }
.nav-icons i:hover { color: var(--accent); }

.banner { height: 75vh; background-size: cover; background-position: center top; position: relative; display: flex; align-items: center; padding: 0 5%; }
.banner-content { max-width: 600px; z-index: 2; }
.banner-fade { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, var(--bg) 5%, transparent 70%); }
.play-btn { background: white; color: black; border: none; padding: 12px 30px; border-radius: 4px; font-weight: bold; cursor: pointer; margin-right: 10px; font-size: 1rem; }
.info-btn { background: rgba(109, 109, 110, 0.7); color: white; border: none; padding: 12px 30px; border-radius: 4px; font-weight: bold; cursor: pointer; font-size: 1rem; }

.genre-wrapper { padding: 20px 5%; }
.genre-container { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.genre-pill { background: #1a1a1a; border: 1px solid #333; color: white; padding: 8px 18px; border-radius: 20px; cursor: pointer; white-space: nowrap; transition: 0.3s; }
.genre-pill.active { background: var(--accent); border-color: var(--accent); }

.content { padding: 0 5%; }
.row { margin-bottom: 40px; }
.row h2 { font-size: 1.4rem; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.scroller { display: flex; gap: 15px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }

.card { min-width: var(--card-w); height: var(--card-h); border-radius: 8px; overflow: hidden; position: relative; cursor: pointer; transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); flex-shrink: 0; }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card:hover { transform: scale(1.1); z-index: 10; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }

.card-badges { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; z-index: 5; }
.badge-rating { background: var(--accent); color: white; font-size: 0.7rem; padding: 3px 6px; border-radius: 4px; font-weight: bold; }
.badge-year { background: rgba(0,0,0,0.7); font-size: 0.7rem; padding: 3px 6px; border-radius: 4px; backdrop-filter: blur(4px); }

@keyframes shimmer { 0% { background-position: -468px 0; } 100% { background-position: 468px 0; } }
.skeleton-card { 
  min-width: var(--card-w); height: var(--card-h); border-radius: 8px; flex-shrink: 0;
  background: #1a1a1a;
  background-image: linear-gradient(to right, #1a1a1a 0%, #2a2a2a 20%, #1a1a1a 40%, #1a1a1a 100%);
  background-repeat: no-repeat; background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
}

.player-wrapper { width: 95%; max-width: 1100px; margin: 20px auto; background: #000; border-radius: 12px; overflow: hidden; border: 1px solid #333; }
.player-header { padding: 10px 20px; background: #1a1a1a; display: flex; justify-content: space-between; align-items: center; }
.player-controls { display: flex; align-items: center; gap: 10px; }
.close-player-btn { background: #e50914; color: #fff; border: none; padding: 6px 15px; border-radius: 4px; cursor: pointer; font-weight: bold; }
.iframe-container { position: relative; padding-bottom: 56.25%; height: 0; background: #000; }
.iframe-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.next-btn { background: #ffffff; color: #000000; border: none; padding: 6px 15px; border-radius: 4px; font-weight: bold; cursor: pointer; font-size: 0.8rem; display: flex; align-items: center; gap: 8px; }
.download-btn { background: #2ecc71; color: white; border: none; padding: 6px 15px; border-radius: 4px; font-weight: bold; cursor: pointer; font-size: 0.8rem; }

.search-overlay { position: fixed; inset: 0; background: rgba(5,5,5,0.98); z-index: 2000; display: none; padding: 80px 5% 40px; overflow-y: auto; }
.search-input-wrapper { display: flex; align-items: center; background: #1a1a1a; padding: 15px 25px; border-radius: 50px; margin: 0 auto 40px; max-width: 800px; border: 1px solid #333; }
.search-input-wrapper input { background: transparent; border: none; color: white; font-size: 1.2rem; width: 100%; outline: none; margin: 0 15px; }
.search-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 25px; }
.search-card { cursor: pointer; text-align: center; }
.search-card img { width: 100%; border-radius: 8px; margin-bottom: 8px; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.9); display: none; align-items: center; justify-content: center; z-index: 1100; padding: 20px; }
.modal-content { background: #181818; width: 100%; max-width: 650px; border-radius: 15px; overflow: hidden; position: relative; }
.modal-banner { height: 300px; background-size: cover; background-position: center; position: relative; }
.modal-body { padding: 30px; }
.episode-controls { display: flex; gap: 15px; margin-bottom: 20px; background: #222; padding: 15px; border-radius: 8px; }
.selector-group { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.selector-group select { background: #333; color: white; border: 1px solid #444; padding: 8px; border-radius: 4px; }
.modal-actions { display: flex; gap: 10px; }
.play-btn-large { flex: 2; background: var(--accent); color: white; border: none; padding: 12px; border-radius: 6px; font-weight: bold; cursor: pointer; }
.trailer-btn { flex: 1; background: #fff; color: #000; border: none; padding: 12px; border-radius: 6px; font-weight: bold; cursor: pointer; }
.mylist-btn { flex: 0.5; background: #333; color: #fff; border: none; padding: 12px; border-radius: 6px; cursor: pointer; }
.close-modal { position: absolute; right: 20px; top: 15px; font-size: 2.5rem; color: white; cursor: pointer; z-index: 10; }


.search-input-wrapper {
  display: flex;
  align-items: center;
  background: #222;
  padding: 15px 25px;
  border-radius: 50px;
  margin-bottom: 40px;
}

.search-input-wrapper input {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.2rem;
  margin: 0 15px;
  width: 100%;
  outline: none;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
}

.search-card {
  cursor: pointer;
  transition: 0.3s;
}

.search-card img {
  width: 100%;
  border-radius: 8px;
}

.search-card p {
  font-size: 0.9rem;
  margin-top: 8px;
  text-align: center;
  color: #bbb;
}

.search-card:hover { transform: scale(1.05); }
.search-card:hover p { color: white; }

/* REUSE PLAYER STYLES FROM PREVIOUS CHAT */
.player-wrapper { width: 95%; max-width: 1100px; margin: 20px auto; background: #000; border-radius: 12px; overflow: hidden; border: 1px solid #333; }
.player-header { padding: 10px 20px; background: #1a1a1a; display: flex; justify-content: space-between; align-items: center; }
.close-player-btn { background: #e50914; color: #fff; border: none; padding: 5px 15px; border-radius: 4px; cursor: pointer; }
.iframe-container { position: relative; padding-bottom: 56.25%; height: 0; }
.iframe-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
/* MODAL ACTIONS */
.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.play-btn-large {
    flex: 2;
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.mylist-btn {
    flex: 1;
    background: #333;
    color: white;
    border: 1px solid #444;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.mylist-btn:hover {
    background: #444;
}

/* ROW SPACING */
#my-list-section {
    border-bottom: 1px solid #222;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

#my-list-section h2 {
    color: #ffd700; /* Gold color to make My List stand out */
    font-size: 1.4rem;
}
/* CARD BADGE SYSTEM */
.card {
  position: relative; /* Necessary for absolute badges */
  min-width: 150px;
  height: 225px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card-badges {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  z-index: 5;
  pointer-events: none; /* Allows clicks to pass through to the card */
}

.badge-rating {
  background: rgba(229, 9, 20, 0.9); /* Netflix Red */
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 3px 7px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.badge-year {
  background: rgba(0, 0, 0, 0.7);
  color: #ddd;
  font-size: 0.7rem;
  padding: 3px 7px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* CARD HOVER INFO */
.card-info-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px 10px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .card-info-overlay {
  opacity: 1;
}

.card-title {
  font-size: 0.8rem;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* NEW BUTTON STYLES */
.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.trailer-btn {
    flex: 1;
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.trailer-btn:hover {
    background: #cccccc;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.download-btn {
    background: #2ecc71; /* Green for download */
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.8rem;
}

.download-btn:hover {
    background: #27ae60;
}

/* Meta Data row inside Modal */
#modal-meta-row {
    display: flex;
    gap: 15px;
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.episode-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    background: #222;
    padding: 15px;
    border-radius: 8px;
}

.selector-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.selector-group label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #888;
    font-weight: bold;
}

.selector-group select {
    background: #333;
    color: white;
    border: 1px solid #444;
    padding: 8px;
    border-radius: 4px;
    outline: none;
}
/* Add to home.css */
.next-btn {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.next-btn:hover {
    background: var(--accent);
    color: white;
}

.next-btn i {
    font-size: 0.9rem;
}
/* Autoplay Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #333;
  transition: .4s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider { background-color: var(--accent); }
input:checked + .slider:before { transform: translateX(14px); }

#next-timer {
  font-family: monospace;
  letter-spacing: 1px;
}
.banner { position: relative; }

/* Style para sa arrows */
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    border-radius: 50%; /* Pabilog na arrow buttons */
    margin: 0 15px;
}

.banner-nav:hover { background: var(--accent); }
.banner-nav.prev { left: 0; }
.banner-nav.next { right: 0; }

.banner-buttons { display: flex; gap: 10px; }
#trailer-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Para hindi matakpan ng banner-fade ang video */
#trailer-container {
    z-index: 5 !important;
}
/* Container ng Trailer */
.trailer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 10000; /* Mataas para matakpan ang banner content */
    background: #000;
}

/* Ang Close Button */
.close-trailer-btn {
    position: absolute;
    top: 80px; /* Binabaan natin para hindi matakpan ng Navbar/Account icon */
    right: 30px;
    z-index: 10001; /* Pinakamataas na layer */
    background: rgba(229, 9, 20, 0.9); /* Kulay Cineflex Red para madaling makita */
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    transition: transform 0.2s ease;
}

.close-trailer-btn:hover {
    transform: scale(1.1);
    background: #ff0000;
}

/* Siguraduhin na ang video ay full screen sa loob ng banner */
#player iframe {
    width: 100%;
    height: 100%;
    border: none;
}
/* Container ng buttons */
.banner-buttons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

/* Premium Watch Now Button */
.play-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff; /* Puting-puti para lumitaw */
    color: #000000;
    border: none;
    padding: 12px 28px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.play-btn:hover {
    background-color: var(--accent); /* Nagiging pula (Cineflex red) kapag hinover */
    color: #ffffff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
}

/* Premium Glassmorphism Trailer Button */
.info-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(109, 109, 110, 0.4); /* Semi-transparent */
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px); /* Blur effect sa likod */
    padding: 12px 28px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.info-btn:hover {
    background: rgba(109, 109, 110, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Icon size adjustment */
.play-btn i, .info-btn i {
    font-size: 1.2rem;
}

/* Mobile responsive buttons */
@media (max-width: 768px) {
    .play-btn, .info-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

.banner {
    /* Existing properties mo... */
    background-image: linear-gradient(
        to right, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        transparent 100%
    ), 
    linear-gradient(
        to top, 
        var(--bg) 0%, 
        transparent 20%
    );
}
/* Bottom Navigation Style */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 11000; /* Mas mataas sa lahat */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: env(safe-area-inset-bottom); /* Para sa iPhones */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #888;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.7rem;
    gap: 4px;
}

.nav-item i {
    font-size: 1.3rem;
}

.nav-item:hover, .nav-item.active {
    color: var(--accent);
}

/* Menu Drawer Style */
.drawer {
    position: fixed;
    bottom: -100%; /* Nakatago sa baba */
    left: 0;
    width: 100%;
    height: 50vh;
    background: #111;
    z-index: 12000;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px 20px 0 0;
    padding: 20px;
    box-sizing: border-box;
}

.drawer.open {
    bottom: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.drawer-content p {
    padding: 15px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #222;
    cursor: pointer;
}

/* Adjust body to not hide content behind nav */
body {
    padding-bottom: 80px;
}
/* ===== ADD-ONLY: FULL FIT BANNER TRAILER ===== */
#trailer-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: none;
  overflow: hidden;
}

#player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#player iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

/* Iangat ang banner content sa ibabaw ng video */
.banner-content {
  position: relative;
  z-index: 5;
}

/* Iangat din ang fade */
.banner-fade {
  z-index: 4;
  }
/* ===== ADD-ONLY: BANNER DETAILS SA BABA ===== */
.banner {
  align-items: flex-end; /* ibaba ang content */
  padding-bottom: 80px; /* space sa ilalim */
}

/* Container ng text + buttons */
.banner-content {
  max-width: 650px;
  z-index: 6;
}

/* Title mas cinematic */
#banner-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 10px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

/* Description */
#banner-desc {
  font-size: 1rem;
  line-height: 1.5;
  color: #ddd;
  max-width: 600px;
  margin-bottom: 25px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* Buttons alignment */
.banner-buttons {
  display: flex;
  gap: 12px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  #banner-title {
    font-size: 2rem;
  }

  #banner-desc {
    font-size: 0.9rem;
  }

  .banner {
    padding-bottom: 60px;
  }
}
/* Mas malakas na fade sa baba para readable ang text */
.banner-fade {
  background: linear-gradient(
    to top,
    rgba(5,5,5,0.95) 0%,
    rgba(5,5,5,0.6) 30%,
    transparent 70%
  );
}
.menu-section {
    margin-bottom: 25px;
}

.menu-section h4 {
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    border-bottom: 1px solid #222;
    padding-bottom: 5px;
}

.drawer-content p {
    padding: 12px 5px !important;
    font-size: 1rem !important;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
}

.drawer-content p:hover {
    color: white;
    background: rgba(255,255,255,0.05);
    padding-left: 10px !important;
}

.drawer {
    height: 70vh !important; /* Itinaas ko nang konti para kumasya ang bagong items */
    overflow-y: auto;
}
.cast-section {
    margin: 20px 0;
}

.cast-section h4 {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.cast-scroller {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.cast-scroller::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.cast-card {
    min-width: 80px;
    text-align: center;
}

.cast-card img {
    width: 70px;
    height: 70px;
    border-radius: 50%; /* Gawing circle ang mukha */
    object-fit: cover;
    border: 2px solid #333;
    margin-bottom: 5px;
}

.cast-name {
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

.cast-character {
    font-size: 0.65rem;
    color: #888;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}
.similar-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.similar-section h4 {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Tatlong column para sa mobile */
    gap: 10px;
    max-height: 400px; /* Limitahan ang taas para hindi masyadong mahaba ang modal */
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom scrollbar para sa grid */
.similar-grid::-webkit-scrollbar {
    width: 4px;
}
.similar-grid::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

.similar-card {
    cursor: pointer;
    transition: 0.2s;
}

.similar-card:hover {
    transform: translateY(-5px);
}

.similar-card img {
    width: 100%;
    border-radius: 6px;
    aspect-ratio: 2/3;
    object-fit: cover;
    background: #222;
}

.similar-card p {
    font-size: 0.7rem;
    margin-top: 5px;
    color: #bbb;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

@media (min-width: 600px) {
    .similar-grid {
        grid-template-columns: repeat(4, 1fr); /* Apat na column kapag malaki ang screen */
    }
}
.modal-content {
    max-height: 90vh; /* Para laging pasok sa screen */
    overflow-y: auto; /* Para ma-scroll ang loob ng modal */
}

.cast-scroller {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
    gap: 10px;
    margin-top: 15px;
}

.similar-card img {
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 2/3;
    object-fit: cover;
}
.modal-actions {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap; /* Para mag-adjust sa maliit na screen */
}

.play-btn-large {
    flex: 2; /* Mas mahaba ang Watch Now button */
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.trailer-btn, .mylist-btn {
    flex: 1;
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
}

/* Siguraduhin na walang ibang buttons na lumalabas */
.modal-body button:nth-child(n+5) {
    display: none !important;
}
/* --- PREMIUM UPGRADE START --- */

:root {
    --bg: #050505;
    --accent: #e50914;
    --accent-glow: rgba(229, 9, 20, 0.4);
    --glass: rgba(20, 20, 20, 0.75);
    --text: #ffffff;
    --card-w: 170px; /* Slightly wider cards */
}

/* Glassmorphism Navbar */
.navbar {
    background: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, transparent 100%) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Cinematic Banner */
.banner {
    height: 85vh !important;
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.banner-content h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

/* Premium Card Hover Effect */
.card {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease !important;
}

.card:hover {
    transform: scale(1.1) translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.9), 0 0 20px var(--accent-glow) !important;
    z-index: 99;
}

.card img {
    border: 1px solid rgba(255,255,255,0.1);
}

/* Horizontal Scrolling Snap */
.scroller {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding: 20px 0;
}

.card {
    scroll-snap-align: start;
    flex: 0 0 auto;
}

/* Hide Scrollbars but keep functionality */
.scroller::-webkit-scrollbar {
    display: none;
}

/* Full Screen Modal Upgrade */
.modal {
    background: rgba(0,0,0,0.85) !important;
    backdrop-filter: blur(20px);
}

.modal-content {
    background: #141414 !important;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 100px rgba(0,0,0,1);
    border-radius: 12px;
}

/* --- PREMIUM UPGRADE END --- */
/* --- PREMIUM UPGRADE START --- */

:root {
    --bg: #050505;
    --accent: #e50914;
    --accent-glow: rgba(229, 9, 20, 0.4);
    --glass: rgba(20, 20, 20, 0.75);
    --text: #ffffff;
    --card-w: 170px; /* Slightly wider cards */
}

/* Glassmorphism Navbar */
.navbar {
    background: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, transparent 100%) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Cinematic Banner */
.banner {
    height: 85vh !important;
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.banner-content h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

/* Premium Card Hover Effect */
.card {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease !important;
}

.card:hover {
    transform: scale(1.1) translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.9), 0 0 20px var(--accent-glow) !important;
    z-index: 99;
}

.card img {
    border: 1px solid rgba(255,255,255,0.1);
}

/* Horizontal Scrolling Snap */
.scroller {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding: 20px 0;
}

.card {
    scroll-snap-align: start;
    flex: 0 0 auto;
}

/* Hide Scrollbars but keep functionality */
.scroller::-webkit-scrollbar {
    display: none;
}

/* Full Screen Modal Upgrade */
.modal {
    background: rgba(0,0,0,0.85) !important;
    backdrop-filter: blur(20px);
}

.modal-content {
    background: #141414 !important;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 100px rgba(0,0,0,1);
    border-radius: 12px;
}

/* --- PREMIUM UPGRADE END --- */
/* --- ADD ONLY: SERVER SWITCHER UI --- */
.server-options {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.srv-btn {
    background: #222;
    color: #fff;
    border: 1px solid #444;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.srv-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.srv-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}









