/* Reset y base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #141414;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header tipo Netflix */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  z-index: 100;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 100%);
  transition: background 0.3s;
}
.header.scrolled { background: #141414; }

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: #e50914;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 1.5rem;
  margin-left: 2rem;
}
.nav a {
  color: #e5e5e5;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav a:hover { color: #fff; }

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.icon-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: color 0.2s, transform 0.15s;
}
.icon-btn:hover {
  color: #e50914;
  transform: scale(1.1);
}
.twitter-btn svg {
  display: block;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: #e50914;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Hero */
.hero {
  position: relative;
  height: 85vh;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 15%;
  padding-left: 4%;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #141414 0%, transparent 50%, transparent 30%),
              linear-gradient(to right, #141414 0%, transparent 30%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 550px;
}
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.hero-desc {
  font-size: 1.1rem;
  line-height: 1.4;
  color: #e5e5e5;
  margin: 0 0 1.25rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.hero-buttons {
  display: flex;
  gap: 0.75rem;
}
.btn {
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s, transform 0.15s;
}
.btn:hover { opacity: 0.9; transform: scale(1.02); }
.btn-play {
  background: #fff;
  color: #000;
}
.btn-info {
  background: rgba(255,255,255,0.25);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn-info:hover { background: rgba(255,255,255,0.35); }

/* Feed: filas */
.feed {
  margin-top: -120px;
  padding: 0 0 4rem;
  position: relative;
  z-index: 3;
}
.row {
  margin-bottom: 2.5rem;
}
.row-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.75rem 4%;
  letter-spacing: 0.02em;
}

.row-slider {
  display: flex;
  gap: 0.35rem;
  padding: 0 4%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.row-slider::-webkit-scrollbar { display: none; }

/* Cards */
.card {
  flex: 0 0 auto;
  width: 240px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, z-index 0s;
  position: relative;
}
.card:hover {
  transform: scale(1.08);
  z-index: 10;
}
.card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}
.card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
}
.card:hover .card-info {
  opacity: 1;
  transform: translateY(0);
}
.card-info h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
}
.card-info p {
  margin: 0;
  font-size: 0.8rem;
  color: #b3b3b3;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Numbered rows (Top 10 style) */
.row--numbered .card {
  position: relative;
}
.card-rank {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding-left: 0.08em;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 5.5rem;
  font-weight: 400;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.9);
  pointer-events: none;
}
.row--numbered .card:hover .card-rank {
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.95);
}

/* Responsive */
@media (max-width: 768px) {
  .nav { display: none; }
  .hero { height: 70vh; padding-bottom: 20%; }
  .hero-desc { font-size: 1rem; }
  .card { width: 160px; }
  .row-title { font-size: 1.2rem; }
  .card-rank { font-size: 3.5rem; }
}
