.tv-page {
  display: grid;
  gap: 12px;
}
.tv-heading {
  text-align: center;
  padding: 2px 5px;
}
.tv-heading > img {
  display: block;
  max-width: 240px;
  max-height: 110px;
  width: 100%;
  object-fit: contain;
  margin: 0 auto 8px;
}
.tv-heading h1 {
  font-size: 25px;
  color: var(--pink);
  margin: 0;
}
.tv-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.tv-page h2 {
  margin-bottom: 12px;
}
.tv-page .row h2 {
  margin: 0;
}
.tv-page .row {
  margin-bottom: 12px;
}
.tv-player {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #000;
  border: 1px solid #00e5ff33;
  border-radius: 12px;
}
.tv-status {
  font-size: 12px;
  line-height: 1.6;
  color: #ddd;
  margin: 12px 0;
}
.tv-actions,
.tv-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.tv-actions > * {
  flex: 1;
  min-width: 100px;
}
.tv-page .tag {
  font-size: 8px;
}
.tv-page audio {
  width: 100%;
  display: block;
  margin: 14px 0;
}
.tv-music-controls {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) 45px;
  gap: 8px;
}
.tv-music-controls .button {
  padding: 9px 5px;
}
.tv-tracks {
  display: grid;
  gap: 6px;
  max-height: 250px;
  overflow: auto;
  margin-top: 14px;
}
.tv-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  border: 1px solid #ffffff22;
  background: #ffffff08;
  color: white;
  border-radius: 10px;
  padding: 10px;
  font-size: 11px;
  font-weight: 700;
  min-height: 42px;
}
.tv-track > span:first-child {
  overflow-wrap: anywhere;
}
.tv-track > span:last-child {
  font-size: 8px;
  color: #aaa;
}
.tv-track.active {
  border-color: #ff2bd688;
  background: #ff2bd622;
}
.tv-track.active > span:last-child {
  color: #ffeb00;
}
.tv-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.tv-media-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  border-radius: 12px;
  border: 1px solid #00e5ff33;
  background: #000;
  color: #fff;
  padding: 7px;
  min-width: 0;
  text-align: left;
}
.tv-media-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 7px;
}
.tv-media-card > span:last-of-type {
  font-size: 11px;
  font-weight: 700;
  overflow-wrap: anywhere;
  padding: 0 2px 3px;
}
.tv-media-card small {
  color: var(--cyan);
  font-size: 9px;
}
.tv-video-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  color: var(--pink);
  font-size: 30px;
  background: radial-gradient(circle, #ff2bd622, transparent);
}
.tv-detail-image {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}
.tv-management > summary {
  cursor: pointer;
  color: var(--cyan);
  font-weight: 800;
  font-size: 14px;
}
.tv-management form {
  padding-bottom: 14px;
  border-bottom: 1px solid #ffffff22;
}
.tv-admin-list {
  max-height: 290px;
  overflow: auto;
  margin-top: 12px;
}
.tv-admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid #ffffff15;
  font-size: 11px;
}
.tv-admin-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.tv-admin-row small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
#tvDetailTitle {
  font-size: 17px;
  overflow-wrap: anywhere;
  margin: 0 12px 12px 0;
}
#tvMediaDialog {
  max-width: 650px;
}
.tv-page .panel > p:last-child {
  margin-bottom: 0;
}
