

:root {
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --surface-color: #1e293b;
  --accent-color: #2563eb; /* Mørkeblå aksentfarge */
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --card-radius: 12px;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background-color: rgba(15, 23, 42, 0.95);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

/* --- OPPGRADERT SØKEBAR --- */
.search-box {
  display: flex;
  align-items: center;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  padding: 6px 16px;
  width: 220px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}

.search-box:focus-within {
  width: 320px;
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.25);
  background: var(--card-bg);
}

.search-box input {
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 6px 10px;
  outline: none;
  width: 100%;
  font-size: 0.9rem;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box button {
  background: transparent;
  border: none;
  color: var(--accent-color);
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.search-box button:hover {
  transform: scale(1.15);
}

/* HERO BANNER & SLIDER FIX */
#heroBanner,
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 80vh;
  overflow: hidden;
  background-color: #050b14;
  margin-top: 60px;
}

.hero-slider-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.7s ease-in-out;
}

.hero-slide {
  flex: 0 0 100%;
  min-width: 100%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: top center;
  position: relative;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  z-index: 1;
}

.hero-video-bg.active {
  opacity: 0.6;
}

.hero-video-bg iframe {
  width: 100%;
  height: 100%;
  transform: scale(1.3);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 50px !important;
  text-align: left !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start !important;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.badge,
.hero-badge {
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent-color);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 10px 0;
  line-height: 1.1;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.hero-overview,
.hero-description {
  color: #cbd5e1;
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
}

.btn-primary,
.btn-watch {
  background: var(--accent-color);
  color: #000;
}

.btn-info {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.hero-dots-container,
.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50px;
  z-index: 10;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background-color: #ffffff;
  width: 30px;
  border-radius: 5px;
}

/* MAIN CONTENT & CAROUSELS */
.main-container {
  padding: 20px 50px;
}

.movie-section {
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.movie-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
  padding-top: 15px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

/* MOVIE CARD STYLING */
.card {
  min-width: 160px;
  width: 160px;
  background: var(--card-bg);
  border-radius: var(--card-radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

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

.card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.card h2 {
  font-size: 0.9rem;
  padding: 8px 10px 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0 10px;
}

.card button {
  margin: 10px;
  padding: 6px;
  background: var(--accent-color);
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  color: #000;
  font-size: 0.75rem;
}

/* ACTOR CARD STYLING */
.actor-card {
  min-width: 140px;
  width: 140px;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  border: 1px solid var(--border-color);
}

.actor-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-color);
}

.actor-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 2px solid var(--accent-color);
}

.actor-card h2 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.actor-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* PROFILE PAGE STYLING */
.profile-container {
  max-width: 900px;
  margin: 100px auto 40px auto;
  padding: 0 20px;
}

.profile-card h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.profile-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.profile-section {
  margin-bottom: 25px;
}

.profile-section .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.profile-section h2 {
  font-size: 1.3rem;
  margin-top: 4px;
  margin-bottom: 12px;
}

.password-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin-bottom: 12px;
}

.password-form input {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: 6px;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}

.password-form input:focus {
  border-color: var(--accent-color);
}

.btn-update-pass {
  background: #00d2ff;
  color: #000;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 25px;
}

.btn-logout {
  background: #ef4444;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
}

/* MODAL / POPUP STYLING */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--surface-color);
  border-radius: var(--card-radius);
  padding: 25px;
  max-width: 700px;
  width: 90%;
  position: relative;
  border: 1px solid var(--border-color);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-body {
  display: flex;
  gap: 20px;
}

.modal-body img {
  width: 200px;
  border-radius: 8px;
}

.modal-info {
  flex: 1;
}

.modal-rating {
  color: var(--accent-color);
  margin: 10px 0;
}

.modal-overview {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.trailer-container iframe {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  border: none;
}

/* HELSSIDES FILMDETALJER */
.movie-detail-view {
  min-height: 100vh;
  background-color: #0f172a;
  color: #ffffff;
  padding-top: 60px;
}

.btn-back {
  position: absolute;
  top: 80px;
  left: 40px;
  z-index: 10;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.detail-hero {
  position: relative;
  min-height: 550px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 60px 50px;
}

.detail-hero-content {
  max-width: 650px;
  z-index: 2;
}

.detail-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.1;
  font-family: "Georgia", serif;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.badge-nr {
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.detail-rating {
  font-size: 1.1rem;
  font-weight: 700;
  color: #facc15;
  margin-bottom: 25px;
}

.detail-rating .vote-count {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: normal;
}

.detail-buttons {
  display: flex;
  gap: 12px;
}

.detail-body {
  padding: 40px 50px;
  max-width: 900px;
}

.detail-section {
  margin-bottom: 35px;
}

.detail-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.detail-overview {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.pill-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  background: #1e293b;
  border: 1px solid var(--border-color);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #e2e8f0;
}

.provider-list {
  display: flex;
  gap: 12px;
  align-items: center;
}

.provider-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.no-providers {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* OPPDATERTE FILMKORT (Poster Card) */
.poster-card {
  position: relative;
  min-width: 170px;
  width: 170px;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background-color: #0f172a;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.poster-card:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.8);
  z-index: 5;
}

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

.poster-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 50px 12px 12px 12px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.7) 40%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.poster-title {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.poster-rating {
  display: flex;
  align-items: center;
}

.poster-watchlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.poster-card:hover .poster-watchlist-btn {
  opacity: 1;
  transform: translateY(0);
}

.poster-watchlist-btn:hover {
  background: #3b82f6;
  border-color: #3b82f6;
  transform: scale(1.1);
}

/* HELT RENT DESIGN: Bilde øverst, tekst under uten boks */
.clean-movie-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 160px;
  width: 160px;
  flex-shrink: 0;
  cursor: pointer;
  background: transparent;
}

.clean-poster-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clean-movie-item:hover .clean-poster-wrapper {
  transform: scale(1.06);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7);
}

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

.clean-movie-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.clean-movie-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clean-movie-rating {
  display: flex;
  align-items: center;
}

/* LOGIN / REGISTER MODAL STYLING */
.auth-modal-content {
  background: #1e293b;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.auth-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.auth-tab.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 15px;
}

.auth-form.active-form {
  display: flex;
}

.auth-form input {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  color: white;
  outline: none;
  font-size: 0.95rem;
}

.auth-form input:focus {
  border-color: var(--accent-color);
}

.btn-auth-submit {
  background: var(--accent-color);
  color: #000;
  font-weight: 700;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  transition: opacity 0.2s ease;
}

.btn-auth-submit:hover {
  opacity: 0.9;
}

/* WATCHLIST KNAPP & ANIMASJONER */
.clean-watchlist-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer;
}

/* RUND KNAPP KUN INNI FILMPOSTER-KORT */
.clean-poster-wrapper .clean-watchlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  opacity: 0;
  transform: translateY(-5px);
  backdrop-filter: blur(4px);
  z-index: 10;
}

.clean-poster-wrapper:hover .clean-watchlist-btn {
  opacity: 1;
  transform: translateY(0);
}

/* NÅR FILMEN ER LAGT TIL I WATCHLIST */
.clean-watchlist-btn.added {
  background-color: #22c55e !important;
  border-color: #22c55e !important;
  color: #ffffff !important;
}

/* SØRGER FOR AT KNAPPEN PÅ POSTEREN FORBLIR SYNLIG OG ROTERER DERSOM FILMEN ER LAGT TIL */
.clean-poster-wrapper .clean-watchlist-btn.added {
  opacity: 1 !important;
  transform: translateY(0) rotate(360deg) !important;
}

.clean-watchlist-btn.added:hover {
  background-color: #16a34a !important;
}

.clean-watchlist-btn i {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.clean-watchlist-btn.added i {
  transform: scale(1.15);
}






/* --- DISCOVER VIEW STYLING --- */
.discover-wrapper {
  display: flex;
  gap: 40px;
  padding: 40px 50px;
  background-color: #050b14;
  min-height: 100vh;
  color: white;
}

.discover-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: rgba(30, 41, 59, 0.4);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: fit-content;
}

.discover-content {
  flex: 1;
}

.filter-section {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.filter-section:last-child {
  border-bottom: none;
}

.filter-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #f8fafc;
}

.filter-select {
  width: 100%;
  padding: 10px;
  background: #0f172a;
  color: white;
  border: 1px solid #334155;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
}

.filter-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: #3b82f6 #0f172a;
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #cbd5e1;
  cursor: pointer;
}

.provider-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.provider-item {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.provider-item.selected {
  border-color: #3b82f6;
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.apply-filters-btn {
  width: 100%;
  padding: 12px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s;
}
.apply-filters-btn:hover {
  background: #2563eb;
}

.site-footer {
  text-align: center;
  padding: 40px 20px;
  background-color: #050b14; /* Passer med bakgrunnsfargen du allerede bruker */
  color: #94a3b8; /* En behagelig, dempet grå/blå farge */
  font-size: 1rem;
  font-weight: 500;
  border-top: 1px solid rgba(255, 255, 255, 0.05); /* En supertynn strek som skiller footeren fra innholdet */
  margin-top: 50px;
  width: 100%;
}

.site-footer p {
  margin: 0;
  letter-spacing: 0.5px;
}



