/* PerpiFlexFlow - Compiled Styles */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #141414;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0A0A0A;
}

::-webkit-scrollbar-thumb {
  background: #2F2F2F;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #454545;
}

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

.search-input {
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  margin-right: 1rem;
  animation: slideInLeft 0.3s ease;
}

.search-input.hidden {
  display: none;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

.video-row {
  position: relative;
  overflow: hidden;
}

.video-row .video-slider {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.5rem 0;
  cursor: grab;
}

.video-row .video-slider::-webkit-scrollbar {
  height: 6px;
}

.video-row .video-slider.active {
  cursor: grabbing;
  user-select: none;
}

.video-row .video-slider:hover::-webkit-scrollbar-thumb {
  background: #2F2F2F;
}

.video-card {
  min-width: 250px;
  width: 250px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.video-card:hover {
  transform: scale(1.05);
  z-index: 10;
}

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

.video-card .video-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #1F1F1F;
}

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

.video-card .video-thumbnail .video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card .video-thumbnail .video-overlay .play-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transform: scale(0.8);
  transition: transform 0.2s ease;
}

.video-card .video-thumbnail .video-overlay .play-button:hover {
  transform: scale(1);
  background: #E50914;
}

.video-card .video-thumbnail .video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  z-index: 5;
}

.video-card .video-info {
  padding: 0.75rem 0;
}

.video-card .video-info .video-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card .video-info .video-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: #999;
}

.video-card .video-info .video-stats span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.accordion-item .accordion-header {
  cursor: pointer;
  user-select: none;
}

.accordion-item .accordion-header i.fa-chevron-down {
  transition: transform 0.3s ease;
}

.accordion-item .accordion-content {
  animation: slideDown 0.3s ease;
}

.accordion-item .accordion-content.hidden {
  display: none;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 2000px;
  }
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.tag-badge:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.tag-badge button {
  margin-left: 0.5rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.tag-badge button:hover {
  opacity: 1;
}

.loader {
  border: 3px solid #2F2F2F;
  border-top: 3px solid #E50914;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #E50914;
  color: white;
}

.btn-primary:hover {
  background: #b8070f;
  transform: scale(1.02);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline:hover {
  background: white;
  color: #141414;
}

input[type="text"],
input[type="search"],
select,
textarea {
  background: #1F1F1F;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #E50914;
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

input[type="text"]::placeholder,
input[type="search"]::placeholder,
select::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: #1F1F1F;
  border-radius: 0.5rem;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  animation: scaleIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.backdrop-blur {
  backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  .video-card {
    min-width: 180px;
    width: 180px;
  }
  
  .video-row .video-slider {
    gap: 0.5rem;
  }
  
  h1 {
    font-size: 1.5rem !important;
  }
  
  h2 {
    font-size: 1.25rem !important;
  }
}

@media (max-width: 480px) {
  .video-card {
    min-width: 150px;
    width: 150px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

section:first-of-type .absolute img {
  animation: fadeIn 1s ease;
}
