
/* =========================
   XVIDS - GLOBAL DESIGN
========================= */

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

:root {
  --background: #09090b;
  --surface: #18181b;
  --surface-hover: #27272a;
  --border: #29292f;
  --text: #ffffff;
  --muted: #a1a1aa;
  --accent: #e11d48;
  --accent-hover: #be123c;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
}

/* =========================
   HEADER
========================= */

.header {
  min-height: 70px;
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #09090b;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  color: white;
  text-decoration: none;
  font-size: 26px;
  font-weight: 900;
  white-space: nowrap;
}

.logo-icon {
  background: var(--accent);
  padding: 8px;
  border-radius: 9px;
  font-size: 15px;
}

.dot {
  color: var(--accent);
}

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

.search {
  display: flex;
  max-width: 500px;
  flex: 1;
  background: var(--surface);
  border: 1px solid #38383f;
  border-radius: 30px;
  overflow: hidden;
}

.search input {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
  background: transparent;
  color: white;
  border: none;
  outline: none;
  font-size: 14px;
}

.search input::placeholder {
  color: #888;
}

.search button {
  padding: 0 20px;
  background: var(--surface-hover);
  color: white;
  border: none;
  font-size: 22px;
  cursor: pointer;
  transition: 0.2s;
}

.search button:hover {
  background: var(--accent);
}

/* =========================
   SIGN IN BUTTON
========================= */

.signin,
.hero button {
  border: none;
  background: var(--accent);
  color: white;
  padding: 12px 21px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s;
  white-space: nowrap;
}

.signin:hover,
.hero button:hover {
  background: var(--accent-hover);
}

/* =========================
   DASHBOARD LINK
========================= */

.dashboard-link {
  display: inline-block;
  color: white;
  text-decoration: none;
  background: var(--surface-hover);
  padding: 10px 16px;
  border-radius: 25px;
  margin-left: 8px;
  white-space: nowrap;
  transition: 0.2s;
}

.dashboard-link:hover {
  background: var(--accent);
}

/* =========================
   MAIN LAYOUT
========================= */

.layout {
  display: flex;
  min-height: calc(100vh - 70px);
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
  width: 220px;
  min-height: calc(100vh - 70px);
  padding: 25px 15px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar a {
  display: block;
  padding: 15px;
  margin-bottom: 5px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 10px;
  transition: 0.2s;
}

.sidebar a:hover,
.sidebar .active {
  color: white;
  background: #32121e;
}

.sidebar hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* =========================
   MAIN CONTENT
========================= */

.main {
  width: 100%;
  min-width: 0;
  padding: 30px;
}

/* =========================
   HERO SECTION
========================= */

.hero {
  padding: 60px 40px;
  border: 1px solid #49202c;
  border-radius: 24px;
  background:
    radial-gradient(
      circle at 85% 20%,
      #68132d 0,
      transparent 40%
    ),
    linear-gradient(
      110deg,
      #450a19,
      #251019,
      #111114
    );
}

.eyebrow {
  color: #fda4af;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(32px, 5vw, 55px);
  line-height: 1.12;
  letter-spacing: -1px;
}

.hero p {
  margin: 20px 0 28px;
  color: #cccccc;
  line-height: 1.6;
}

.hero button {
  padding: 14px 24px;
}

/* =========================
   CATEGORIES
========================= */

.categories {
  margin-top: 38px;
}

h2 {
  font-size: 21px;
  margin-bottom: 18px;
}

.category-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.category-list button {
  background: var(--surface);
  color: #cccccc;
  border: 1px solid #38383f;
  border-radius: 25px;
  padding: 10px 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: 0.2s;
}

.category-list button:hover {
  background: var(--surface-hover);
}

.category-list .selected {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* =========================
   VIDEO SECTION
========================= */

.video-section {
  margin-top: 38px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.section-heading span {
  color: var(--muted);
  font-size: 12px;
}

/* =========================
   VIDEO GRID
========================= */

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 18px;
}

.video-card {
  min-width: 0;
  cursor: pointer;
}

.thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #222;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.video-card:hover .thumbnail img {
  transform: scale(1.06);
}

.duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
}

.video-card h3 {
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.5;
}

.video-card p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

/* =========================
   VIDEO CARD ACTIONS
========================= */

.xvids-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.xvids-card-actions .action-btn {
  font-size: 12px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: white;
  cursor: pointer;
  transition: 0.2s;
}

.xvids-card-actions .action-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.xvids-card-actions .action-btn:active {
  transform: scale(0.96);
}

/* =========================
   FOOTER
========================= */

footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  margin-top: 50px;
  text-align: center;
  color: #777;
  font-size: 12px;
}

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

@media (max-width: 1200px) {
  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    width: 190px;
  }

  .main {
    padding: 22px;
  }
}

/* =========================
   TABLET AND MOBILE
========================= */

@media (max-width: 650px) {
  .header {
    min-height: 60px;
    padding: 0 10px;
    gap: 8px;
  }

  .logo {
    font-size: 20px;
  }

  .logo-icon {
    padding: 6px;
  }

  .search input {
    padding: 11px 10px;
    font-size: 12px;
  }

  .search button {
    padding: 0 12px;
    font-size: 18px;
  }

  .signin {
    padding: 10px 12px;
    font-size: 11px;
  }

  .dashboard-link {
    padding: 9px 10px;
    font-size: 11px;
    margin-left: 0;
  }

  .sidebar {
    display: none;
  }

  .main {
    padding: 18px 12px;
  }

  .hero {
    padding: 38px 20px;
    border-radius: 18px;
  }

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

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

  .video-card h3 {
    font-size: 13px;
  }
}

/* =========================
   SMALL MOBILE SCREENS
========================= */

@media (max-width: 380px) {
  .logo {
    font-size: 17px;
  }

  .logo-icon {
    padding: 5px;
  }

  .search input {
    padding: 10px 8px;
    font-size: 11px;
  }

  .search button {
    padding: 0 9px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

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

  .main {
    padding: 14px 10px;
  }
}

/* =========================
   DASHBOARD GENERAL STYLES
========================= */

.dashboard-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
}

.dashboard-container h1 {
  font-size: 30px;
  margin-bottom: 10px;
}

.dashboard-container p {
  color: var(--muted);
}

/* DASHBOARD STATS */

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 25px 0;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 22px;
}

.stat-card h3 {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.stat-card strong {
  font-size: 28px;
}

/* DASHBOARD TABS */

.dashboard-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 25px 0;
}

.dashboard-tabs button {
  background: var(--surface);
  color: white;
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 22px;
  cursor: pointer;
  transition: 0.2s;
}

.dashboard-tabs button:hover,
.dashboard-tabs button.active {
  background: var(--accent);
  border-color: var(--accent);
}

/* DASHBOARD VIDEO LIST */

.dashboard-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.dashboard-video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.dashboard-video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.dashboard-video-card h3 {
  padding: 12px;
  font-size: 14px;
}

.dashboard-video-card .card-actions {
  display: flex;
  gap: 8px;
  padding: 0 12px 14px;
}

.dashboard-video-card button,
.dashboard-video-card a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  background: var(--surface-hover);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 9px;
  font-size: 12px;
  cursor: pointer;
}

.dashboard-video-card button:hover,
.dashboard-video-card a:hover {
  background: var(--accent);
}

/* =========================
   PROFILE PAGE
========================= */

.profile-container {
  width: 100%;
  max-width: 700px;
  margin: 40px auto;
  padding: 25px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.profile-container h1 {
  margin-bottom: 20px;
}

.profile-container label {
  display: block;
  margin: 15px 0 7px;
  color: var(--muted);
  font-size: 13px;
}

.profile-container input {
  width: 100%;
  padding: 13px;
  background: var(--background);
  color: white;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
}

.profile-container input:focus {
  border-color: var(--accent);
}

.profile-container button {
  margin-top: 18px;
  padding: 12px 20px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 22px;
  cursor: pointer;
}

.profile-container button:hover {
  background: var(--accent-hover);
}

/* =========================
   WATCH PAGE
========================= */

.watch-container {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 25px;
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
}

.video-player video {
  width: 100%;
  height: 100%;
  display: block;
}

.watch-container h1 {
  margin: 20px 0 10px;
  font-size: 24px;
}

.watch-meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.watch-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 15px 0 25px;
}

.watch-actions button {
  padding: 10px 18px;
  background: var(--surface);
  color: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  cursor: pointer;
}

.watch-actions button:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* =========================
   GENERAL BUTTONS
========================= */

button {
  font-family: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* =========================
   DASHBOARD MOBILE
========================= */

@media (max-width: 650px) {
  .dashboard-container {
    padding: 20px 12px;
  }

  .dashboard-container h1 {
    font-size: 24px;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dashboard-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .profile-container {
    margin: 20px 12px;
    width: auto;
    padding: 18px;
  }

  .watch-container {
    padding: 12px;
  }

  .watch-container h1 {
    font-size: 19px;
  }
}

@media (max-width: 380px) {
  .dashboard-video-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-tabs button {
    padding: 9px 13px;
    font-size: 12px;
  }
}


/* =========================
   XVIDS - PLAYER & CARD POLISH
========================= */

/* Better thumbnail rendering */
.thumbnail {
  position: relative;
  isolation: isolate;
  background: #111;
}

.thumbnail img {
  display: block;
}

/* Professional duration badge */
.duration {
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
  min-width: 34px;
  text-align: center;
  backdrop-filter: blur(5px);
}

/* Smooth card interaction on desktop */
@media (hover: hover) and (pointer: fine) {
  .video-card:hover .thumbnail {
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.12);
  }
}

/* Better video player */
.video-player {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Mobile player improvements */
@media (max-width: 650px) {
  .watch-container {
    padding: 12px;
  }

  .video-player {
    width: calc(100% + 24px);
    margin-left: -12px;
    border-radius: 0;
    aspect-ratio: 16 / 9;
  }

  .watch-container h1 {
    font-size: 20px;
    line-height: 1.4;
  }

  .watch-actions button {
    min-height: 40px;
  }

  .xvids-card-actions .action-btn {
    min-height: 34px;
  }
}



/* ACTIVE WATCH ACTIONS */

.watch-action-btn.is-active {
  background: rgba(225, 29, 72, 0.13);
  border-color: #e11d48;
  color: #fb7185;
}

.watch-action-btn.is-active .action-icon {
  color: #fb7185;
}

.watch-action-btn:focus-visible {
  outline: 2px solid #e11d48;
  outline-offset: 3px;
}
