.yt-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
}

/* 電腦版：維持 16:9，Shorts 影片左右會有黑邊 */
.yt-embed-holder {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    pointer-events: none;
}
.yt-embed-holder iframe {
    position: absolute;
    /* 放大 iframe 讓 Shorts chrome (藝人列/控制列) 被 overflow:hidden 裁切 */
    top: -22%;
    left: 0;
    width: 100%;
    height: 144%;
    border: none;
}
.controls {
  position: absolute;
  bottom: 20px;
  left: 2vw;
  /* transform: translateX(-50%); */
  display: flex;
  gap: 0px;
}
/* 預設黏在影片區塊底部；JS 判斷影片可見時才切換 fixed */
.yt-container > .ticketLinks {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}
.yt-container > .ticketLinks.is-fixed {
    position: fixed;
    bottom: 20px;
}
.control-button {
  padding: 10px 2vw;
  background-color: transparent;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-size: min(4vw, 26px);
}
.music{
	position: absolute;
	bottom: 20px;
	left: 20px;
	font-size: 19px;
	color: white;
}
.ticketLinks a {
    color: white;
}
.ticketLinksBtn{
	padding: 10px 2vw;
	background-color: #0e0e0e96;
	color: white;
	border: none;
	cursor: pointer;
	border-radius: 5px;
	font-size: min(3.5vw,25px);
}

/* 桌機大螢幕：限制最高高度（避免 16:9 超出螢幕） */
@media screen and (min-width: 1110px) {
    .yt-container {
        max-height: 90vh;
    }
}

/* 手機直式：容器撐滿全螢幕，iframe 以 cover 方式填滿 */
@media screen and (max-width: 768px) and (orientation: portrait) {
    .yt-container {
        height: 100vh;
        height: 100svh;
    }
    .yt-embed-holder {
        position: absolute;
        inset: 0;
        padding-bottom: 0;
        height: 100%;
    }
    .yt-embed-holder iframe {
        position: absolute;
        /* 手機版維持 width 100%，只做垂直裁切來隱藏 YouTube UI */
        top: -15%;
        left: 0;
        width: 100%;
        height: 130%;
        transform: none;
    }
    .yt-container > .ticketLinks {
        font-size: min(4vw, 20px);
    }
}

/* 手機橫式：全螢幕 */
@media screen and (max-width: 896px) and (orientation: landscape) {
    .yt-container {
        height: 100vh;
    }
}

@media screen and (max-width: 439px) and (orientation: portrait) {
    .yt-embed-holder iframe {
        top: -14%;
    }
    .yt-container{
		height: 93svh;
	}
}
@media screen and (max-width: 416px) and (orientation: portrait) {
    .yt-embed-holder iframe {
        top: -14%;
    }
    .yt-container{
		height: 84svh;
	}
}
@media screen and (max-width: 367px) and (orientation: portrait) {
    .yt-embed-holder iframe {
        top: -15%;
    }
    .yt-container{
		height: 73svh;
	}
}