@import url("/assets/style/base.css");
@import url("/assets/style/placeholder.css");

table {
    width: 50%;
    margin: 20px auto;
    border-collapse: collapse;
}

th,
td {
    padding: 10px;
    text-align: center;
    border: 1px solid var(--ctp-mocha-crust);
}

th {
    color: var(--ctp-mocha-base);
    background-color: var(--ctp-mocha-pink);
}

tr:nth-child(even) {
    background-color: var(--ctp-mocha-pink);
}

.hidden {
    display: none;
}

/* video stuff */
.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
}

.video-item {
    background-color: var(--ctp-mocha-surface1);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(var(--ctp-mocha-crust), 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.video-item.tile-view {
    min-height: 278px;
    max-height: 278px;
}

.video-item:hover {
    transform: scale(1.05);
}

.transparent-placeholder {
    background-color: transparent;
    cursor: default;
}

.video-thumbnail {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--ctp-mocha-text);
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.video-owner {
    transition: color 0.2s ease;
}

.video-owner:hover {
    color: var(--ctp-mocha-pink);
}

.list-view .video-item:hover {
    transform: scale(1.02);
}

.list-view .video-title {
    text-align: left;
}

.list-view {
    display: flex;
    flex-direction: column;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 10px;
}

.list-item .video-thumbnail {
    width: 120px;
    height: auto;
    border-radius: 5px;
    max-height: 75px;
    min-height: 75px;
}

.video-description {
    font-size: 14px;
    text-align: left;
    color: var(--ctp-mocha-subtext0);
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

#header-controls {
    position: relative;
}

.toggle-view {
    padding: 16px;
    background-color: var(--ctp-mocha-surface1);
    background-image: url(/assets/media/list-tile.png);
    background-repeat: no-repeat;
    background-size: cover;
    border: none;
    margin-bottom: 20px;
    border-radius: 5px;
    position: absolute;
    top: 5px;
    right: 20px;
    box-shadow: 0 4px 6px rgba(var(--ctp-mocha-crust), 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.toggle-view:hover {
    transform: scale(1.1);
}

.placeholder {
    background-color: var(--ctp-mocha-surface1);
    cursor: default;
}

.placeholder-thumbnail {
    width: 100%;
    height: 170px;
    background-color: var(--ctp-mocha-surface1);
}

.placeholder-title {
    height: 20px;
    margin: 15px;
    background-color: var(--ctp-mocha-surface1);
    border-radius: 4px;
}

.logout {
    cursor: pointer;
}