	  .nav-bar { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; padding: 12px; background: #04101a; -webkit-flex-shrink: 0; flex-shrink: 0; }
	  .nav-group-left { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
	  .nav-group-right { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; margin-left: auto; -webkit-justify-content: flex-end; justify-content: flex-end;}
	  #search-container { margin-left: 20px; max-width: 250px; }

	  #content-area { 
		  -webkit-flex-grow: 1; 
		  flex-grow: 1; 
		  overflow-y: auto; 
		  padding: 12px;
		  position: relative;
	  }
	  #content-area::-webkit-scrollbar {
		  display: none;
	  }
	  
	  #detail-container {
		  display: none; 
	  }
	  #streams {
			position: relative;  /* QUAN TRỌNG: bỏ absolute */
			top: auto;
			left: auto;
			right: auto;
			width: 90%;
			height: 317px;
			overflow-y: auto;
			overflow-x: hidden;
			padding: 0 12px;
			box-sizing: border-box;
			-webkit-transition: all 0.2s ease-in-out;
			transition: all 0.2s ease-in-out;
		}
		#streams::-webkit-scrollbar {
			display: none;
		}

	  #detailTitle {
		height: auto; 
		min-height: 100px;
		margin-bottom: 15px;
		display: -webkit-flex;
		display: flex;
		-webkit-align-items: center;
		align-items: center;
		-webkit-justify-content: flex-start;
		justify-content: flex-start;
	  }
	  #detailTitle img { width: 100%; max-height: 150px; object-fit: contain; } 
	  #detailTitle.text-title { font-size: 26px; height: auto; -webkit-align-items: flex-start; align-items: flex-start; font-weight: bold; }
	  
		#detailSubtitle {
			font-size: 22px;
			font-weight: bold;
			font-style: italic;
			color: #fff;
			text-align: left;
			margin: 35px 0 15px 0;
			line-height: 1.2;
		}
	  
	  /* === BẮT ĐẦU ĐIỀU CHỈNH: Áp dụng cơ chế cuộn cho Episode Overview === */

	/* 1. Biến #detailPlot thành khung chứa */
	#detailPlot {
		font-size: 20px;
		line-height: 1.4;
		color: #ccc;
		margin-top: 15px;
		margin-bottom: 15px;
		text-align: justify;

		/* Giới hạn chiều cao tương đương 3 dòng text (1.4 * 3 = 4.2em) */
		max-height: 4.2em; 
		overflow: hidden; /* Quan trọng: Ẩn phần nội dung bị tràn */
		
		/* Bỏ các thuộc tính cũ */
		display: block;
		-webkit-line-clamp: unset;
		-webkit-box-orient: unset;
		text-overflow: unset;
	}

	/* 2. Tạo style cho nội dung cuộn bên trong (mới) */
	.plot-scroller {
		transition: transform 1s linear;
		transform: translateY(0);
	}

	/* === KẾT THÚC ĐIỀU CHỈNH === */

	#detailPlot::-webkit-scrollbar {
		display: none; /* Ẩn thanh cuộn cho đẹp */
	}
	
	  #detailMeta { color: #ddd; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: center; align-items: center; margin-top: 10px; margin-bottom: 20px; font-size: 20px; -webkit-justify-content: flex-start; justify-content: flex-start; width: 100%; } 

	  .meta-item {
		  background: transparent;
		  padding: 0;
		  border-radius: 0;
		  color: #ddd;
		  margin-right: 20px; 
		  font-weight: 600;
	  }
	  .meta-item.rating {
		  background: #e6b91e;
		  color: #000;
		  font-weight: 900;
		  padding: 2px 6px;
		  border-radius: 0; 
	  }

	  
	  .right-actions {
			display: -webkit-flex;
			display: flex;
			-webkit-align-items: center;
			align-items: center;
		}
	  .right-actions > .btn + .btn { margin-left: 0px; }
	  #btnStreams { display: none; }
	  .right-actions .btn.active {
		color: #14f195 !important;
		}
		#btnFavorite {
		margin-left: auto;
		}
	  .focusable:focus{outline:none}
	.focus {
		outline: 4px solid #14f195 !important;
		-webkit-box-shadow: none !important;
		box-shadow: none !important;
		-webkit-transform: scale(1) !important;
		transform: scale(1) !important;
		position: relative;
		z-index: 2;
	}

	  #streams .focusable { 
		display: -webkit-flex; 
		display: flex; 
		-webkit-justify-content: space-between; 
		justify-content: space-between; 
		-webkit-align-items: center; 
		align-items: center; 
		padding: 9px; 
		margin-bottom: 14px; 
		border-radius: 0; 
		border: 4px solid transparent; 
		-webkit-transition: all 0.2s ease-in-out;
		transition: all 0.2s ease-in-out;
	  } 
	  #streams .focusable.focus {
		outline: none !important;
		border-color: #14f195 !important;
	  }
	  .stream-title { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-flex-grow: 1; flex-grow: 1; margin-right: 10px; }
	  .stream-meta { display: -webkit-flex; display: flex; font-size: 18px; color: #aaa; -webkit-flex-shrink: 0; flex-shrink: 0; }
	  .stream-meta span { display: inline-block; padding: 3px 6px; border-radius: 4px; margin-left: 6px; }
	  .meta-res { color: #14f195; font-weight: bold; }
	  .stream-loading { font-size:16px; color:#aaa; padding: 10px; }
	  
	  #debug{
		  position:fixed;
		  bottom:0;
		  left:0;
		  width:30%;
		  height:30vh;
		  overflow:auto;
		  background:rgba(0,0,0,0.85);
		  font-size:12px;
		  padding:6px;
		  display:none;
		  z-index:1000;
	  }
	  #debug::-webkit-scrollbar {
		  display: none;
	  }
	  
	  #loader {
		  position: fixed;
		  top: 0;
		  left: 0;
		  width: 100%;
		  height: 100%;
		  background: rgba(0, 0, 0, 0.7);
		  display: none;
		  -webkit-align-items: center;
		  align-items: center;
		  -webkit-justify-content: center;
		  justify-content: center;
		  z-index: 2000;
	  }
	  .spinner {
		  width: 60px;
		  height: 60px;
		  border: 5px solid #444;
		  border-top-color: #14f195;
		  border-radius: 50%;
		  -webkit-animation: spin 1s linear infinite;
		  animation: spin 1s linear infinite;
	  }
	  @-webkit-keyframes spin {
		  to { -webkit-transform: rotate(360deg); }
	  }
	  @keyframes spin {
		  to { transform: rotate(360deg); }
	  }

	  #popup-overlay {
		  position: fixed;
		  top: 0;
		  left: 0;
		  width: 100%;
		  height: 100%;
		  background: rgba(0, 0, 0, 0.8);
		  display: none;
		  -webkit-align-items: center;
		  align-items: center;
		  -webkit-justify-content: center;
		  justify-content: center;
		  z-index: 3000;
