/* public/assets/css/style.css - StreamCore Custom Plain CSS (Zero Framework) */

:root {
  --bg-main: #0c1017;
  --bg-surface: #141923;
  --bg-elevated: #1a2232;
  --border-color: #263044;
  --text-main: #f0f6fc;
  --text-muted: #8b949e;
  --text-dark: #6e7681;
  --primary: #5865f2;
  --primary-hover: #4752c4;
  --accent: #f43f5e;
  --success: #238636;
  --warning: #d29922;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Custom Scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: #26324a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3b4d6e; }

/* Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 19, 31, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.header-nav a:hover {
  color: var(--primary);
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  background: #080c14;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0.45rem 1rem 0.45rem 2.2rem;
  font-size: 0.8rem;
  color: #fff;
  width: 220px;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  width: 280px;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  width: 14px;
  height: 14px;
  fill: var(--text-dark);
  pointer-events: none;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Category Filter Pills */
.category-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.cat-pill {
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.cat-pill:hover, .cat-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Video Grid Cards (Anime4Soul Caliber) */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
  group;
}

.card-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.video-card:hover .card-poster {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 0 15px -3px rgba(99, 102, 241, 0.3);
}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-card:hover .poster-img {
  transform: scale(1.05);
}

.badge-tag {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
}

.duration-tag {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-family: monospace;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
}

.rating-tag {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.9);
  color: #000;
}

.card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  font-size: 0.72rem;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
}

/* Video Player Page */
.player-wrapper {
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  margin-bottom: 1.5rem;
}

.player-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.shield-pill {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  background: rgba(6, 78, 59, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  pointer-events: none;
  z-index: 10;
}

.player-controls-bar {
  background: var(--bg-surface);
  padding: 0.85rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.server-btn {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: var(--transition);
}

.server-btn.active, .server-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Episode Buttons */
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.ep-btn {
  padding: 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.ep-btn:hover, .ep-btn.active {
  background: var(--primary);
  border-color: var(--primary);
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  font-size: 0.8rem;
  color: var(--text-dark);
}

.footer-content {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.75rem; }
  .search-input { width: 160px; }
  .search-input:focus { width: 200px; }
}
