* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f2f4f6;
    color: #20262d;
    font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select,
textarea {
    font: inherit;
}

.login-body {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 20px;
    background:
        linear-gradient(
            135deg,
            #1f262d,
            #46515b
        );
}

.login-card {
    width: min(410px, 100%);
    padding: 36px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.brand-mark {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    place-items: center;
    border-radius: 14px;
    background: #28323b;
    color: #ffffff;
    font-weight: 800;
}

.login-card h1 {
    margin: 0 0 7px;
}

.login-card > p {
    margin: 0 0 26px;
    color: #69737c;
}

.login-card form {
    display: grid;
    gap: 10px;
}

.login-card label {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
}

.login-card input {
    width: 100%;
    padding: 13px;
    border: 1px solid #ced5db;
    border-radius: 8px;
    outline: none;
}

.login-card input:focus {
    border-color: #45535f;
}

.login-card button {
    margin-top: 14px;
    padding: 13px;
    border: 0;
    border-radius: 8px;
    background: #28323b;
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
}

.login-card button:hover {
    background: #171e24;
}

.login-card small {
    display: block;
    margin-top: 22px;
    color: #899199;
    text-align: center;
}

.alert {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 7px;
    background: #fdeaea;
    color: #a43c3c;
    font-size: 14px;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    width: 250px;
    padding: 24px 18px;
    background: #252b31;
    color: #ffffff;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 28px;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #ffffff;
    color: #252b31;
    font-weight: 800;
}

.brand div:last-child {
    display: grid;
    gap: 3px;
}

.brand span {
    color: #aeb7bf;
    font-size: 12px;
}

.menu {
    display: grid;
    gap: 8px;
}

.menu-item {
    padding: 13px 14px;
    border-radius: 9px;
    color: #cbd2d8;
    text-decoration: none;
}

.menu-item:hover,
.menu-item.active {
    background: #343b43;
    color: #ffffff;
}

.sidebar-footer {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #3d454d;
}

.sidebar-footer > div:last-child {
    display: grid;
    gap: 3px;
}

.sidebar-footer span {
    color: #aeb7bf;
    font-size: 12px;
}

.user-avatar {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background: #4b5660;
    font-size: 13px;
    font-weight: 700;
}

.main-content {
    min-height: 100vh;
    margin-left: 250px;
    padding: 34px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 28px;
}

.topbar h1 {
    margin: 0 0 7px;
}

.topbar p {
    margin: 0;
    color: #6f7881;
}

.primary-button,
.secondary-button,
.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 17px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}

.primary-button {
    border: 0;
    background: #303a44;
    color: #ffffff;
}

.secondary-button {
    border: 1px solid #d8dee3;
    background: #ffffff;
    color: #20262d;
}

.danger-button {
    border: 0;
    background: #fdeaea;
    color: #a43c3c;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}

.summary-card {
    display: grid;
    gap: 7px;
    padding: 21px;
    border: 1px solid #dde3e8;
    border-radius: 13px;
    background: #ffffff;
}

.summary-card strong {
    font-size: 27px;
}

.summary-label,
.summary-card small {
    color: #6f7881;
}

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

.video-card {
    overflow: hidden;
    border: 1px solid #dde3e8;
    border-radius: 14px;
    background: #ffffff;
}

.thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.thumbnail-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #59646f, #313941);
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #252c32;
    text-decoration: none;
    font-size: 20px;
}

.video-info {
    padding: 17px;
}

.video-heading {
    display: flex;
    justify-content: space-between;
}

.status {
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.status.ready {
    background: #e5f5ec;
    color: #287d4f;
}

.video-info h2 {
    margin: 14px 0 8px;
    font-size: 17px;
}

.video-info p {
    min-height: 42px;
    margin: 0;
    color: #6f7881;
    font-size: 13px;
    line-height: 1.5;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 17px;
    padding-top: 14px;
    border-top: 1px solid #edf0f2;
    color: #6f7881;
    font-size: 12px;
}

.video-actions {
    display: flex;
    gap: 9px;
    margin-top: 15px;
}

.video-actions form {
    margin: 0;
}

.empty-library {
    padding: 60px 25px;
    border: 1px dashed #cbd2d8;
    border-radius: 14px;
    background: #ffffff;
    text-align: center;
}

.empty-library p {
    margin-bottom: 25px;
    color: #6f7881;
}

.empty-icon {
    margin-bottom: 14px;
    font-size: 38px;
}

@media (max-width: 1050px) {
    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .sidebar {
        position: static;
        width: 100%;
    }

    .sidebar-footer {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .summary-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }
}

.upload-card {
    max-width: 820px;
    padding: 28px;
    border: 1px solid #dde3e8;
    border-radius: 14px;
    background: #ffffff;
}

.upload-card form {
    display: grid;
    gap: 22px;
}

.form-group {
    display: grid;
    gap: 9px;
}

.form-group label {
    font-size: 14px;
    font-weight: 800;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px;
    border: 1px solid #ced5db;
    border-radius: 9px;
    background: #ffffff;
    color: #20262d;
    outline: none;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #45535f;
    box-shadow: 0 0 0 3px rgba(69, 83, 95, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.drop-zone {
    position: relative;
    display: grid;
    min-height: 230px;
    place-items: center;
    overflow: hidden;
    border: 2px dashed #c9d1d8;
    border-radius: 13px;
    background: #f8fafb;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.drop-zone:hover,
.drop-zone.dragging {
    border-color: #45535f;
    background: #eef2f5;
}

.drop-zone input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}

.drop-zone-content {
    display: grid;
    gap: 8px;
    padding: 25px;
    text-align: center;
}

.drop-zone-content span,
.drop-zone-content small {
    color: #6f7881;
}

.upload-icon {
    margin-bottom: 4px;
    font-size: 34px;
}

.selected-file {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 16px;
    border: 1px solid #dce2e7;
    border-radius: 9px;
    background: #f8fafb;
}

.selected-file span {
    color: #6f7881;
    font-size: 13px;
}

.upload-progress {
    display: grid;
    gap: 9px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #4f5962;
    font-size: 13px;
}

.progress-track {
    overflow: hidden;
    height: 11px;
    border-radius: 999px;
    background: #e4e9ed;
}

.progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #303a44;
    transition: width 0.15s linear;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 11px;
    padding-top: 5px;
}

.hidden {
    display: none;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

@media (max-width: 650px) {
    .upload-card {
        padding: 20px;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .form-actions a,
    .form-actions button {
        width: 100%;
    }
}
# watch vídeos
.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
    gap: 24px;
    align-items: start;
}

.player-panel,
.video-details-card {
    border: 1px solid #dde3e8;
    border-radius: 14px;
    background: #ffffff;
}

.player-panel {
    overflow: hidden;
    background: #000000;
}

.main-player {
    display: block;
    width: 100%;
    max-height: 74vh;
    background: #000000;
}

.video-details-card {
    padding: 24px;
}

.video-details-card h2 {
    margin: 16px 0 10px;
    font-size: 22px;
}

.video-description {
    margin: 0 0 22px;
    color: #6f7881;
    line-height: 1.6;
}

.video-details {
    display: grid;
    gap: 0;
    margin: 0;
}

.video-details > div {
    padding: 14px 0;
    border-top: 1px solid #edf0f2;
}

.video-details dt {
    margin-bottom: 5px;
    color: #6f7881;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.video-details dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 14px;
}

.watch-actions {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.watch-actions a,
.watch-actions button {
    width: 100%;
}

.watch-actions form {
    margin: 0;
}

@media (max-width: 980px) {
    .watch-layout {
        grid-template-columns: 1fr;
    }
}

# compartilhar
.share-button {
    min-height: 42px;
    padding: 0 17px;
    border: 0;
    border-radius: 8px;
    background: #e8edf1;
    color: #28323b;
    cursor: pointer;
    font-weight: 700;
}

.share-button:hover {
    background: #dce3e8;
}

.share-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 20px;
}

.share-modal.hidden {
    display: none;
}

.share-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 20, 24, 0.65);
}

.share-dialog {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    padding: 26px;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.share-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.share-header h2 {
    margin: 0 0 6px;
}

.share-header p {
    margin: 0;
    color: #6f7881;
}

.share-close {
    width: 39px;
    height: 39px;
    border: 0;
    border-radius: 8px;
    background: #f0f3f5;
    font-size: 24px;
}

.share-field {
    display: grid;
    gap: 9px;
    margin-top: 20px;
}

.share-field label {
    font-size: 13px;
    font-weight: 800;
}

.share-field input,
.share-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced5db;
    border-radius: 8px;
    background: #f8fafb;
    color: #20262d;
    resize: vertical;
}

.share-field small {
    color: #6f7881;
}

.copy-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.copy-row input,
.copy-row textarea {
    flex: 1;
}

.copy-message {
    min-height: 20px;
    margin: 16px 0 0;
    color: #287d4f;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 650px) {
    .copy-row {
        flex-direction: column;
    }

    .copy-row button {
        width: 100%;
    }
}
