body {
	width: 100dvw;
	height: 100dvh;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-rows: auto 1fr auto;
	grid-template-columns: 1fr;
	align-items: center;
	overflow: hidden;
}

/* Portrait par défaut */
.channel-bar { display: flex; gap: 10px; padding: 10px; justify-content: space-evenly; }
.channel-btn {
	border: 1px solid gray;
	border-radius: 9999px;
	padding: 3px 15px;
	cursor: pointer;
	position: relative;
	text-decoration: none;
}
.channel-btn:visited {
	color: inherit;
}
.channel-btn span {
	position: absolute;
	right: -5px;
	top: -5px;
	background-color: red;
	color: white;
	font-size: 0.8rem;
	border-radius: 10px;
	padding: 2px 4px 0px;s
}
.channel-btn:hover { background: #007bff; color: white; }
.channel-btn.active { background: #007bff;  color: white; }

.news-list { overflow-y: auto; height: 100%; }
.news-item { cursor: pointer; padding: 5px 10px; opacity: 0.7; }
.news-item.unread h3::before {
	content: ' ';
	border-radius: 20px;
	background-color: red;
	display: inline-block;
	width: 10px;
	height: 10px;
	margin: 0px 5px 2px 0px;
	opacity: 1;
}
.news-item:not(.selected):hover { background-color: #F4F4F4; opacity: 1; }
.news-item h3 { margin: 10px 0px 0px; }
.news-item p { margin: 0px 0px 10px; }
.news-item.selected { background: #e3f2fd; border-left: 10px solid #2196f3; opacity: 1; }

.player-zone { position: relative; aspect-ratio: 16/9; }
.player-zone iframe { position: absolute; width: 100%; height: 100%; }

/* Paysage (@media landscape) */
@media (orientation: landscape) {
	body {
		grid-template-rows: auto 1fr;
		grid-template-columns: 50% 50%;
	}
    .channel-bar { order: 1; }
    .news-list { order: 3; }
    .player-zone { order: 2; width: 100%; height: 100vh; grid-row: auto / span 2; }
}

.storage-warning {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff9800;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: opacity 0.5s ease;
    text-align: center;
    max-width: 90%;
}

.share-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0 5px;
    transition: transform 0.1s ease;
}
.share-btn:active {
    transform: scale(0.9);
}