@charset "utf-8";
/* CSS Document */
<style>
/* GLOBAL */
html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
}
body {
	margin: 0;
	font-family: Arial, sans-serif;
	background: #000;
	color: #fff;
	overflow: hidden;
	user-select: none;
}
a {
    outline: none;
    border: none;
}

a:focus,
a:active {
    outline: none;
    border: none;
}
input {
    background: #111;
    border: 1px solid #444;
    color: #fff;
    padding: 6px;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
	margin-bottom: 12px;   /* line spacing */
}

/* HEADER */
.top-bar {
	align-items: center;
	justify-content: space-between;
	padding: 0 15px;
	height: 60px;
	background: #111;
	border-bottom: 1px solid #222;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 2000;
	flex-wrap: nowrap;
}
/* TITLE */
.top-bar .title {
	font-weight: bold;
	letter-spacing: 2px;
	font-size: 20px;
	flex-basis: 5%;
	min-width: 40px;
	white-space: nowrap;
}
/* RIGHT SIDE BUTTONS */
.top-bar .right {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: flex-end;
	flex-basis: 95%;
	flex-wrap: nowrap;
}
/* BUTTONS */
.btn {
	background: #333;
	color: #fff;
	border: none;
	padding: 6px 10px;
	cursor: pointer;
	font-size: 13px;
	border-radius: 4px;
}
.btn:hover {
	background: #555;
}
.btn2 {
	background: #333;
	color: #fff;
	border: none;
	padding: 4px 10px;
	cursor: pointer;
	font-size: 20px;
	border-radius: 4px;
}
.btn2:hover {
	background: #555;
}
.btn3 {
	background:rgba(0,204,102,0.7);
	color: #fff;
	border: none;
	padding: 4px 10px;
	cursor: pointer;
	font-size: 14px;
	border-radius: 4px;
}
.btn3:hover {
	background:rgba(0,204,102,1);
}

/* PLAYER */
:root {
    --vh: 1vh;
}

/* Player container defaults to full width */
#playerContainer {
    width: 100%;
    height: calc(var(--vh) * 93);
    transition: width .25s ease, height .25s ease;
    position: relative;
}

/* MENU PANEL */
#menuOverlay {
    position: fixed;
    top: 60px;
    right: -320px; /* hidden off-screen */
    width: 320px;
    height: calc(var(--vh) * 100);
	padding: 0px;
    background: rgba(0,0,0,0.9);
    color: white;
	overflow: hidden;
    -webkit-overflow-scrolling: touch;
    transition: right .25s ease;
    z-index: 9999;
}

/* CHANNELS PANEL */
#channelsOverlay {
    position: fixed;
	top: 60px;
    right: -320px; /* hidden off-screen */
    width: 320px;
    height: calc(var(--vh) * 100);
    background: rgba(0,0,0,0.9);
    color: white;
	overflow: hidden;
    -webkit-overflow-scrolling: touch;
    transition: right .25s ease;
    z-index: 9999;
}

/* Slide-in states */
body.menu-open #menuOverlay {
    right: 0;
}
body.channels-open #channelsOverlay {
    right: 0;
}
body.admin-open #adminPanel {
    right: 0;
}
/* Player shrinks horizontally by 300px */
body.menu-open #playerContainer {
    width: calc(100% - 320px);
}
body.channels-open #playerContainer {
    width: calc(100% - 320px);
}
body.admin-open #playerContainer {
    width: calc(100% - 320px);
}
/* Prevent overlap */
body.menu-open #channelsOverlay {
    right: -320px;
}
body.channels-open #menuOverlay {
    right: -320px;
}
body.admin-open #adminPanel {
    right: 0px;
}

.channels-header {
	padding: 10px;
	border-bottom: 1px solid #333;
	font-weight: bold;
	font-size: 16px;
	width: 95%;
}
/* CHANNEL LIST */
.channels-list {
    position: absolute;
	flex: 1;
	top: 60px;
	overflow-y:auto;
	overflow-x:hidden;
	padding: 5px;
	width:95%;
	height: calc(100vh - 130px); /* correct height */
}
/* CHANNEL ITEM WRAPPER */
.channel-item {
    background: #111;
    border: 1px solid #333;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 6px;
    transition: background 0.2s, border-color 0.2s;
	width:275px;
}

/* Hover effect */
.channel-item:hover {
    background: #181818;
    border-color: #444;
}

/* CHANNEL NAME LINK */
.channelLink {
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.channelLink:hover {
    color: #28a745;
}

/* DRAG HANDLE */
.element-thumb {
    background: #222;
    border: 1px solid #444;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-right: 12px;
    transition: background 0.2s;
	cursor:pointer;
}

.element-thumb:hover {
    background: #333;
}

/* DELETE LINK */
.channel-actions a {
    color: #ffffff;
    font-size: 14px;
    margin-left: 15px;
    text-decoration: none;
}

.channel-actions a:hover {
    color: #ff7777;
}

/* EDIT FORM */
.channel-edit-form {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 12px;
    border-radius: 6px;
    margin-top: 10px;
}

/* INPUTS */
.channel-edit-form input[type="text"] {
    background: #111;
    border: 1px solid #444;
    color: #fff;
    padding: 6px;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.channel-edit-form input[type="text"]:focus {
    border-color: #28a745;
    outline: none;
}

/* CHECKBOX */
.channel-edit-form input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 6px;
	position:static;
}

/* SAVE BUTTON */
.channel-edit-form .btn {
    background: #28a745;
    border: none;
    padding: 8px 12px;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.channel-edit-form .btn:hover {
    background: #32c85a;
}

/* SAVE MESSAGE */
.saveMsg {
    font-size: 14px;
    color: #28a745;
    margin-top: 10px;
}
/* DELETE BUTTON AREA */
.channel-actions {
	display: inliine-table;
	float: right;
	align-items: center;
	gap: 10px;
}
.channel-actions a {
	color: #f55;
	font-size: 13px;
	text-decoration: none;
}
/* MOBILE FIXES */
@media (max-width: 600px) {
.channel-item {
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	padding: 10px 10;
}
.channel-actions {
	gap: 12px;
}
.channel-item a {
	font-size: 16px;
}
}
.channels-add {
	flex-shrink: 0;
	width: 275px;
	max-width: 90vw;
	bottom: 0;
	padding: 10px;
}
.channels-add input {
	width: 95%;
	margin-bottom: 6px;
	padding: 8px;
	border: 1px solid #444;
	background: #111;
	color: #fff;

	border-radius: 4px;
}
.channels-add button {
	background: #333;
	color: #fff;
	border: none;
	padding: 6px 10px;
	border-radius: 4px;
	cursor: pointer;
}
.channels-add button:hover {
	background: #555;
}
.channels-panel {
	width: 290px;
	max-width: 90vw;
	bottom: 0;
	padding: 10px;
}
.channel-header-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    z-index: 900;
}
.shuffleBox {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.shuffleBox input[type="checkbox"] {
    transform: translateY(5px);
}

.channel-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.channel-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.channel-edit-wrapper {
    margin-top: 10px;
}

/* Menu */
.menuOverlay {
	position: fixed;
	top: 60px;
	right: 0;
	bottom: 0;
	width: 320px;
	max-width: 90vw;
	background: rgba(10,10,10,0.95);
	border-left: 1px solid #333;
	transform: translateX(100%);
	transition: transform 0.3s ease;
	z-index: 2100;
	display: flex;
	flex-direction: column;
	height: calc(100vh - 60px); /* correct height */
	overflow-y:auto;
	overflow-x:hidden;
}

.menu-header {
	padding: 10px;
	border-bottom: 1px solid #333;
	font-weight: bold;
	font-size: 16px;
	width: 95%;
}
#menuList {
	overflow-y:auto;
	overflow-x:hidden;
	padding-top:7px;
	padding-left: 15px;
	width:95%;
	height: calc(100vh - 130px); /* correct height */
}
.menu-add {
	flex-shrink: 0;
	width: 290px;
	max-width: 90vw;
	bottom: 0;
	padding: 10px;
}

/* LOGIN PANEL */
.login-panel {
	position: fixed;
	top: 60px;
	left: 50%;
	transform: translateX(-50%);
	width: 300px;
	max-width: 90vw;
	background: rgba(10,10,10,0.95);
	border: 1px solid #333;
	padding: 15px;
	z-index: 1200;
	border-radius: 6px;
}
.login-panel input {
	width: 95%;
	margin-bottom: 8px;
	padding: 8px;
	border: 1px solid #444;
	background: #111;
	color: #fff;
	border-radius: 4px;
}
/* ADMIN PANEL */
#adminPanel {
    position: fixed;
    top: 60px;
    right: -320px; /* hidden off-screen */
    width: 320px;
    height: calc(var(--vh) * 100);
	padding: 0px;
    background: rgba(0,0,0,0.9);
    color: white;
	overflow: hidden;
    -webkit-overflow-scrolling: touch;
    transition: right .25s ease;
    z-index: 9999;
}

.admin-header {
	padding: 10px;
	border-bottom: 1px solid #333;
	font-weight: bold;
	font-size: 16px;
	width: 95%;
}
.admin-main {
	overflow-y:auto;
	overflow-x:hidden;
	padding-left: 15px;
	width:95%;
	height: calc(100vh - 130px); /* correct height */
}
.admin-panel input {
	width: 95%;
	margin-bottom: 6px;
	padding: 8px;
	border: 1px solid #444;
	background: #111;
	color: #fff;
	border-radius: 4px;
	line-height:normal;
}
.user-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	border-bottom: 1px solid #222;
	font-size: 14px;
}
.account-box {
	position: fixed;
	top: 60px;
	left: 50%;
	transform: translateX(-50%);
	max-width: 90%;
	min-width: 300px;
	height: calc(75vh - 60px); /* correct height */
	overflow: hidden;   /* vertical scroll */
	background: rgba(10,10,10,0.95);
	border: 1px solid #333;
	padding: 15px;
	z-index: 1200;
	border-radius: 6px;
}
.account-main {
	width: 98%;
	min-width: 300px;
	height: 480px; /* correct height */
	padding: 5px;
	overflow-y: auto;   /* vertical scroll */
	overflow-x: hidden; 
}
.about-panel {
	position: fixed;
	top: 60px;
	left: 50%;
	transform: translateX(-50%);
	width: 90%;
	max-width:700px;
	min-width: 320px;
	height: calc(100vh - 60px); /* correct height */
	overflow: hidden;   /* vertical scroll */
	background: rgba(10,10,10,0.95);
	border: 1px solid #333;
	padding: 10px;
	z-index: 1200;
	border-radius: 6px;
}
.about-header {
	margin-left: 10px;
	margin-right: 20px;
	border-bottom: 1px solid #333;
	font-weight: bold;
	font-size: 16px;
	width: 95%;
	height:40px;
	padding-top:10px;
	padding-bottom:10px;
}
.about-container {
	overflow-y:auto;
	overflow-x:hidden;
	padding-left: 10px;
	padding-right: 10px;
	width:94%;
	height: calc(96vh - 140px); /* correct height */
}

.signup-box {
	position: fixed;
	top: 60px;
	left: 50%;
	transform: translateX(-50%);
	width: 90%;
	max-width:700px;
	min-width: 320px;
	height: calc(100vh - 60px); /* correct height */
	overflow: hidden;   /* vertical scroll */
	background: rgba(10,10,10,0.95);
	border: 1px solid #333;
	padding: 10px;
	z-index: 1200;
	border-radius: 6px;
}
.signup-header {
	margin-left: 10px;
	margin-right: 20px;
	border-bottom: 1px solid #333;
	font-weight: bold;
	font-size: 16px;
	width: 95%;
	height:40px;
	padding-top:10px;
	padding-bottom:10px;
}
.signup-main {
	overflow-y:auto;
	overflow-x:hidden;
	padding-left: 10px;
	padding-right: 10px;
	width:94%;
	height: calc(96vh - 140px); /* correct height */
}

.signup-box input {
	width: 300px;
	margin-bottom: 8px;
	padding: 8px;
	border: 1px solid #444;
	background: #111;
	color: #fff;
	border-radius: 4px;
}
.error {
	color: #ff4444;
	margin-bottom: 10px;
}
.subscribe-btn {
    display:block;
	width: 300px;
    margin:20px auto 10px auto;
    padding:12px 20px;
    font-size:18px;
    font-weight:bold;
    background:#28a745;
    color:#fff;
    border:none;
    border-radius:6px;
    transition:opacity 0.3s, cursor 0.3s;
}

.subscribe-btn[disabled] {
    cursor:not-allowed;
    opacity:0.6;
}

.subscribe-btn:not([disabled]) {
    cursor:pointer;
    opacity:1;
}
#tv-wrapper {

	display: flex;
	gap: 20px;
}
#playlistList {
    margin-top: 5px;
    background: #111;
    color: white;
    padding: 10px;
    width: 270px;
    overflow: hidden;
    border-radius: 6px;
}

.playItem {
    display: flex;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #333;
}

.playItem:hover {
    background: #222;
}

.playItem.active {
    background: #444;
}

.playItem img {
	width: 120px;       /* fixed width */
    height: 67px;       /* fixed height */
    object-fit: cover;  /* crop instead of stretch */
    border-radius: 4px;
    flex-shrink: 0;     /* prevents squishing */
}

.playItemTitle {
    font-size: 14px;
    line-height: 1.3;
}

#playlistWrapper {
    max-height: 410px;
    overflow-y: auto;      /* ⭐ REQUIRED for scrolling */
    overflow-x: hidden;
	scroll-behavior: smooth;
}

#playlistWrapper.closed {
    display: none;
}

#togglePlaylistBtn {
    color: white;
    font-size: 16px;
	font-weight:500;
    cursor: pointer;
    text-align: left;
    border-radius: 4px;
	background: rgba(51,153,0,0.5);
    border: 1px solid #333;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    transition: background 0.2s, border-color 0.2s;
	width:295px;

}
#togglePlaylistBtn:hover {
	background: rgba(51,153,0,0.7);
}
#togglePlaylistBtn.open {
	background: rgba(51,153,0,1);
}

.panel {
    display: block;
}
.panel.open {
    display: block;
}
@keyframes fade-in {
    from {opacity: 0; transform: scale(0);}
    to {opacity: 1; transform: scale(1);}
}
@keyframes fade-out {
    from {opacity: 1; transform: scale(1);}
    to {opacity: 0; transform: scale(0);}
}
.fade-in-element {
    -webkit-animation: fade-in 2s; /* Safari, Chrome and Opera > 12.1 */
       -moz-animation: fade-in 2s; /* Firefox < 16 */
        -ms-animation: fade-in 2s; /* Internet Explorer */
         -o-animation: fade-in 2s; /* Opera < 12.1 */
            animation: fade-in 2s;
}
.fade-out-element {
    -webkit-animation: fade-out 2s; /* Safari, Chrome and Opera > 12.1 */
       -moz-animation: fade-out 2s; /* Firefox < 16 */
        -ms-animation: fade-out 2s; /* Internet Explorer */
         -o-animation: fade-out 2s; /* Opera < 12.1 */
            animation: fade-out 2s;
}
.run-animation {
    -webkit-animation: fadein 2s; /* Safari, Chrome and Opera > 12.1 */
       -moz-animation: fadein 2s; /* Firefox < 16 */
        -ms-animation: fadein 2s; /* Internet Explorer */
         -o-animation: fadein 2s; /* Opera < 12.1 */
            animation: fadein 2s;
}
.run-animation2 {
    -webkit-animation: fadeOut 2s; /* Safari, Chrome and Opera > 12.1 */
       -moz-animation: fadeOut 2s; /* Firefox < 16 */
        -ms-animation: fadeOut 2s; /* Internet Explorer */
         -o-animation: fadeOut 2s; /* Opera < 12.1 */
            animation: fadeOut 2s;
}
.run-animation3 {
    -webkit-animation: fadein 2s; /* Safari, Chrome and Opera > 12.1 */
       -moz-animation: fadein 2s; /* Firefox < 16 */
        -ms-animation: fadein 2s; /* Internet Explorer */
         -o-animation: fadein 2s; /* Opera < 12.1 */
            animation: fadein 2s;
}
.run-animation4 {
    -webkit-animation: fadeOut 2s; /* Safari, Chrome and Opera > 12.1 */
       -moz-animation: fadeOut 2s; /* Firefox < 16 */
        -ms-animation: fadeOut 2s; /* Internet Explorer */
         -o-animation: fadeOut 2s; /* Opera < 12.1 */
            animation: fadeOut 2s;
}
@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Internet Explorer */
@-ms-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Opera < 12.1 */
@-o-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}


@keyframes fadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* Firefox < 16 */
@-moz-keyframes fadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* Internet Explorer */
@-ms-keyframes fadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* Opera < 12.1 */
@-o-keyframes fadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.fullscreen {
    height: calc(var(--vh) * 100);
}
.userToggle input:checked {
    accent-color: #4caf50;
}
.userToggle input:not(:checked) {
    accent-color: #f44336;
}
.inactiveUserMessage {
    text-align: center;
    padding: 40px;
    color: white;
    background: #111;
    font-size: 20px;
}
/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 6px;
    border: 2px solid #111;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #444 #111;
}
.bigCheck {
    transform: scale(1.6);
    -webkit-transform: scale(1.6);
    margin-top: 12px; /* optional spacing */
}

#sortBox:hover {
    background:#444;
}

#sortBox:focus {
    border-color:#28a745;
    box-shadow:0 0 4px #28a745;
}
#userStartChannel {
    background:#333;
    color:#fff;
    padding:8px 12px;
    border:1px solid #555;
    border-radius:4px;
    font-size:14px;
    cursor:pointer;
    outline:none;
    transition:0.2s;
}

#userStartChannel:hover {
    background:#444;
}

#userStartChannel:focus {
    border-color:#28a745;
    box-shadow:0 0 4px #28a745;
}
.channel-actions-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.channel-toggle-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.channel-toggle-btn:hover {
    background: #444;
}
.deleteChannelBtn {
	background:rgba(255,0,0,1);
	color: #fff;
	border: none;
	padding: 8px 10px;
	cursor: pointer;
	font-size: 13px;
	border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, transform 0.15s;
}

.deleteChannelBtn:hover {
    background: #cc0000;
    transform: translateY(-1px);
}

.deleteChannelBtn:active {
    background: #990000;
    transform: translateY(0);
}
input[type="text"] {
    font-family: monospace;
}
.playlist-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.playlist-modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 500px;
    max-height: 70vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.playlist-modal-close {
    float: right;
    font-size: 28px;
    cursor: pointer;
}

.playlist-modal-content h2 {
    margin-top: 0;
}

.video-ok {
    color: green;
}

.video-blocked {
    color: red;
}
#userChannelSettingsMsg {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: #4caf50;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    margin-top: 10px;
	width:260px;
}
#domainSaveBtn {
	background:rgba(0,204,102,0.7);
	color: #fff;
	border: none;
	padding: 8px 12px;
	cursor: pointer;
	font-size: 14px;
	border-radius: 4px;
}
#domainSaveBtn:hover {
	background:rgba(0,204,102,1);
}
#domainSaveBtn:disabled {
    background: #888 !important;
    cursor: not-allowed;
    opacity: 0.7;
}


</style>

