
/* Direct Access Protection UI Layer */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,700;1,400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lora', serif;
}

body {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glassmorphism Classes */
.glass-nav {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #00f2fe;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}
.logo span {
    font-size: 14px;
    color: #ccc;
    font-weight: normal;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-size: 16px;
    transition: 0.3s ease;
    padding: 8px 15px;
    border-radius: 20px;
}
.nav-links a:hover, .nav-links a.active {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.glass-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.main-content {
    flex: 1;
    padding: 40px;
    display: flex;
    justify-content: center;
}

/* Iframe */
.iframe-container {
    width: 100%;
    max-width: 1200px;
    height: 75vh;
    padding: 0;
    overflow: hidden;
}
.iframe-container iframe {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

/* Watch Layout */
.watch-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.player-section {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

#videoContainer {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

video, #iframePlayer {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overaly CSS */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://i.postimg.cc/QM7V8VhK/20260607-002929.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none; /* User can't select or click */
    user-select: none;
    -webkit-user-drag: none;
    z-index: 10;
    opacity: 0.8;
}

.fullscreen-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 15px;
    border-radius: 10px;
    cursor: pointer;
    z-index: 20; /* Above overlay so it can be clicked */
    transition: 0.3s;
}
.fullscreen-btn:hover { background: rgba(255,255,255,0.4); }

.channel-list-section {
    max-height: 80vh;
    overflow-y: auto;
}
.channel-list-section h3 {
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
}

.channel-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.channel-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: 0.3s;
}
.channel-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}
.channel-card img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

/* Admin Form */
.admin-layout { align-items: center; }
.form-container { width: 100%; max-width: 500px; }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-size: 14px; }
.glass-input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: #fff;
    outline: none;
}
.glass-input:focus { border-color: #00f2fe; }
.glass-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 242, 254, 0.5);
    background: rgba(0, 242, 254, 0.2);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: 0.3s;
}
.glass-btn:hover { background: rgba(0, 242, 254, 0.4); }

.glass-footer {
    text-align: center;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 10px; }

@media (max-width: 768px) {
    .watch-layout { grid-template-columns: 1fr; }
    .nav-links { display: none; /* Can add hamburger menu later */ }
}
