.channels-section {
    padding-top: 35px;
    padding-bottom: 100px
}

.channel-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line)
}

.channel-count {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 11px;
    color: var(--text);
    font-weight: 700
}

.channel-count>span:last-child {
    font-weight: 400;
    color: #81848b
}

.channel-sort-label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #92959c;
    font-size: 11px
}

.channel-sort-label>i {
    color: var(--gold)
}

.channel-sort {
    max-width: 100%;
    padding: 8px 30px 8px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #202329;
    color: var(--text);
    font: 500 11px var(--body);
    cursor: pointer;
    outline: none
}

.channel-sort:focus {
    border-color: #d8b66b99
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px
}

.channel-card {
    min-width: 0;
    overflow: hidden;
    background: linear-gradient(145deg, #23262c, #1e2025);
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: transform .3s, border-color .3s, box-shadow .3s;
    display: flex;
    flex-direction: column
}

.channel-card:hover {
    transform: translateY(-5px);
    border-color: #d8b66b55;
    box-shadow: 0 18px 40px #0002
}

.channel-banner {
    height: 125px;
    position: relative;
    background: linear-gradient(125deg, #3a3325, #25272d 58%, #34302a);
    overflow: hidden;
    background-size: auto, 250% auto;
    background-position: center, center
}

.channel-banner:before {
    content: "";
    position: absolute;
    width: 220px;
    height: 120px;
    right: -40px;
    top: -60px;
    border: 1px solid #e4c57c33;
    border-radius: 50%;
    transform: rotate(-22deg);
    box-shadow: 0 0 0 18px #d8b66b08, 0 0 0 40px #d8b66b05
}

.channel-avatar {
    position: absolute;
    width: 58px;
    height: 58px;
    top: 10px;
    left: 12px;
    z-index: 2;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid #22242a;
    background: #303238;
    box-shadow: 0 4px 18px #0004
}

.channel-avatar-fallback {
    display: grid;
    place-items: center;
    font: 800 20px var(--display);
    color: var(--gold);
    background: linear-gradient(135deg, #3c3527, #24262b)
}

.channel-content {
    padding: 21px 20px 18px;
    display: flex;
    flex-direction: column;
    flex: 1
}

.channel-name {
    font: 700 17px/1.3 var(--display);
    letter-spacing: -.025em;
    margin: 0 0 7px
}

.channel-description {
    font-size: 11px;
    line-height: 1.75;
    color: #a0a3a9;
    min-height: 58px;
    margin: 0 0 17px
}

.channel-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 13px 0;
    margin-bottom: 16px
}

.metric-label {
    font-size: 9px;
    color: #858992;
    display: flex;
    align-items: center;
    gap: 5px
}

.metric-label i {
    color: var(--gold)
}

.metric-value {
    font: 700 16px var(--display);
    margin-top: 3px
}

.channel-actions {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 8px;
    margin-top: auto
}

.channel-button {
    min-height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    transition: all .2s;
    padding: 8px 5px;
    text-align: center
}

.channel-button-outline {
    border: 1px solid #ffffff20;
    color: #d6d7d9
}

.channel-button-outline:hover {
    border-color: #d8b66b80;
    color: var(--gold-light);
    background: #d8b66b09
}

.channel-button-gold {
    background: var(--gold);
    color: #1c1b18
}

.channel-button-gold:hover {
    background: var(--gold-light);
    transform: translateY(-2px)
}

.channel-empty {
    grid-column: 1/-1;
    padding: 35px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 12px
}

.skeleton-card {
    min-height: 300px
}

.skeleton-banner {
    height: 125px;
    background: linear-gradient(90deg, #25272d, #33302a, #25272d);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite
}

.skeleton-content {
    padding: 25px;
    color: #858992;
    font-size: 12px
}

@keyframes shimmer {
    to {
        background-position: -200% 0
    }
}

.channel-card {
    transform-style: preserve-3d;
    will-change: transform
}

.channel-banner {
    background-color: #292a2d
}

.channel-banner:before {
    transition: transform .65s ease, opacity .4s
}

.channel-card:hover .channel-banner:before {
    transform: rotate(-12deg) scale(1.12);
    opacity: .9
}

.channel-avatar {
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s
}

.channel-name {
    transition: color .25s
}

.channel-card:hover .channel-name {
    color: var(--gold-light)
}

.channel-metrics {
    transition: border-color .25s
}

.channel-card:hover .channel-metrics {
    border-color: #d8b66b27
}

@media(max-width:650px) {
    .channel-sort-label {
        width: 100%;
        justify-content: space-between
    }

    .channel-sort {
        flex: 1;
        max-width: 72%
    }
}