* {
  box-sizing: border-box;
}

html {
  background: #07080d;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #f7f7fa;
  background: #07080d;
  font-family: Inter, Tahoma, Arial, Helvetica, sans-serif;
  font-size: 14px;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.page-shell {
  width: 100%;
  max-width: 1536px;
  min-height: 1024px;
  margin: 0 auto;
  background:
    radial-gradient(circle at 49% 2%, rgba(75, 22, 42, 0.17), transparent 32%),
    radial-gradient(circle at 92% 35%, rgba(50, 24, 55, 0.11), transparent 30%),
    #07080d;
}

.site-header {
  height: 112px;
  background: rgba(8, 9, 14, 0.93);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar {
  display: grid;
  grid-template-columns: 242px 502px 1fr;
  column-gap: 37px;
  align-items: center;
  height: 64px;
  padding: 0 47px 0 52px;
}

.logo {
  display: inline-flex;
  align-items: center;
  width: max-content;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1;
}

.logo-mark {
  position: relative;
  display: inline-block;
  width: 27px;
  height: 34px;
  margin-right: 10px;
}

.logo-mark span {
  position: absolute;
  display: block;
  background: #f11c50;
  box-shadow: 0 0 18px rgba(241, 28, 80, 0.32);
}

.logo-mark span:nth-child(1) {
  left: 0;
  top: 2px;
  width: 6px;
  height: 31px;
  border-radius: 5px;
}

.logo-mark span:nth-child(2) {
  left: 10px;
  top: 8px;
  width: 13px;
  height: 13px;
  border-radius: 10px 10px 10px 2px;
  transform: rotate(45deg);
}

.logo-mark span:nth-child(3) {
  left: 10px;
  top: 18px;
  width: 19px;
  height: 13px;
  border-radius: 2px 13px 13px 2px;
  transform: skewX(-17deg);
}

.logo-only {
  color: #ffffff;
}

.logo-syou {
  color: #f01f52;
}

.search {
  display: flex;
  align-items: center;
  width: 502px;
  height: 38px;
  overflow: hidden;
  background: #15161d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
}

.search input {
  width: 100%;
  height: 100%;
  padding: 0 16px;
  color: #ececf0;
  background: transparent;
  border: 0;
  outline: 0;
}

.search input::placeholder {
  color: #8c8e97;
}

.search button {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  height: 100%;
  color: #fafafa;
  background: transparent;
  border: 0;
}

.search button svg {
  width: 21px;
  height: 21px;
}

.account-nav {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 20px;
  height: 100%;
  white-space: nowrap;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f3f4f7;
  font-size: 15px;
}

.icon-link svg {
  width: 17px;
  height: 17px;
}

.login-btn,
.signup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-radius: 6px;
  font-weight: 600;
}

.login-btn {
  width: 96px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.signup-btn {
  width: 112px;
  color: #ffffff;
  background: #ec1b4c;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 45px;
  height: 48px;
  padding-left: 52px;
  color: #eeeeef;
  border-top: 1px solid rgba(255, 255, 255, 0.025);
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 48px;
  font-size: 15px;
}

.main-nav a.active {
  color: #ef1d50;
}

.main-nav a.active::before {
  content: "\2302";
  margin-right: 0;
  font-size: 13px;
}

.main-nav a.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: #ef1d50;
  content: "";
}

.premium-link {
  color: #ffc43c;
}

.content-grid {
  display: grid;
  grid-template-columns: 1043px 390px;
  gap: 18px;
  align-items: start;
  margin: 16px 44px 0 42px;
}

.main-column {
  width: 1043px;
}

.hero {
  width: 1043px;
  height: 364px;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}

.hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-section {
  position: relative;
}

.trending-section {
  margin-top: 29px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.recommended-section {
  margin-top: 10px;
}

.section-heading,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-heading h2,
.panel-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}

.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 9px;
}

.heading-icon,
.heart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #f32155;
  font-size: 20px;
  line-height: 1;
}

.heart-icon {
  font-size: 29px;
  font-weight: 300;
}

.section-heading a,
.panel-heading a {
  color: #ff1d52;
  font-size: 12px;
  font-weight: 600;
}

.video-row {
  display: grid;
  grid-template-columns: repeat(5, 196px);
  gap: 14px;
  margin-top: 20px;
  margin-left: 4px;
}

.video-card {
  position: relative;
  width: 196px;
  min-height: 175px;
}

.recommended-section .video-card {
  min-height: 114px;
}

.poster {
  display: block;
  width: 196px;
  height: 115px;
  object-fit: cover;
  border-radius: 6px;
}

.recommended-section .poster {
  height: 114px;
}

.video-card h3 {
  margin: 9px 0 5px;
  overflow: hidden;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-card p,
.video-card > span {
  display: block;
  margin: 0;
  color: #a7a9b3;
  font-size: 12px;
  line-height: 19px;
}

.verified {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 3px;
  vertical-align: -1px;
  background: #ff1e53;
  border-radius: 50%;
}

.verified::after {
  position: absolute;
  top: 2px;
  left: 3px;
  width: 4px;
  height: 2px;
  border-bottom: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  content: "";
  transform: rotate(-45deg);
}

.more-btn {
  position: absolute;
  right: 1px;
  bottom: 13px;
  display: grid;
  place-items: center;
  width: 15px;
  height: 22px;
  padding: 0;
  color: #babcc4;
  background: transparent;
  border: 0;
  font-size: 18px;
  line-height: 1;
}

.row-arrow {
  position: absolute;
  top: 81px;
  right: -10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 38px;
  padding: 0;
  color: #ffffff;
  background: rgba(22, 23, 29, 0.88);
  border: 0;
  border-radius: 18px 0 0 18px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  font-size: 34px;
  line-height: 1;
}

.row-arrow.lower {
  top: 78px;
}

.feature-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  height: 64px;
  margin: 24px 8px 0 4px;
  padding: 0 60px;
  background: linear-gradient(180deg, rgba(21, 22, 28, 0.96), rgba(18, 19, 25, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 7px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #ff1f55;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-4k {
  border: 1px solid #ff1f55;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.feature strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.feature small {
  display: block;
  margin-top: 3px;
  color: #9698a3;
  font-size: 12px;
}

.sidebar {
  width: 390px;
}

.panel {
  width: 390px;
  background: linear-gradient(180deg, rgba(18, 19, 25, 0.98), rgba(15, 16, 22, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 7px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.categories-panel {
  height: 288px;
  padding: 18px 18px 15px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 73px;
  margin-top: 13px;
}

.category-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #f1f1f4;
  border-right: 1px solid rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(255, 255, 255, 0.025);
  font-size: 13px;
  line-height: 16px;
  text-align: center;
}

.category-grid a:nth-child(4n) {
  border-right: 0;
}

.category-grid a:nth-child(n + 9) {
  border-bottom: 0;
}

.category-grid span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 22px;
  color: #ff576e;
  font-size: 22px;
  line-height: 1;
}

.searches-panel {
  height: 172px;
  margin-top: 14px;
  padding: 19px 18px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 9px;
  margin-top: 15px;
}

.tag-cloud a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 15px;
  color: #f2f2f4;
  background: #202127;
  border-radius: 15px;
  font-size: 12px;
}

.tag-cloud a:nth-child(-n + 3) {
  color: #ffffff;
}

.creators-panel {
  height: 322px;
  margin-top: 14px;
  padding: 18px 18px 15px;
}

.creator-list {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.creator {
  display: grid;
  grid-template-columns: 45px 1fr 76px;
  gap: 11px;
  align-items: center;
  min-height: 43px;
}

.avatar {
  display: block;
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 50%;
}

.creator h3 {
  display: flex;
  align-items: center;
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
}

.creator p {
  margin: 4px 0 0;
  color: #9d9faa;
  font-size: 12px;
  line-height: 14px;
}

.creator button {
  width: 76px;
  height: 34px;
  color: #ff2557;
  background: transparent;
  border: 1px solid #ed1c4d;
  border-radius: 5px;
  font-weight: 500;
}

@media (max-width: 1280px) {
  .page-shell {
    max-width: none;
    min-height: 0;
  }

  .topbar {
    grid-template-columns: 200px minmax(260px, 1fr);
    row-gap: 12px;
    height: auto;
    padding: 14px 20px;
  }

  .account-nav {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .search {
    width: 100%;
  }

  .main-nav {
    overflow-x: auto;
    gap: 28px;
    padding-left: 20px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    margin: 16px 20px 32px;
  }

  .main-column,
  .hero,
  .sidebar,
  .panel {
    width: 100%;
  }

  .hero {
    height: auto;
  }

  .hero img {
    height: auto;
  }

  .video-row {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .video-card,
  .poster {
    width: 100%;
  }

  .poster {
    height: auto;
    aspect-ratio: 196 / 115;
  }

  .recommended-section .poster {
    height: auto;
  }

  .row-arrow {
    display: none;
  }

  .feature-bar {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
    gap: 18px;
    margin-right: 0;
    padding: 18px 24px;
  }
}
@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    height: auto;
  }

  .page-shell {
    overflow-x: hidden;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 14px 14px 12px;
  }

  .logo,
  .search,
  .account-nav {
    max-width: 100%;
    min-width: 0;
  }

  .search,
  .account-nav {
    width: 100%;
  }

  .search {
    align-self: stretch;
    height: 40px;
  }

  .search input {
    min-width: 0;
  }

  .account-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    white-space: normal;
  }

  .icon-link,
  .login-btn,
  .signup-btn {
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    line-height: 1;
  }

  .main-nav {
    height: 46px;
    gap: 24px;
    padding: 0 14px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    height: 46px;
    flex: 0 0 auto;
    font-size: 14px;
  }

  .content-grid {
    margin: 12px 14px 28px;
  }

  .hero {
    border-radius: 7px;
  }

  .trending-section {
    margin-top: 22px;
    padding-bottom: 14px;
  }

  .section-heading h2,
  .panel-heading h2 {
    font-size: 16px;
  }

  .section-heading a,
  .panel-heading a {
    flex: 0 0 auto;
  }

  .video-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
    margin-top: 14px;
    margin-left: 0;
  }

  .video-card h3 {
    margin-top: 8px;
    font-size: 13px;
  }

  .video-card p,
  .video-card > span {
    font-size: 11px;
    line-height: 17px;
  }

  .feature-bar {
    gap: 16px;
    margin: 20px 0 0;
    padding: 16px;
  }

  .feature {
    align-items: flex-start;
  }

  .feature strong {
    font-size: 13px;
    line-height: 18px;
  }

  .feature small {
    font-size: 11px;
    line-height: 16px;
  }

  .sidebar {
    margin-top: 4px;
  }

  .categories-panel,
  .searches-panel,
  .creators-panel {
    padding: 16px 14px;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 68px;
  }

  .category-grid a {
    font-size: 12px;
    line-height: 15px;
  }

  .category-grid a:nth-child(4n) {
    border-right: 1px solid rgba(255, 255, 255, 0.025);
  }

  .category-grid a:nth-child(3n) {
    border-right: 0;
  }

  .category-grid a:nth-child(n + 9) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.025);
  }

  .category-grid a:nth-child(n + 10) {
    border-bottom: 0;
  }

  .tag-cloud a {
    min-height: 28px;
    padding: 0 12px;
    font-size: 11px;
  }

  .creator {
    grid-template-columns: 45px minmax(0, 1fr) 78px;
    gap: 10px;
  }

  .creator h3 {
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .creator button {
    grid-column: auto;
    width: 78px;
    height: 32px;
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .content-grid {
    margin-right: 12px;
    margin-left: 12px;
  }

  .video-row {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid a:nth-child(3n) {
    border-right: 1px solid rgba(255, 255, 255, 0.025);
  }

  .category-grid a:nth-child(2n) {
    border-right: 0;
  }

  .category-grid a:nth-child(n + 10) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.025);
  }

  .category-grid a:nth-child(n + 11) {
    border-bottom: 0;
  }
}

/* Video Player Modal */
#player-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

#player-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 6, 10, 0.9);
  backdrop-filter: blur(12px);
}

#player-container {
  position: relative;
  width: 92%;
  max-width: 900px;
  background: #0c0d14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  z-index: 2001;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#player-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  z-index: 2002;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

#player-close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.05);
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000000;
}

.player-details {
  padding: 20px 24px;
  max-height: 250px;
  overflow-y: auto;
}

.player-details h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

.player-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.player-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  color: #ef1d50;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.player-tag:hover {
  background: rgba(255, 255, 255, 0.1);
}

.player-desc {
  margin: 0;
  font-size: 13px;
  color: #a0a2b0;
  line-height: 1.6;
}





