.sypp-player,
.sypp-player *,
.sypp-tabs,
.sypp-tabs * {
  box-sizing: border-box;
}

.sypp-notice {
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff8e5;
  border: 1px solid rgba(219,166,23,.35);
  color: #553700;
  font-weight: 700;
}

.sypp-player {
  --sypp-bg: #0b1020;
  --sypp-panel: #111827;
  --sypp-panel-2: #0f172a;
  --sypp-item: #151f30;
  --sypp-item-hover: #1c293d;
  --sypp-soft: rgba(255,255,255,.075);
  --sypp-text: #ffffff;
  --sypp-muted: rgba(255,255,255,.68);
  --sypp-line: rgba(255,255,255,.11);
  --sypp-accent: #EB4A31;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 18px;
  margin: 20px 0;
  padding: 18px;
  color: var(--sypp-text) !important;
  background: linear-gradient(145deg, #090d18 0%, #0d1424 56%, #080b12 100%) !important;
  border: 1px solid var(--sypp-line);
  border-radius: 26px;
  box-shadow: 0 24px 64px rgba(2,8,23,.28);
  overflow: hidden;
  isolation: isolate;
  font-family: inherit;
}

.sypp-theme-light {
  --sypp-bg: #f7f8fc;
  --sypp-panel: #ffffff;
  --sypp-panel-2: #ffffff;
  --sypp-item: #f4f6fb;
  --sypp-item-hover: #edf1f8;
  --sypp-soft: rgba(17,24,39,.06);
  --sypp-text: #111827;
  --sypp-muted: rgba(17,24,39,.62);
  --sypp-line: rgba(17,24,39,.11);
  background: linear-gradient(145deg, #ffffff 0%, #f3f6fb 60%, #ffffff 100%) !important;
  box-shadow: 0 20px 50px rgba(17,24,39,.12);
}

.sypp-layout-left .sypp-list-card { grid-column: 1; grid-row: 1; }
.sypp-layout-left .sypp-hero { grid-column: 2; grid-row: 1; }
.sypp-layout-right { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); }
.sypp-layout-right .sypp-list-card { grid-column: 2; grid-row: 1; }
.sypp-layout-right .sypp-hero { grid-column: 1; grid-row: 1; }
.sypp-layout-bottom { grid-template-columns: 1fr; }
.sypp-layout-bottom .sypp-hero,
.sypp-layout-bottom .sypp-list-card { grid-column: 1; }

.sypp-list-card,
.sypp-player-card {
  border: 1px solid var(--sypp-line);
  border-radius: 22px;
  overflow: hidden;
  color: var(--sypp-text) !important;
}

.sypp-list-card {
  display: flex;
  flex-direction: column;
  min-height: 540px;
  max-height: 760px;
  background: var(--sypp-panel) !important;
}

.sypp-player-card {
  height: 100%;
  background: var(--sypp-panel-2) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.sypp-list-head {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--sypp-line);
  background: linear-gradient(180deg, rgba(255,255,255,.035), transparent) !important;
}

.sypp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--sypp-accent) !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.sypp-list-head h2,
.sypp-current-title,
.sypp-video-text strong {
  color: var(--sypp-text) !important;
}

.sypp-list-head h2 {
  margin: 0 !important;
  font-size: clamp(22px, 2vw, 31px) !important;
  line-height: 1.12 !important;
  letter-spacing: -.03em;
  font-weight: 900 !important;
}

.sypp-head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.sypp-head-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--sypp-line);
  background: var(--sypp-soft) !important;
  color: var(--sypp-muted) !important;
  font-size: 12px;
  font-weight: 800;
}

.sypp-search-wrap {
  display: block;
  margin-top: 14px;
}

.sypp-search {
  width: 100% !important;
  height: 42px !important;
  padding: 0 14px !important;
  border: 1px solid var(--sypp-line) !important;
  border-radius: 14px !important;
  background: var(--sypp-soft) !important;
  color: var(--sypp-text) !important;
  outline: none !important;
  box-shadow: none !important;
  font: inherit !important;
}

.sypp-search::placeholder { color: var(--sypp-muted) !important; }

.sypp-video-list {
  padding: 12px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--sypp-accent) transparent;
}

.sypp-player button.sypp-video-item,
.sypp-player .sypp-video-item {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 36px 104px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 10px !important;
  margin: 0 0 10px !important;
  border: 1px solid var(--sypp-line) !important;
  border-radius: 18px !important;
  background: var(--sypp-item) !important;
  color: var(--sypp-text) !important;
  text-align: left !important;
  cursor: pointer !important;
  text-decoration: none !important;
  box-shadow: none !important;
  font-family: inherit !important;
  line-height: normal !important;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}

.sypp-player button.sypp-video-item:hover,
.sypp-player button.sypp-video-item:focus,
.sypp-player .sypp-video-item:hover,
.sypp-player .sypp-video-item:focus {
  background: var(--sypp-item-hover) !important;
  border-color: color-mix(in srgb, var(--sypp-accent) 55%, var(--sypp-line)) !important;
  color: var(--sypp-text) !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,.16) !important;
  outline: none !important;
}

.sypp-player button.sypp-video-item.is-active,
.sypp-player .sypp-video-item.is-active {
  background: linear-gradient(135deg, color-mix(in srgb, var(--sypp-accent) 28%, var(--sypp-item)), var(--sypp-item)) !important;
  border-color: var(--sypp-accent) !important;
  box-shadow: 0 16px 36px rgba(0,0,0,.18) !important;
}

.sypp-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--sypp-soft) !important;
  color: var(--sypp-muted) !important;
  font-size: 12px;
  font-weight: 900;
}

.sypp-video-item.is-active .sypp-index {
  background: var(--sypp-accent) !important;
  color: #fff !important;
}

.sypp-thumb {
  position: relative;
  display: block;
  width: 104px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000 !important;
}

.sypp-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform .18s ease;
}

.sypp-video-item:hover .sypp-thumb img { transform: scale(1.045); }

.sypp-play-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(0,0,0,.62) !important;
}

.sypp-play-icon:after {
  content: '';
  position: absolute;
  left: 13px;
  top: 9px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #fff;
}

.sypp-duration {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 3px 6px;
  border-radius: 7px;
  background: rgba(0,0,0,.76) !important;
  color: #fff !important;
  font-size: 11px;
  font-weight: 800;
}

.sypp-video-text {
  min-width: 0;
  display: block;
}

.sypp-video-text strong {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 5px !important;
  font-size: 14px !important;
  line-height: 1.28 !important;
  font-weight: 850 !important;
}

.sypp-video-text small {
  display: block;
  color: var(--sypp-muted) !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sypp-player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000 !important;
  overflow: hidden;
}

.sypp-iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
}

.sypp-now {
  padding: 20px 22px 24px;
  border-top: 1px solid var(--sypp-line);
}

.sypp-current-title {
  margin: 0 !important;
  font-size: clamp(20px, 2.1vw, 32px) !important;
  line-height: 1.14 !important;
  letter-spacing: -.035em;
  font-weight: 900 !important;
}

.sypp-current-description {
  margin: 12px 0 0 !important;
  max-width: 850px;
  color: var(--sypp-muted) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

.sypp-video-item.is-hidden { display: none !important; }

.sypp-layout-bottom .sypp-list-card {
  min-height: 0;
  max-height: none;
}

.sypp-layout-bottom .sypp-video-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-height: 520px;
}

.sypp-layout-bottom .sypp-video-item {
  grid-template-columns: 34px 104px minmax(0, 1fr) !important;
  margin-bottom: 0 !important;
}

.sypp-tabs {
  width: 100%;
  margin: 20px 0;
}

.sypp-tabs-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px;
  margin-bottom: 14px;
  border: 1px solid rgba(17,24,39,.1);
  border-radius: 18px;
  background: #fff !important;
  box-shadow: 0 10px 30px rgba(17,24,39,.08);
}

.sypp-tab-btn {
  appearance: none !important;
  border: 1px solid rgba(17,24,39,.1) !important;
  background: #f6f7fb !important;
  color: #111827 !important;
  border-radius: 14px !important;
  padding: 11px 16px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  white-space: nowrap;
  box-shadow: none !important;
}

.sypp-tab-btn.is-active {
  border-color: var(--sypp-accent, #EB4A31) !important;
  background: var(--sypp-accent, #EB4A31) !important;
  color: #fff !important;
}

.sypp-tab-panel { display: none; }
.sypp-tab-panel.is-active { display: block; }
.sypp-inside-tabs { margin-top: 0; }

@media (max-width: 1100px) {
  .sypp-player,
  .sypp-layout-right {
    grid-template-columns: 1fr;
  }
  .sypp-layout-left .sypp-list-card,
  .sypp-layout-right .sypp-list-card,
  .sypp-layout-left .sypp-hero,
  .sypp-layout-right .sypp-hero {
    grid-column: 1;
  }
  .sypp-layout-left .sypp-hero,
  .sypp-layout-right .sypp-hero { grid-row: 1; }
  .sypp-layout-left .sypp-list-card,
  .sypp-layout-right .sypp-list-card { grid-row: 2; }
  .sypp-list-card { min-height: 0; max-height: 640px; }
}

@media (max-width: 760px) {
  .sypp-player { padding: 12px; border-radius: 20px; gap: 12px; }
  .sypp-list-card,
  .sypp-player-card { border-radius: 18px; }
  .sypp-list-head { padding: 16px; }
  .sypp-video-list { padding: 10px; }
  .sypp-player button.sypp-video-item,
  .sypp-player .sypp-video-item { grid-template-columns: 30px 88px minmax(0, 1fr) !important; gap: 9px !important; padding: 8px !important; border-radius: 14px !important; }
  .sypp-thumb { width: 88px; border-radius: 11px; }
  .sypp-index { width: 28px; height: 28px; font-size: 10px; }
  .sypp-video-text strong { font-size: 13px !important; }
  .sypp-now { padding: 16px; }
  .sypp-layout-bottom .sypp-video-list { grid-template-columns: 1fr; }
}
