/* =========================================================
   SHARKY MOVIES - FULL STYLE (Modern + Safe)
   - Keeps ALL your original class names
   - Upgrades visuals (cleaner, smoother, more modern)
   - Adds Continue Watching row styles
   ========================================================= */

/* Theme vars (safe) */
:root{
  --bg: #141414;
  --panel: #1f1f1f;
  --panel2: #111;
  --text: #ffffff;
  --muted: rgba(255,255,255,0.75);
  --muted2: rgba(255,255,255,0.6);
  --accent: #e50914;
  --accent2: #b20710;
  --shadow: rgba(0,0,0,0.75);
  --cardRadius: 14px;
  --softRadius: 12px;
}

/* Global Styles for Sharky Movies */
html, body {
  height: auto;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Smooth feel */
*{
  box-sizing: border-box;
}

a{
  color: inherit;
}

::selection{
  background: rgba(229,9,20,0.35);
}

/* Header for Sharky Movies */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background-color: rgba(31,31,31,0.92);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 22px rgba(0,0,0,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(10px) saturate(140%);
}

/* Logo */
.logo {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  user-select: none;
  letter-spacing: 0.6px;
  text-shadow: 0 6px 22px rgba(229,9,20,0.18);
}

/* Nav */
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  margin-right: 20px;
  transition: color 0.2s ease, transform 0.2s ease;
  opacity: 0.95;
}

nav a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

/* Search Input for Sharky Movies */
.search-container{
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-container input {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  font-size: 14px;
  width: 240px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  background: rgba(0,0,0,0.35);
  color: #fff;
}

.search-container input::placeholder{
  color: rgba(255,255,255,0.6);
}

.search-container input:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(229,9,20,0.20);
  border-color: rgba(229,9,20,0.65);
  background-color: rgba(0,0,0,0.55);
  color: #fff;
}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position: relative;
  height: 55vh;
  min-height: 420px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  padding: 0 20px;
  overflow: hidden;

  background: url('https://images.unsplash.com/photo-1517602302552-471fe67acf66?auto=format&fit=crop&w=1600&q=80')
    center/cover no-repeat;

  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 480px at 50% 20%, rgba(229,9,20,0.18), transparent 60%),
    linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.85));
  z-index: 0;
}

.hero::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 0;
}

.hero > *{
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 56px;
  margin: 0 0 12px;
  letter-spacing: 0.3px;
  text-shadow: 0 18px 60px rgba(0,0,0,0.75);
}

.hero p {
  font-size: 18px;
  max-width: 820px;
  line-height: 1.5;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 12px 40px rgba(0,0,0,0.65);
}

/* Discord line -> button */
.hero-support{
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 16px;
  border-radius: 999px;

  background: rgba(0,0,0,0.40);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);

  font-size: 15px;
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  cursor: pointer;

  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.hero-support img{
  width: 22px;
  height: 22px;
  transition: transform .15s ease;
}

.hero-support:hover{
  transform: translateY(-1px);
  border-color: rgba(229,9,20,0.55);
  box-shadow: 0 0 0 4px rgba(229,9,20,0.14), 0 18px 40px rgba(0,0,0,0.45);
}

.hero-support:hover img{
  transform: scale(1.08);
}

/* Hero Buttons */
.hero-actions{
  margin-top: 16px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content:center;
}

.hero-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,0.10);
  cursor: pointer;
  text-decoration:none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.hero-btn.primary{
  background: linear-gradient(180deg, rgba(229,9,20,1), rgba(178,7,16,1));
  border-color: rgba(229,9,20,0.55);
  box-shadow: 0 16px 40px rgba(229,9,20,0.18);
  color:#fff;
}

.hero-btn.primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(229,9,20,0.14), 0 22px 60px rgba(0,0,0,0.45);
}

.hero-btn.secondary{
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.92);
}

.hero-btn.secondary:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.06), 0 18px 40px rgba(0,0,0,0.35);
}

/* Sharky Movies Grid */
.movies {
  padding: 20px;
  padding-bottom: 60px;
}

/* =========================================================
   Rows
   ========================================================= */
.content-row{
  margin: 24px 0;
  padding: 0 4px;
}

.row-title{
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.95);
}

/* Horizontal scroll row */
.row-scroll{
  display:flex;
  gap: 14px;
  overflow-x:auto;
  padding-bottom: 10px;
  scroll-behavior:smooth;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
}

.row-scroll::-webkit-scrollbar{
  height: 8px;
}

.row-scroll::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.18);
  border-radius: 20px;
}

.row-scroll::-webkit-scrollbar-thumb:hover{
  background: rgba(229,9,20,0.55);
}

/* =========================================================
   Continue Watching Cards + Remove X Button
   ========================================================= */

.continue-card-wrap{
  position: relative;
  min-width: 180px;
  height: 260px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.continue-card{
  width: 100%;
  height: 100%;
  display: block;
  border-radius: var(--cardRadius);
  background-size: cover;
  background-position: center;
  position: relative;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
}

.continue-card::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent 55%);
  opacity: 0.95;
  pointer-events:none;
}

.continue-card-wrap:hover .continue-card{
  transform: scale(1.06);
  box-shadow: 0 18px 40px rgba(0,0,0,0.75);
  filter: saturate(1.05);
  z-index: 5;
}

.continue-overlay{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  padding: 12px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 10px 25px rgba(0,0,0,0.7);
  z-index: 2;
}

.continue-remove{
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;

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

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

  background: rgba(0,0,0,0.72);
  color: #fff;

  font-size: 22px;
  font-weight: 900;
  line-height: 1;

  cursor: pointer;
  z-index: 20;

  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.continue-remove:hover{
  background: var(--accent);
  border-color: rgba(255,255,255,0.25);
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(229,9,20,0.18), 0 10px 24px rgba(0,0,0,0.55);
}

.continue-remove:active{
  transform: scale(0.95);
}

.hidden{
  display:none;
}

/* =========================================================
   Grid
   ========================================================= */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.movie-card {
  position: relative;
  height: 330px;
  border-radius: var(--cardRadius);
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.70);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  display: flex;
  align-items: flex-end;
  color: #fff;
  user-select: none;
  border: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
}

.movie-card::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 55%);
  opacity: 0.85;
  pointer-events:none;
}

.movie-card:hover {
  transform: scale(1.06);
  box-shadow: 0 18px 44px rgba(229, 9, 20, 0.35);
  filter: saturate(1.05);
  z-index: 5;
}

.movie-overlay {
  width: 100%;
  padding: 12px 12px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.92), transparent);
  backdrop-filter: blur(10px) saturate(150%);
  border-bottom-left-radius: var(--cardRadius);
  border-bottom-right-radius: var(--cardRadius);
  position: relative;
  z-index: 1;
}

.movie-overlay h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 0 4px rgba(0,0,0,0.75);
}

.movie-overlay p {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 800;
  color: #f5c518;
  text-shadow: 0 0 3px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
}

.movie-overlay p::before {
  content: "⭐";
  margin-right: 6px;
  font-size: 13px;
}

/* Player Section for Sharky Movies */
.player-section {
  padding: 30px 20px;
  max-width: 1200px;
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.player-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 20px 0;
}

.player-container iframe {
  width: 90vw;
  max-width: 1400px;
  height: calc(90vw * 9 / 16);
  min-height: 500px;
  border-radius: var(--softRadius);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 42px rgba(0,0,0,0.7);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  background: #000;
}

.player-container iframe:hover {
  box-shadow: 0 14px 58px rgba(229,9,20,0.35);
}

/* Poster for Sharky Movies */
.poster {
  width: 250px;
  border-radius: var(--softRadius);
  margin-bottom: 24px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Footer for Sharky Movies */
footer {
  padding: 15px 20px;
  text-align: center;
  background: rgba(31,31,31,0.92);
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  user-select: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(10px) saturate(140%);
}

/* Scrollbar for Sharky Movies */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #141414;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(229,9,20,0.95);
  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover{
  background-color: rgba(229,9,20,1);
}

/* Responsive for Sharky Movies */
@media (max-width: 600px) {
  header{
    padding: 10px 12px;
  }

  .logo{
    font-size: 22px;
  }

  nav a{
    margin-right: 12px;
  }

  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }

  .movie-card {
    height: 240px;
  }

  .search-container input {
    width: 150px;
  }

  .player-container iframe {
    width: 95vw;
    height: calc(95vw * 9 / 16);
    min-height: 240px;
  }

  .poster {
    width: 180px;
  }

  .hero{
    height: auto;
    padding: 36px 16px;
    min-height: 320px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 14px;
  }

  .hero-actions{
    gap: 10px;
  }

  .hero-btn{
    width: 100%;
    max-width: 320px;
    justify-content:center;
  }

  .continue-card-wrap{
    min-width: 150px;
    height: 220px;
  }

  .continue-remove{
    width: 26px;
    height: 26px;
    font-size: 20px;
    top: 7px;
    right: 7px;
  }

  .row-title{
    font-size: 18px;
  }
}

/* =========================================================
   ADD-ONS: server buttons, player shell, dropdown fix
   ========================================================= */

.player-top {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 10px;
}

.poster-wrap {
  display: flex;
  justify-content: center;
}

.meta-wrap {
  text-align: left;
}

.meta-wrap .desc {
  margin: 10px 0 0;
  color: rgba(255,255,255,0.85);
  line-height: 1.45;
}

/* Server selector */
.server-selector {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}

.server-title {
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.server-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.server-btn {
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.server-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(229,9,20,0.75);
  box-shadow: 0 0 0 4px rgba(229,9,20,0.14);
}

.server-btn.active {
  background: rgba(229,9,20,0.18);
  border-color: rgba(229,9,20,0.95);
  box-shadow: 0 0 0 4px rgba(229,9,20,0.18);
}

.server-note {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

/* Player shell + loading overlay */
.player-shell {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.player-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  border-radius: 12px;
  background: rgba(0,0,0,0.55);
  z-index: 3;
  pointer-events: none;
}

.spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: rgba(229,9,20,1);
  animation: sharkySpin 0.9s linear infinite;
}

.loading-text {
  font-weight: 900;
  color: rgba(255,255,255,0.9);
}

@keyframes sharkySpin {
  to { transform: rotate(360deg); }
}

/* Fix: white dropdowns */
select {
  background: #1f1f1f;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 8px 10px;
}

select:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(229,9,20,0.18);
  border-color: rgba(229,9,20,0.8);
}

option {
  background: #1f1f1f;
  color: #fff;
}

/* Mobile tweaks for new layout */
@media (max-width: 900px) {
  .player-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .meta-wrap {
    text-align: center;
  }
}

/* =========================================================
   Row header + scroll buttons + row cards
   ========================================================= */

.row-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.row-controls{
  display:flex;
  gap:10px;
}

.row-btn{
  width:42px;
  height:36px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.35);
  color:#fff;
  font-size:22px;
  font-weight:900;
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease, background .12s ease;
}

.row-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(229,9,20,0.65);
  box-shadow: 0 0 0 4px rgba(229,9,20,0.14);
}

.row-btn:active{
  transform: translateY(0px) scale(0.98);
}

.row-card{
  min-width: 180px;
  height: 260px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 28px rgba(0,0,0,0.55);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  scroll-snap-align: start;
  text-decoration: none;
}

.row-card::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(0,0,0,0.70), transparent 55%);
  opacity: 0.95;
  pointer-events:none;
}

.row-card:hover{
  transform: scale(1.06);
  box-shadow: 0 18px 44px rgba(0,0,0,0.75);
  filter: saturate(1.05);
  z-index: 5;
}

.row-overlay{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  padding:12px;
  font-size:13px;
  font-weight:800;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 10px 25px rgba(0,0,0,0.7);
}
