/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #0a0a0a;
    color: white;
    font-family: Inter, Arial, sans-serif;
}

/* APP LAYOUT */
.app-container {
    display: flex;
    height: 100vh;
}

/* LEFT */
.left-section {
    flex: 6;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* HEADER */
.player-header {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 12px 18px;
    border-radius: 16px;

    background: linear-gradient(135deg, rgba(255,0,0,.15), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.08);
}

.header-logo {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    padding: 4px;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(90deg, #fff, #ff3b3b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: .75rem;
    color: #aaa;
}

/* PLAYER */
.main-video-container {
    flex: 1;
    background: #111;
    border-radius: 16px;
    overflow: hidden;
}

.video-player {
    width: 100%;
    height: 100%;
}

/* INFO BAR */
.channel-detail-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.playing-now {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: #222;
}

.action-btns {
    display: flex;
    gap: 10px;
}

.btn-icon {
    background: #1c1c1c;
    border: 1px solid #333;
    color: white;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
}

/* RIGHT SIDEBAR */
.right-sidebar {
    flex: 3;
    background: #0f0f0f;
    border-left: 1px solid #222;
    overflow-y: auto;
}

.sidebar-content {
    padding: 20px;
}

/* TITLE */
.section-title {
    text-align: center;
    font-size: .9rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: red;
    margin: 8px auto;
    border-radius: 10px;
}

/* CATEGORY BUTTONS */
.category-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.cat-btn {
    background: #151515;
    color: #aaa;
    border: 1px solid #2a2a2a;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: .2s;
    font-weight: 600;
}

.cat-btn:hover {
    transform: translateY(-2px);
    background: #222;
    color: white;
}

.cat-btn.active {
    background: linear-gradient(135deg, #ff0000, #a80000);
    color: white;
    box-shadow: 0 0 15px rgba(255,0,0,.3);
}

/* CHANNEL GRID */
.sidebar-channel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.side-grid-item {
    cursor: pointer;
    text-align: center;
}

.side-logo-box {
    background: white;
    border-radius: 12px;
    padding: 5px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.side-name {
    font-size: .7rem;
    color: #888;
    margin-top: 5px;
}

/* MOBILE */
@media(max-width:900px) {
    .app-container {
        flex-direction: column;
    }

    .right-sidebar {
        border-left: none;
        border-top: 1px solid #222;
    }
}
