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

body {
  background: #141414;
  color: #e5e5e5;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* â”€â”€ Navbar â”€â”€ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 4%;
  background: linear-gradient(to bottom, rgba(0,0,0,.86) 0%, rgba(0,0,0,.35) 68%, transparent 100%);
  transition: background .35s ease, backdrop-filter .35s ease, box-shadow .35s ease, padding .35s ease;
}
.navbar.scrolled {
  background: rgba(20,20,20,.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
  padding: 10px 4%;
}
.navbar-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  width: 100%;
  animation: navIn .45s ease both;
}
.navbar-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 900;
  letter-spacing: -.6px;
  transition: transform .22s ease;
}
.navbar-logo:hover { transform: translateY(-1px); }
.logo-play {
  color: #e50914;
  font-size: 1.35rem;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(229,9,20,.35));
}
.logo-main {
  color: #e50914;
  font-size: 1.95rem;
}
.logo-sub {
  color: #fff;
  font-size: 1.95rem;
}
.navbar-links { display: flex; gap: 18px; list-style: none; }
.navbar-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 30px;
  font-size: .95rem;
  font-weight: 500;
  color: #d5d5d5;
  transition: color .22s ease;
}
.navbar-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s ease;
}
.navbar-links a:hover,
.navbar-links a.active {
  color: #fff;
}
.navbar-links a:hover::after,
.navbar-links a.active::after {
  transform: scaleX(1);
}
.navbar-search { margin-left: auto; }
.navbar-search form {
  display: flex;
  align-items: center;
  height: 36px;
  width: 44px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(0,0,0,.36);
  border-radius: 2px;
  transition: width .28s ease, background .28s ease, border-color .28s ease;
}
.navbar-search form:focus-within,
.navbar-search form:hover {
  width: 290px;
  background: rgba(0,0,0,.7);
  border-color: rgba(255,255,255,.48);
}
.navbar-search button {
  width: 42px;
  height: 100%;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.search-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  opacity: .9;
}
.navbar-search input {
  width: 100%;
  border: none;
  background: transparent;
  color: #fff;
  padding: 0 10px 0 4px;
  font-size: .95rem;
  outline: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.navbar-search form:focus-within input,
.navbar-search form:hover input {
  opacity: 1;
}
.navbar-search input::placeholder { color: #a8a8a8; }

/* ── Hamburger button (hidden on desktop) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Nav overlay ── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 998;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.nav-overlay.open { display: block; }

/* ── Nav drawer ── */
.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 85vw;
  height: 100%;
  background: #0d0d0d;
  border-right: 1px solid rgba(255,255,255,.08);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.nav-drawer-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 900;
}
.nav-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.08);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background .2s;
}
.nav-drawer-close:hover { background: rgba(255,255,255,.16); }

.nav-drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  flex: 1;
}
.nav-drawer-link {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  font-size: .95rem;
  font-weight: 600;
  color: #b0b0b0;
  border-left: 3px solid transparent;
  transition: background .18s, color .18s, border-color .18s;
}
.nav-drawer-link:hover {
  background: rgba(255,255,255,.05);
  color: #fff;
}
.nav-drawer-link.active {
  border-left-color: #e50914;
  color: #fff;
  background: rgba(229,9,20,.1);
}

.nav-drawer-search {
  padding: 16px 20px 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.nav-drawer-search form {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  overflow: hidden;
  height: 42px;
}
.nav-drawer-search input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  padding: 0 12px;
  font-size: .9rem;
  outline: none;
}
.nav-drawer-search input::placeholder { color: #777; }
.nav-drawer-search button {
  width: 42px;
  height: 100%;
  background: transparent;
  border: none;
  color: #aaa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s;
}
.nav-drawer-search button:hover { color: #fff; }

@keyframes navIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes logoReveal {
  from { opacity: 0; transform: translateX(-50%) scaleX(.88); letter-spacing: 8px; }
  to   { opacity: 1; transform: translateX(-50%) scaleX(1);   letter-spacing: 3px; }
}
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
/* â”€â”€ Hero â”€â”€ */
.hero {
  position: relative; height: 82vh; min-height: 500px;
  background-size: cover; background-position: center 20%;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,.85) 35%, transparent 75%),
    linear-gradient(to top, #141414 4%, transparent 40%);
}
.hero-content {
  position: absolute; bottom: 16%; left: 4%; max-width: 540px;
}
.hero-content > * {
  opacity: 0;
  animation: heroReveal .65s ease forwards;
}
.hero-badge { animation-delay: .08s; }
.hero-title { animation-delay: .18s; }
.hero-meta { animation-delay: .28s; }
.hero-desc { animation-delay: .38s; }
.hero-buttons { animation-delay: .48s; }
.hero-badge {
  display: inline-block; background: #e50914; color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 3px 10px; margin-bottom: 14px;
}
.hero-title {
  font-size: 3.2rem; font-weight: 900; line-height: 1.05;
  margin-bottom: 12px; text-shadow: 2px 2px 8px rgba(0,0,0,.6);
}
.hero-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-bottom: 14px; font-size: .88rem;
}
.hero-score { color: #46d369; font-weight: 700; }
.hero-genre {
  border: 1px solid rgba(255,255,255,.35); padding: 2px 10px;
  font-size: .75rem; border-radius: 2px;
}
.hero-desc {
  font-size: .92rem; color: #ccc; line-height: 1.55; margin-bottom: 22px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-play {
  background: #fff; color: #000; font-weight: 700;
  padding: 11px 28px; border: none; cursor: pointer;
  font-size: .95rem; display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s;
}
.btn-play:hover { background: rgba(255,255,255,.8); }
.btn-info {
  background: rgba(109,109,110,.7); color: #fff; font-weight: 700;
  padding: 11px 24px; border: none; cursor: pointer;
  font-size: .95rem; display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s;
}
.btn-info:hover { background: rgba(109,109,110,.5); }
.btn-info.active {
  background: #e50914;
  color: #fff;
}

/* â”€â”€ Rows (home) â”€â”€ */
.home-rows {
  position: relative;
  margin-top: 22px;
  padding-top: 22px;
}
.home-rows::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -30px;
  height: 74px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(20,20,20,0) 0%, rgba(20,20,20,.94) 75%, #141414 100%);
}
.section { padding: 0 4% 32px; }
.home-rows .section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.75,.2,1);
}
.home-rows .section.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.section-title {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.section-title::before {
  content: ''; display: inline-block;
  width: 4px; height: 18px; background: #e50914; border-radius: 2px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.row-controls { display: flex; gap: 8px; }
.row-nav {
  width: 30px; height: 30px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.45);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: background .2s, border-color .2s;
}
.row-nav:hover {
  background: rgba(229,9,20,.8);
  border-color: rgba(229,9,20,.9);
}
.row-track {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  scroll-behavior: smooth;
}
.row-track::-webkit-scrollbar { display: none; }

/* â”€â”€ Cards (row) â”€â”€ */
.card {
  flex: 0 0 160px; position: relative; overflow: hidden;
  cursor: pointer; border-radius: 3px;
  transition: transform .28s ease, box-shadow .28s ease, z-index 0s .25s, opacity .4s ease;
  scroll-snap-align: start;
}
.home-rows .section .card {
  opacity: 0;
  transform: translateY(14px) scale(.985);
}
.home-rows .section.is-visible .card {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.card:hover {
  transform: scale(1.07); box-shadow: 0 10px 30px rgba(0,0,0,.85);
  z-index: 20; transition: transform .25s ease, box-shadow .25s ease;
}
.card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 55%);
  opacity: 0; transition: opacity .25s;
}
.card:hover .card-overlay { opacity: 1; }
.card-name {
  position: absolute; bottom: 28px; left: 8px; right: 8px;
  font-size: .78rem; font-weight: 700; opacity: 0; transition: opacity .25s;
}
.card:hover .card-name { opacity: 1; }
.card-score {
  position: absolute; bottom: 10px; left: 8px;
  font-size: .72rem; color: #46d369; font-weight: 700;
  opacity: 0; transition: opacity .25s;
}
.card:hover .card-score { opacity: 1; }
.home-rows .section.is-visible .card:nth-child(1) { transition-delay: .03s; }
.home-rows .section.is-visible .card:nth-child(2) { transition-delay: .06s; }
.home-rows .section.is-visible .card:nth-child(3) { transition-delay: .09s; }
.home-rows .section.is-visible .card:nth-child(4) { transition-delay: .12s; }
.home-rows .section.is-visible .card:nth-child(5) { transition-delay: .15s; }
.home-rows .section.is-visible .card:nth-child(6) { transition-delay: .18s; }
.home-rows .section.is-visible .card:nth-child(7) { transition-delay: .21s; }
.home-rows .section.is-visible .card:nth-child(8) { transition-delay: .24s; }
.home-rows .section.is-visible .card:nth-child(9) { transition-delay: .27s; }
.home-rows .section.is-visible .card:nth-child(10) { transition-delay: .30s; }
.home-rows .section.is-visible .card:nth-child(11) { transition-delay: .33s; }
.home-rows .section.is-visible .card:nth-child(12) { transition-delay: .36s; }

/* â”€â”€ Grid (category / search) â”€â”€ */
.page-header {
  padding: 96px 4% 20px;
}
.page-header h1 { font-size: 2rem; font-weight: 700; }
.page-header h1 span { color: #e50914; }
.catalog-switch {
  display: inline-flex;
  margin-top: 14px;
  background: #1f1f1f;
  border: 1px solid #303030;
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.catalog-tab {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .86rem;
  color: #b8b8b8;
  transition: background .2s ease, color .2s ease;
}
.catalog-tab.active {
  background: #e50914;
  color: #fff;
}
.catalog-tab:hover {
  color: #fff;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  padding: 10px 4% 40px;
}
.category-card {
  background: linear-gradient(145deg, #202020, #181818);
  border: 1px solid #2d2d2d;
  border-radius: 10px;
  padding: 18px 16px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(229,9,20,.65);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.category-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.category-count {
  font-size: .82rem;
  color: #9f9f9f;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 12px; padding: 16px 4% 40px;
}
.grid-card {
  position: relative; cursor: pointer; border-radius: 3px; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.grid-card:hover {
  transform: scale(1.06); box-shadow: 0 8px 24px rgba(0,0,0,.8); z-index: 10;
}
.grid-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.grid-card-info { background: #1f1f1f; padding: 8px; }
.grid-card-title {
  font-size: .82rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.grid-card-meta { font-size: .72rem; color: #46d369; margin-top: 3px; }

/* â”€â”€ Film Detail â”€â”€ */
.player-wrap { width: 100%; aspect-ratio: 16/9; background: #000; margin-top: 72px; }
.player-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

.film-info {
  display: flex; gap: 32px; padding: 24px 4%;
  align-items: flex-start;
}
.player-top-info {
  margin-top: 4px;
  justify-content: flex-start;
}
.film-poster { flex: 0 0 180px; }
.film-poster img { width: 100%; border-radius: 4px; box-shadow: 0 4px 20px rgba(0,0,0,.6); }
.film-details { flex: 1; min-width: 0; }
.film-title { font-size: 2rem; font-weight: 900; margin-bottom: 10px; }
.film-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 12px; margin-bottom: 16px; font-size: .9rem; color: #ccc;
}
.badge-score { color: #46d369; font-weight: 700; font-size: 1rem; }
.badge-genre {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  padding: 3px 10px; font-size: .78rem; border-radius: 2px; color: #e5e5e5;
}
.film-desc {
  font-size: .93rem; color: #bbb; line-height: 1.65; margin-bottom: 22px;
}
.btn-watch {
  display: inline-block; background: #e50914; color: #fff;
  font-weight: 700; padding: 12px 30px; font-size: .95rem;
  transition: background .2s;
}
.btn-watch:hover { background: #c40812; }

.player-data-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
  padding: 0 4% 24px;
}
.player-data-card {
  background: #1a1a1a;
  border: 1px solid #2c2c2c;
  border-radius: 10px;
  padding: 18px 20px;
}
.player-data-card h3 {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #9b9b9b;
  margin-bottom: 16px;
}
.player-data-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 16px 24px;
}
.player-data-items div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.player-data-items strong {
  font-size: .75rem;
  color: #8e8e8e;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.player-data-items span {
  font-size: 1.05rem;
  color: #fff;
  font-weight: 700;
}
.player-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.more-section { padding: 0 4% 40px; }
.more-section h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0; }
.catalog-rows {
  margin-top: 6px;
}
.catalog-rows .section {
  padding-bottom: 26px;
}

/* Series Player Module */
.series-shell {
  margin: 18px 4% 20px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background:
    radial-gradient(1200px 240px at 20% -20%, rgba(229,9,20,.18), transparent 55%),
    linear-gradient(145deg, #171819 0%, #111214 100%);
  box-shadow: 0 18px 38px rgba(0,0,0,.34);
}
.series-head .film-title {
  margin-bottom: 10px;
}
.series-head .film-desc {
  max-width: 950px;
}
.series-play-btn {
  min-width: 220px;
  text-align: center;
}
.series-episode-panel {
  margin-top: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 16px;
  background: rgba(0,0,0,.28);
}
.series-episode-title {
  font-size: .85rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #a8a8a8;
  margin-bottom: 12px;
}
.series-episode-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}
.series-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.series-field span {
  font-size: .78rem;
  color: #bdbdbd;
}
.series-field input {
  width: 108px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  background: #0f1012;
  color: #fff;
  padding: 0 12px;
  font-size: 1rem;
}
.series-field input:focus {
  outline: none;
  border-color: rgba(229,9,20,.8);
  box-shadow: 0 0 0 3px rgba(229,9,20,.18);
}
.series-control-btn {
  min-height: 44px;
  border-radius: 8px;
}

/* Canal Navigation Panel */
.canal-nav-panel {
  margin: 0 4% 24px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 16px;
  background: rgba(0,0,0,.28);
}
.canal-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.canal-nav-label {
  font-size: .85rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #a8a8a8;
}
.canal-nav-controls {
  display: flex;
  gap: 8px;
}
.canal-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #e50914 #1a1a1a;
}
.canal-list::-webkit-scrollbar { height: 4px; }
.canal-list::-webkit-scrollbar-track { background: #1a1a1a; border-radius: 4px; }
.canal-list::-webkit-scrollbar-thumb { background: #e50914; border-radius: 4px; }
.canal-list-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 90px;
  padding: 10px 8px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: linear-gradient(145deg, #202020, #181818);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
  scroll-snap-align: start;
  text-align: center;
  color: inherit;
}
.canal-list-item:hover {
  border-color: rgba(229,9,20,.65);
  transform: translateY(-2px);
}
.canal-list-item.active {
  border-color: #e50914;
  background: rgba(229,9,20,.15);
}
.canal-list-item img {
  width: 48px;
  height: 32px;
  object-fit: contain;
}
.canal-list-icon {
  font-size: 1.4rem;
  line-height: 32px;
}
.canal-list-name {
  font-size: .72rem;
  color: #ccc;
  line-height: 1.3;
  word-break: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.canal-list-item.active .canal-list-name { color: #fff; }

/* â”€â”€ Search bar â”€â”€ */
.search-wrap {
  padding: 96px 4% 16px; display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.search-wrap h1 { font-size: 1.6rem; font-weight: 700; }
.search-form { display: flex; gap: 0; }
.search-form input {
  background: #2a2a2a; border: 1px solid #555; color: #fff;
  padding: 10px 16px; font-size: .95rem; width: 300px; outline: none;
}
.search-form button {
  background: #e50914; color: #fff; border: none;
  padding: 10px 20px; cursor: pointer; font-weight: 700; font-size: .95rem;
}

.empty {
  text-align: center; padding: 80px 4%; color: #666; font-size: 1.1rem;
}

/* â”€â”€ Footer â”€â”€ */
footer {
  padding: 32px 4%; text-align: center;
  color: #555; font-size: .8rem; border-top: 1px solid #222;
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 1024px) {
  .navbar { padding: 12px 4%; }
  .logo-main, .logo-sub { font-size: 1.55rem; }
  .navbar-links a { font-size: .9rem; }
  .navbar-search form:hover,
  .navbar-search form:focus-within { width: 240px; }
  .hero { height: 74vh; min-height: 460px; }
  .hero-title { font-size: 2.5rem; }
  .card { flex-basis: 145px; }
}

@media (max-width: 900px) {
  .navbar {
    position: sticky;
    top: 0;
    background: rgba(14,14,14,.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 18px rgba(0,0,0,.35);
    padding: 0 4%;
    height: 54px;
    display: flex;
    align-items: center;
  }
  .navbar.scrolled { padding: 0 4%; }
  .navbar-inner {
    gap: 0;
    flex-wrap: nowrap;
    align-items: center;
    height: 100%;
    width: 100%;
    position: relative;
  }
  .navbar-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    animation: logoReveal .55s cubic-bezier(.2,.8,.3,1) both;
  }
  .navbar-logo:hover { transform: translateX(-50%) translateY(-1px); }
  .logo-main { font-size: 1.45rem; letter-spacing: 3px; }
  .logo-play { display: none; }

  .navbar-search { display: none; }
  .navbar-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero {
    min-height: 500px;
    height: 72vh;
    background-position: center center;
  }
  .hero-content {
    left: 4%;
    right: 4%;
    bottom: 9%;
    max-width: none;
  }
  .hero-title { font-size: 2rem; }
  .hero-desc {
    -webkit-line-clamp: 2;
    font-size: .9rem;
  }
  .hero-buttons { width: 100%; gap: 10px; }
  .btn-play,
  .btn-info {
    flex: 1 1 calc(50% - 5px);
    justify-content: center;
    min-width: 0;
  }

  .home-rows { margin-top: 10px; padding-top: 14px; }
  .home-rows::before { top: -16px; height: 46px; }
  .section { padding: 0 3.5% 22px; }
  .catalog-rows .section { padding-bottom: 18px; }
  .section-head { margin-bottom: 8px; }
  .section-title { font-size: 1rem; }
  .row-controls,
  .row-nav { display: none !important; }
  .row-track {
    gap: 8px;
    padding-bottom: 2px;
    scroll-padding-left: 3.5vw;
  }
  .catalog-rows .row-track {
    padding-bottom: 6px;
  }
  .card { flex: 0 0 34vw; }

  .page-header {
    padding: 22px 4% 12px;
    text-align: center;
  }
  .page-header .catalog-switch {
    justify-content: flex-start;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px 3.5% 28px;
  }

  .catalog-switch {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    border-radius: 12px;
    margin-top: 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .catalog-switch::-webkit-scrollbar { display: none; }
  .catalog-tab { flex-shrink: 0; padding: 7px 12px; font-size: .82rem; }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 8px 3.5% 26px;
  }

  .search-wrap {
    padding: 22px 4% 12px;
  }
  .search-form {
    width: 100%;
    max-width: 100%;
  }
  .search-form input {
    width: 100%;
    min-width: 0;
  }

  .player-wrap {
    margin-top: 0;
    aspect-ratio: auto;
    height: 68vh;
    min-height: 360px;
    max-height: 760px;
  }
  .film-info {
    flex-direction: column;
    gap: 16px;
    padding: 18px 4%;
  }
  .player-top-info { gap: 16px; }

  /* Canal player: centraliza e alinha largura com o painel abaixo */
  .canal-player-info {
    padding: 18px 4%;
  }
  .canal-player-info .film-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .canal-player-info .film-meta {
    justify-content: center;
  }
  .canal-player-info .btn-watch {
    width: 100%;
    box-sizing: border-box;
  }
  .film-poster {
    flex: none;
    width: 120px;
  }
  .film-title { font-size: 1.5rem; }
  .film-meta { gap: 8px; }
  .btn-watch {
    display: block;
    width: 100%;
    text-align: center;
  }
  .player-data-grid {
    grid-template-columns: 1fr;
    padding: 0 4% 18px;
  }
  .player-data-items { grid-template-columns: 1fr; }
  .series-shell {
    margin: 14px 4% 16px;
    padding: 16px;
    border-radius: 12px;
  }
  .series-play-btn {
    width: 100%;
    min-width: 0;
  }
  .series-episode-panel {
    padding: 12px;
  }
  .series-episode-controls {
    gap: 8px;
  }
  .series-field {
    width: calc(50% - 4px);
  }
  .series-field input {
    width: 100%;
  }
  .series-control-btn {
    width: 100%;
    justify-content: center;
  }

  /* Canal nav mobile */
  .canal-nav-panel {
    margin: 0 3.5% 18px;
    padding: 12px;
  }
  .canal-nav-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .canal-nav-controls {
    width: 100%;
  }
  .canal-nav-controls .series-control-btn {
    flex: 1;
    width: auto;
  }

  /* Anime: episode field largura total */
  .series-episode-controls--anime .series-field {
    width: 100%;
    flex: 1 1 100%;
  }
  .series-episode-controls--anime .series-field input {
    width: 100%;
  }
}

@media (max-width: 768px) {
  body { overflow-x: hidden; }

  .hero-title { font-size: 1.86rem; }
  .card { flex-basis: 38vw; }
  .catalog-rows .card { flex-basis: 40vw; }
  .grid,
  .category-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .hero { min-height: 500px; }
  .hero-title { font-size: 1.75rem; }
  .hero-meta { font-size: .8rem; gap: 8px; }
  .btn-play,
  .btn-info {
    flex: 1 1 100%;
    padding: 10px 14px;
    font-size: .9rem;
  }

  .card { flex-basis: 44vw; }
  .catalog-rows .card { flex-basis: 46vw; }
  .grid-card-title { font-size: .78rem; }
  .grid-card-meta { font-size: .68rem; }

  .logo-main, .logo-sub { font-size: 1.04rem; }
  .navbar-links { gap: 12px; }

  .page-header h1 { font-size: 1.7rem; }
  .grid,
  .category-grid {
    grid-template-columns: 1fr;
  }
  .category-card { padding: 14px 12px; }
  .category-name { font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content > *,
  .home-rows .section,
  .home-rows .section .card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
