:root {
    --bg-0: #1A1A1A;
    --bg-1: #1E1E1E;
    --bg-2: #2A2A2A;
    --channel-width: 10em;
    --channel-height: 15em;
    --channel-border-radius: 0.5em;
}

body {
    margin: 0;
    display: flex;
    height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: rgb(221, 221, 221);
    user-select: none;
}

h2 {
    /*margin-block-start: 0;*/
    text-align: center;
}

p {
    text-align: center;
}

.section-main {
    flex: 1;
    background: var(--bg-1);
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.subsec-channels {
    flex: 1;
    background: var(--bg-1);
    /* padding: 3vh;
    padding-bottom: 0; */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.channels-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.channels-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
}

.channel {
    display: flex;
    width: var(--channel-width);
    height: var(--channel-height);
    border-radius: var(--channel-border-radius);
    margin: 1em;
    flex-direction: column;
    transition: transform 0.2s ease-in-out;
    flex-direction: column;
    position: relative;
}

.channel-top {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-top-left-radius: var(--channel-border-radius);
    border-top-right-radius: var(--channel-border-radius);
}

.channel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-user-drag: none;
}

.channel-bottom {
    flex: 0 0 auto;
    padding: 0.5em 0;
    text-align: center;
}

.channel-title {
    font-size: 0.8em;
    color: white;
    margin: 0;
}

.channel-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgb(0, 0, 0);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 16px;
    font-weight: bold;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

.channel:hover .channel-remove {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

.channel-remove:hover {
    background: #f55;
}

.remove-x {
    display: inline-block;
    transform: translateY(1px);
}

.add-channel {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px dashed rgb(100, 100, 100);
    background-color: var(--bg-2);
}

.channel:hover {
    transform: scale(1.08);
    cursor: grab;
}

.channel.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.subsec-slots {
    height: 350px;
    background: var(--bg-2);
    /* padding: 3vh; */
}

.slot {
    width: var(--channel-width);
    height: var(--channel-height);
    border-radius: var(--channel-border-radius);
    margin: 1em;
    flex-direction: column;
    background-color: var(--bg-1);
    position: relative;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.slot-dragover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(100, 150, 255, 0.5);
}

.slot-filled:hover .channel-remove {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

.slot-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    -webkit-user-drag: none;
}

.slot-preview[src]:not([src=""]) {
    display: block;
}

.slot-letter {
    color: var(--bg-2);
    font-size: 2em;
    position: absolute;
    top: 32%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.section-ads {
    width: 450px;
    background: var(--bg-0);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
}

.plus {
    font-size: 4em;
    font-weight: bold;
    margin-block-start: 0;
    margin-block-end: 0;
}

.plus-text {
    font-size: 1.2em;
    font-weight: bold;
    margin-block-start: 0;
}