/* =========================
   DIV DECORATIONS
========================= */

.ccdefault > * {
	background-color: #ccf;
	padding: 5px;
}
.ccsapattikoulu > * {
	background-color: #91e2b2;
	padding: 5px;
}
.ccaito > * {
	background-color: #a2adeb;
    background-image: url('/strip/aito.jpg');
    background-repeat: repeat;
	padding: 5px;
}
.ccspecial > * {
	background-color: #e2b291;
	padding: 5px;
}
.ccpienet > * {
	background-color: #afa;
	padding: 5px;
}
.cctre > * {
	background-color: #a2adeb;
  background-image: url('/strip/tre.png');
  background-repeat: no-repeat;
	background-size: 100%;
	padding: 5px;
}
.cctopila > * {
	background-color: #024699;
  background-image: url('/strip/topila.png');
	color: #eee;
  background-repeat: repeat-y;
	background-size: 100%;
	padding: 5px;
}
.cctopila h3 {
	color: #ddf;
}
.cctopila a {
    color: #ddf;
}
.cchope > * {
	background-color: rgb(34,34,34);
	color: rgb(244, 211, 49);
	padding: 5px;
}
.cchope a {
	color: #ddd;
	text-decoration: underline;
  text-decoration-color: #ddd;
}
.cclanut > * {
	background-color: rgb(255,88,86);
	color: #ddd;
	padding: 5px;
}
.cclanut a {
	color: #fff;
	text-decoration: underline;
  text-decoration-color: #ddd;
}
.cchki > * {
	background-color: #fff;
  background-image: url('/strip/hki.jpg');
  background-repeat: repeat-y;
	background-size: 100%;
	padding: 5px;
}
.ccolkkari > * {
	background-color: #add9d4;
	padding: 5px;
}
.ccbetel > * {
	background-color: #dfcab9;
  background-image: url('/strip/betel.jpg');
  background-repeat: repeat-y;
	background-size: 100%;
	padding: 5px;
}
.ccnyc19 > * {	
	background-color: #f4d29e;
  background-image: url('/strip/nyc19.jpg');
  background-repeat: repeat;
	padding: 5px;
}
.ccadv7 > * {	
	background-color: #111133;
  background-image: url('/strip/adv7.jpg');
  background-repeat: repeat;
	padding: 5px;
}
.ccsvenska > * {
	background-color: #a2adeb;
    background-image: url('/strip/svenska.png');
    background-repeat: repeat;
	background-size: 100%;
	padding: 5px;
}
.ccenglish > * {
	background-color: #a2adeb;
    background-image: url('/strip/english.png');
    background-repeat: repeat;
	background-size: 100%;
	padding: 5px;
}
.ccrussian > * {
	background-color: #a2adeb;
    background-image: url('/strip/russian.png');
    background-repeat: repeat;
	background-size: 100%;
	padding: 5px;
}

/* =========================
   CONTAINER LAYOUT
========================= */

.ytpp-container {
  max-width: 900px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

/* =========================
   PLAYER
========================= */

.ytpp-player-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: #000;
}

.ytpp-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: #000;
  min-height: 200px;
}

.ytpp-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.ytpp-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ytpp-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.ytpp-placeholder-text {
  position: absolute;
  font-size: 18px;
  font-weight: bold;
}

/* =========================
   INFO PANEL
========================= */

.ytpp-info {
  padding: 10px 0 20px 0;
}

.ytpp-info h3 {
  margin: 0 0 5px 0;
  font-size: 18px;
}

.ytpp-info p {
  margin: 0 0 8px 0;
  color: #555;
}

.ytpp-info a {
  display: inline-block;
  margin-right: 10px;
  color: #1a73e8;
  text-decoration: none;
}

.ytpp-info a:hover {
  text-decoration: underline;
}

.ytpp-header-inner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ytpp-thumb {
  width: 120px;
  height: auto;
  border-radius: 6px;
}

.ytpp-header-text {
  min-width: 0;
}

.ytpp-header-text p {
  margin: 5px 0;
  font-size: 0.9em;
}

/* =========================
   ACTIVE PLAYLIST AREA
========================= */

.ytpp-current {
  margin-bottom: 20px;
}
.ytpp-playlist.active .ytpp-header {
  /* background: #f0f6ff; */
}

/* =========================
   PLAYLIST CONTAINER
========================= */

.ytpp-list {
  margin-top: 10px;
}

/* =========================
   PLAYLIST BOX (accordion)
========================= */

.ytpp-playlist {
  border: 1px solid #ddd;
  margin-bottom: 10px;
  border-radius: 6px;
  overflow: hidden;
  /* background: #fff; */
  transition: box-shadow 0.2s ease;
}

.ytpp-playlist.active {
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

/* =========================
   PLAYLIST HEADER
========================= */

.ytpp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  cursor: pointer;
  border: solid 4px rgba(0,0,0,0.1);
  border-radius: 4px;
  /* transition: background 0.2s ease; */
}

.ytpp-header:hover {
  border-color: rgba(0,0,0,0.2);
}

.cchope .ytpp-header {
  border: solid rgba(255,255,255,0.2);
}

.cchope .ytpp-header:hover {
  border-color: rgba(255,255,255,0.4);
}

.ytpp-header img {
  width: 150px;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

/* =========================
   PLAYLIST CONTENT (collapsed by default)
========================= */

.ytpp-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;

  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  padding: 0 10px;
}

/* expanded state */
.ytpp-playlist.active .ytpp-content {
  max-height: 2000px; /* large enough for playlists? */
  opacity: 1;
  padding: 10px;
}
/* =========================
   VIDEO ITEMS
========================= */

.ytpp-video {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: background 0.2s ease;
  min-width: 0;
}
.ytpp-video img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.ytpp-video div {
  font-size: 14px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ytpp-video:hover {
  background: #f2f2f2;
  transform: translateY(-2px);
}

.cchope .ytpp-video:hover, .cclanut .ytpp-video:hover, .cctopila .ytpp-video:hover {
  color: #222;
}

/* =========================
   ACTIVE VIDEO
========================= */

.ytpp-video.active {
  background: #dfefff;
  border-left: 3px solid #1a73e8;
}

/* =========================
   LOAD MORE BUTTON
========================= */

.ytpp-controls {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.1);
  grid-column: 1 / -1;
}

/* Push NEXT / LOAD MORE to the right */
.ytpp-next {
  margin-left: auto;
}

/* Keep PREV on the left (default) */
.ytpp-prev {
  margin-right: auto;
}

.ytpp-controls button {
  padding: 6px 12px;
  cursor: pointer;
  border: 1px solid #ccc;
  background: #f5f5f5;
  border-radius: 4px;
  color: #000;
}

.ytpp-controls button:hover {
  background: #eaeaea;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 480px) {
  .ytpp-header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;

    width: 100%;
    justify-content: center;
  }

  .ytpp-header {
    justify-content: center;
  }

  .ytpp-thumb {
    width: 100%;
    max-width: 200px;
  }

  .ytpp-header img,
  .ytpp-video img {
    width: 100%;
    height: auto;
  }

  .ytpp-video {
    flex-direction: column;
  }
	
  .ytpp-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .ytpp-controls button {
    font-size: 0.75rem;
  }
}