* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background-color: #141414;
  color: #fff;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

.qjnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.55));
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 20;
}

.xkleft {
  display: flex;
  align-items: center;
  gap: 24px;
}

.rtlogo {
  color: #e50914;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lklnk {
  background: none;
  border: none;
  color: #e5e5e5;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.lklnk:hover {
  color: #fff;
}

.lklnk.active {
  color: #fff;
  font-weight: bold;
}

.pzright {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-input {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #666;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  width: 180px;
}

.icico {
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.profile-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-badge {
  font-size: 13px;
  color: #ccc;
}

.pfprv {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #e50914, #831010);
  border-radius: 4px;
}

.signout-link {
  color: #b3b3b3;
  font-size: 13px;
  text-decoration: none;
}

.signout-link:hover {
  color: #fff;
  text-decoration: underline;
}

.bnhero {
  min-height: 75vh;
  background:
    linear-gradient(to top, #141414 0%, transparent 35%),
    linear-gradient(to right, rgba(0, 0, 0, 0.88) 32%, rgba(0, 0, 0, 0.25) 75%),
    url("../img/background.jpg") no-repeat center center/cover;
  display: flex;
  align-items: center;
  padding: 100px 40px 60px;
}

.ctcnt {
  max-width: 560px;
}

.hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #e50914;
  margin-bottom: 10px;
}

.ttttl {
  font-size: 54px;
  line-height: 1.05;
  margin-bottom: 12px;
}

.mtmet {
  font-size: 14px;
  color: #46d369;
  font-weight: bold;
  margin-bottom: 14px;
}

.dsdsc {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 22px;
  color: #e5e5e5;
}

.btbtns {
  display: flex;
  gap: 12px;
}

.bxbtn {
  padding: 10px 22px;
  font-size: 15px;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.bxbtn:hover {
  opacity: 0.85;
}

.playbtn {
  background-color: #fff;
  color: #000;
}

.infobtn {
  background-color: rgba(109, 109, 110, 0.75);
  color: #fff;
}

/* Catalog Rows */
.catalog {
  padding: 10px 40px 60px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.row-title {
  font-size: 20px;
  margin-bottom: 12px;
  color: #e5e5e5;
}

.row-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.poster-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  min-height: 135px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.poster-card:hover {
  transform: scale(1.04);
  border-color: rgba(255, 255, 255, 0.4);
  z-index: 2;
}

.poster-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
}

.poster-match {
  color: #46d369;
  font-weight: bold;
}

.poster-title {
  font-size: 17px;
  font-weight: bold;
  margin-top: 18px;
}

.poster-genre {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
}

.empty-state {
  color: #999;
  font-size: 16px;
  padding: 40px 0;
  text-align: center;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.modal-card {
  background: #181818;
  width: 100%;
  max-width: 620px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
}

.modal-banner {
  padding: 56px 28px 24px;
  background: linear-gradient(to top, #181818 0%, rgba(229, 9, 20, 0.35) 100%);
}

.modal-badge {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.5px;
  color: #e50914;
  text-transform: uppercase;
}

.modal-banner h2 {
  font-size: 32px;
  margin-top: 6px;
}

.modal-body {
  padding: 0 28px 28px;
}

.modal-meta {
  color: #46d369;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 12px;
}

.modal-desc {
  color: #ddd;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.modal-player {
  margin-bottom: 18px;
}

.player-screen {
  background: #000;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 28px 20px;
  text-align: center;
}

.player-status {
  font-size: 14px;
  color: #fff;
  margin-bottom: 14px;
}

.player-bar {
  width: 100%;
  height: 5px;
  background: #333;
  border-radius: 3px;
  overflow: hidden;
}

.player-progress {
  width: 38%;
  height: 100%;
  background: #e50914;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

@media (max-width: 768px) {
  .qjnav {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-links {
    gap: 10px;
    flex-wrap: wrap;
  }

  .user-badge {
    display: none;
  }

  .bnhero {
    padding: 120px 20px 40px;
  }

  .ttttl {
    font-size: 34px;
  }

  .catalog {
    padding: 10px 20px 40px;
  }
}
