/* Home (Live & YT) view styles */
.home-view { padding: 10px 8px; display: grid; gap: 12px; overflow-x: hidden; }
.live-section { padding: 7px; margin: 0; background: var(--background-white); border: none; border-radius: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.09), 0 1px 4px rgba(0,0,0,0.045); overflow: hidden; }
.notice-section { padding: 7px; margin: 0; background: var(--background-white); border: none; border-radius: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.09), 0 1px 4px rgba(0,0,0,0.045); overflow: hidden; }
.home-title { font-size: 1.1rem; margin: 0 4px; display: flex; align-items: center; gap: 8px; }
.live-brand { display: inline-flex; align-items: center; gap: 5px; border: none; border-radius: 8px; padding: 3px 0; background: transparent; }
.home-logo-wrap { display: inline-flex; align-items: center; justify-content: center; padding: 1px 2px; border-radius: 6px; background: #0f1115; }
body.dark-mode .home-logo-wrap { background: transparent; }
.home-logo { height: 18px; width: auto; display: inline-block; vertical-align: middle; }
.live-text { font-size: 1rem; font-weight: 700; color: var(--text-primary); letter-spacing: 0.5px; }
.icon-yt { vertical-align: -2px; display: inline-block; }
.live-status { color: var(--text-gray); font-size: 0.85rem; margin: 0 4px 8px; }
.live-status.ok { color: var(--text-gray); }
.live-status.empty { color: var(--text-gray); }
.live-status.error { color: #e74c3c; }

/* NOTICE carousel */
.notice-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.notice-carousel { position: relative; width: 100%; overflow: hidden; }
.notice-viewport { width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; scrollbar-width: none; max-width: 100%; overscroll-behavior-x: contain; padding: 0; }
.notice-viewport::-webkit-scrollbar { height: 0; }
.notice-track { display: flex; gap: 10px; padding: 0 8px 6px; align-items: stretch; }
.notice-item { flex: 0 0 calc(100% - 28px); max-width: calc(100% - 28px); scroll-snap-align: start; display: flex; }
@media (min-width: 1024px) { .notice-item { flex-basis: calc((100% - 13px) / 2.3); max-width: calc((100% - 13px) / 2.3); } }

/* 카드 */
.notice-link { display: block; text-decoration: none; color: inherit; }
.notice-card { width: 100%; min-width: 0; display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; border: 1px solid var(--border-gray); border-radius: 14px; padding: 8px 10px; background: var(--background-white); box-shadow: 0 2px 10px rgba(0,0,0,0.04); transition: box-shadow 0.2s ease, border-color 0.2s ease; height: 100%; min-height: 76px; position: relative; }
@media (min-width: 768px) { .notice-card { min-height: 76px; } }
.notice-card:hover { border-color: var(--main-purple); box-shadow: 0 0 0 2px rgba(133,114,238,0.10) inset, 0 8px 20px rgba(133,114,238,0.35); }
.notice-card.has-thumb { grid-template-columns: 44px 1fr 64px; }
.notice-thumb-right { width: 64px; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #111; position: relative; }
@media (min-width: 768px) { .notice-card.has-thumb { grid-template-columns: 44px 1fr 64px; } .notice-thumb-right { width: 64px; } }
.notice-thumb-right img { width: 100%; height: 100%; object-fit: cover; display: block; }
.notice-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; }
.notice-top { font-size: 0.8rem; color: var(--text-gray); display: flex; align-items: center; gap: 6px; }
.notice-top .dot, .notice-stats .sep { color: var(--text-gray); }
.notice-new-badge { display: inline-flex; align-items: center; margin-left: 0; padding: 1px 3px; font-size: 0.62rem; font-weight: 700; color: #ffffff; background: #2ecc71; border-radius: 3px; line-height: 1; letter-spacing: 0.15px; box-shadow: 0 1px 2px rgba(0,0,0,0.12); }
.notice-nick { color: var(--text-primary); font-weight: 600; }
.notice-title { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; word-break: break-word; line-height: 1.15; margin-top: 2px; }
.notice-stats { margin-top: 4px; font-size: 0.8rem; color: var(--text-gray); display: flex; align-items: center; gap: 9px; }
.notice-stats .stat { display: inline-flex; align-items: center; gap: 4px; }

/* 사이드 화살표(데스크톱에서 섹션 호버 시만 표시) */
.notice-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--border-gray); background: var(--background-white); color: var(--text-gray); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.15); opacity: 0; pointer-events: none; transition: opacity 0.15s ease; }
.notice-section:hover .notice-arrow { opacity: 0.92; pointer-events: auto; }
.notice-arrow:hover { color: var(--text-primary); background: var(--purple-hover); }
.notice-arrow.prev { left: 6px; }
.notice-arrow.next { right: 6px; }
@media (max-width: 1023px) { .notice-arrow { display: none; } }
.live-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .live-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.live-card { }
.live-card .live-link { display: block; text-decoration: none; color: inherit; border: 1px solid var(--border-gray); border-radius: 10px; overflow: hidden; background: var(--background-white); box-shadow: 0 1px 0 rgba(0,0,0,0.02); transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.live-card .live-link:hover { border-color: var(--main-purple); box-shadow: 0 0 0 2px rgba(133,114,238,0.10) inset, 0 8px 20px rgba(133,114,238,0.35); }
.thumb-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #111; }
.thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.live-card.reveal { animation: fadeUp 0.28s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.yt-section { margin: 0; padding: 7px; background: var(--background-white); border: none; border-radius: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.09), 0 1px 4px rgba(0,0,0,0.045); }
.yt-section { overflow: hidden; }
.yt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.yt-more-wrap { display: flex; justify-content: center; }
.yt-more { font-size: 0.85rem; color: var(--text-gray); background: transparent; border: none; cursor: pointer; padding: 6px 10px; border-radius: 6px; margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; }
.yt-more:hover { color: var(--text-primary); background: var(--purple-hover); }
 .yt-more:active { transform: translateY(1px); }
 .yt-section .live-info { min-height: 56px; }
 /* Hide viewer badge in YouTube section */
 .yt-section .viewer-badge { display: none !important; }
 .live-info { padding: 8px 10px 10px; display: flex; gap: 10px; align-items: flex-start; min-height: 72px; }
 .live-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 40px; }
 .live-texts { flex: 1 1 auto; min-width: 0; }
 .live-name { font-size: 0.85rem; color: var(--text-primary); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
 .live-title { font-size: 0.95rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; word-break: break-word; height: 2.4em; line-height: 1.2; }
 .live-meta { margin-top: 6px; font-size: 0.8rem; color: var(--text-gray); }

/* Dark mode shadows */
body.dark-mode .notice-section,
body.dark-mode .live-section,
body.dark-mode .yt-section {
  box-shadow: 0 7px 19px rgba(0, 0, 0, 0.575), 0 2px 8px rgba(0, 0, 0, 0.375);
}

/* VODS carousel sizing ~2.2 items mobile, ~3.3 items desktop */
.vods-section .notice-item { flex: 0 0 calc(100% / 2.2); max-width: calc(100% / 2.2); }
@media (min-width: 1024px) { .vods-section .notice-item { flex-basis: calc(100% / 3.3); max-width: calc(100% / 3.3); } }
.vods-section .live-card { width: 100%; }
.vods-section .live-info { min-height: 56px; }

/* VODS duration badge on thumbnail */
.vods-section .thumb-wrap { position: relative; }
.vods-section .duration-badge { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,0.72); color: #fff; border-radius: 4px; padding: 2px 6px; font-size: 0.78rem; font-weight: 700; line-height: 1; box-shadow: 0 1px 2px rgba(0,0,0,0.25); }
.vods-section .duration-badge span { display: inline-block; transform: translateY(1px); }

/* SHORTS carousel (like VODS) */
.shorts-section .notice-item { flex: 0 0 calc(100% / 3.2); max-width: calc(100% / 3.2); }
@media (min-width: 1024px) { .shorts-section .notice-item { flex-basis: calc(100% / 4.3); max-width: calc(100% / 4.3); } }
.shorts-section .live-card { width: 100%; }
.shorts-section .live-info { min-height: 56px; }
/* Shorts vertical aspect ratio */
.shorts-section .thumb-wrap { position: relative; aspect-ratio: 9/16; background: #111; }
/* Shorts duration badge */
.shorts-section .duration-badge { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,0.72); color: #fff; border-radius: 4px; padding: 2px 6px; font-size: 0.78rem; font-weight: 700; line-height: 1; box-shadow: 0 1px 2px rgba(0,0,0,0.25); }
.shorts-section .duration-badge span { display: inline-block; transform: translateY(1px); }

/* Shorts title badge overlay */
.shorts-section .shorts-title-badge { position: absolute; left: 6px; right: 6px; bottom: 6px; background: transparent; color: #fff; border-radius: 0; padding: 2px 0; font-size: 0.72rem; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0,0,0,0.8), 0 0 8px rgba(0,0,0,0.6); text-align: center; }
@media (min-width: 1024px) { .shorts-section .shorts-title-badge { font-size: 0.82rem; } }
.shorts-section .shorts-title-badge span { display: inline-block; transform: translateY(1px); }
