
body{
    margin:0;
    font-family:Arial,Helvetica,sans-serif;
    background:#f4f6f9;
}

.container{
    max-width:1200px;
    margin:30px auto;
    padding:20px;
}

.page-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.page-header h1{
    margin:0;
}

#btnAddChannel{
    padding:10px 18px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    font-weight:bold;
}

.channel-card{
    background:#fff;
    border-radius:10px;
    padding:18px;
    margin-bottom:16px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.channel-title{
    font-size:20px;
    font-weight:bold;
    margin-bottom:10px;
}

.channel-info{
    line-height:1.8;
}

.channel-actions{
    margin-top:15px;
}

.channel-actions button{
    margin-right:10px;
    padding:8px 14px;
    border:none;
    border-radius:6px;
    cursor:pointer;
}

.modal-content{
    width:420px;
    background:#fff;
    margin:120px auto;
    padding:25px;
    border-radius:10px;
}

.modal-content input{
    width:100%;
    padding:10px;
    margin:10px 0 20px;
    box-sizing:border-box;
}

.modal-buttons{
    display:flex;
    justify-content:flex-end;
    gap:10px;
}

.modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    justify-content:center;
    align-items:center;
}

.status{
    background:#28a745;
    color:#fff;
    padding:5px 12px;
    border-radius:20px;
    font-size:12px;
    font-weight:bold;
}

.btn{
    padding:8px 15px;
    border-radius:6px;
    text-decoration:none;
    color:#fff;
}

.btn-primary{
    background:#0d6efd;
}

.btn-warning{
    background:#ffc107;
    color:#000;
}

.btn-danger{
    background:#dc3545;
}

.btn-success{
    background:#198754;
}

.btn-secondary{
    background:#6c757d;
}

/* =========================================
   Channel Grid
========================================= */

.channel-grid{

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(300px,1fr));

    gap:20px;

    align-items:start;

}

/* =========================================
   Card
========================================= */

.channel-card{

    display:flex;

    flex-direction:column;

    justify-content:space-between;

    height:100%;

    border-radius:16px;

    padding:20px;

    border:1px solid #e9ecef;

    box-shadow:0 2px 10px rgba(0,0,0,.08);

    transition:.25s;

}

.channel-card:hover{

    transform:translateY(-6px);

    box-shadow:0 12px 25px rgba(0,0,0,.15);

}

.channel-header{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    margin-bottom:18px;

}

.channel-body{

    margin-bottom:18px;

}

.channel-body div{

    font-size:15px;

}

.channel-footer{

    display:grid;

    gap:10px;

}

.status{

    border-radius:20px;

    padding:5px 12px;

    font-size:12px;

    font-weight:bold;

}

/* ===========================================
   GRID
=========================================== */

.channel-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
    gap:24px;
    margin-top:20px;
}


/* ===========================================
   CARD
=========================================== */

.channel-card{

    background:#fff;

    border-radius:18px;

    padding:22px;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    transition:.25s;

    display:flex;

    flex-direction:column;

    justify-content:space-between;

    min-height:250px;

}

.channel-card:hover{

    transform:translateY(-8px);

    box-shadow:0 20px 40px rgba(0,0,0,.15);

}


/* ===========================================
   HEADER
=========================================== */

.channel-top{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    margin-bottom:20px;

}

.channel-name{

    font-size:22px;

    font-weight:700;

    margin:0 0 8px 0;

}

.youtube-icon{

    font-size:42px;

    color:#ff0000;

}


/* ===========================================
   STATUS
=========================================== */

.status-badge{

    display:inline-flex;

    align-items:center;

    gap:8px;

    padding:6px 14px;

    border-radius:999px;

    background:#e9f9ef;

    color:#16a34a;

    font-weight:600;

    font-size:13px;

}

.status-badge i{

    font-size:10px;

}


/* ===========================================
   STATS
=========================================== */

.channel-stats{

    margin-top:auto;

}

.stat-item{

    display:flex;

    justify-content:space-between;

    margin:12px 0;

}

.stat-label{

    color:#666;

}

.stat-value{

    font-weight:700;

    font-size:18px;

}


/* ===========================================
   BUTTONS
=========================================== */

.channel-actions{

    display:flex;

    gap:12px;

    margin-top:24px;

}

.btn-action{

    flex:1;

    height:46px;

    border-radius:12px;

}

.btn-action i{

    font-size:18px;

}


/* ===========================================
   RESPONSIVE
=========================================== */

@media(max-width:992px){

.channel-grid{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:768px){

.channel-grid{

grid-template-columns:1fr;

}

}

.channel-name{
    font-size:20px;
    font-weight:700;
    margin-bottom:10px;

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.refresh-btn{
    background:#0ea5e9;
    border-color:#0ea5e9;
    color:#fff;
}

.refresh-btn:hover{
    background:#0284c7;
    border-color:#0284c7;
    color:#fff;
}