.tabs-menu {
    display: flex;
    border-bottom: 2px solid #222;
    margin-bottom: 10px;
}
.tab-item-heading {
    padding: 12px 20px;
    cursor: pointer;
    background: #111;
    color: #ccc;
    font-weight: 600;
}
.tab-item-heading.active {
    background: #1e1e1e;
    color: #00adee;
    border-bottom: 2px solid #00adee;
}

.panel {
    display: none;
}
.panel.active {
    display: block;
}

.video-wrapper {
    position: relative;
    width: 97%;
    max-width: 100%;
    background: #000;
}
video, canvas {
    width: 100%;
    border-radius: 6px;
}
canvas {
    position: absolute;
    top: 0;
    left: 0;
}

.controls {
    margin-top: 10px;
    text-align: center;
}
.controls button {
    padding: 10px 15px;
    margin-right: 5px;
    background: #3c3c3c;
    border: none;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}
.controls button.stop {
    background: transparent;
    opacity: .7;
}
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 15185448843;
}
.modal.active {
    display: flex;
}
.modal-content {
    background: #111;
    padding: 15px;
    border-radius: 8px;
    width: 800px;
    max-width: 95%;
}
.modal video {
    width: 100%;
    border-radius: 6px;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}
.modal-actions button {
    margin-left: 8px;
    padding: 8px 14px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
}
.btn-download { background: #00adee; color: #fff; }
.btn-close { background: #444; color: #fff; }
.preview-ui {
    background: #0f0f0f;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0,0,0,.7);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #161616;
    border-bottom: 1px solid #222;
}
.preview-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}
.preview-meta {
    font-size: 12px;
    color: #888;
}
.preview-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 20px;
    cursor: pointer;
}
.preview-close:hover {
    color: #fff;
}

.preview-video-wrapper {
    background: #000;
}
.preview-video-wrapper video {
    width: 100%;
    max-height: 450px;
}

.preview-filename {
    padding: 14px 18px;
}
.preview-filename label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}
.preview-filename input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #111;
    color: #fff;
}

.preview-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 18px;
    background: #161616;
    border-top: 1px solid #222;
}

.btn-primary {
    background: #00adee;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}
.btn-primary:hover {
    background: #0099d6;
}

.btn-secondary {
    background: #2a2a2a;
    color: #ccc;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
}
.btn-secondary:hover {
    background: #3a3a3a;
}
.trim-controls {
    padding: 0 18px 12px;
    color: #aaa;
    font-size: 12px;
}
.trim-controls input {
    width: 100%;
}
button.is-live {
    position: relative;
    padding-left: 32px;
}

.record-circle:after {
    content: '';
    width: .8rem;
    height: .8rem;
    background: #fc3636;
    position: absolute;
    border-radius: 50%;
    top: 0;
    left: 0;
    opacity: .75;
    animation: recordingPulse 1.5s infinite;
    animation-timing-function: ease-out;
}

@keyframes recordingPulse {
    from {
        transform: scale3d(1,1,1);
        opacity: .75
    }

    75% {
        transform: scale3d(2,2,2);
        opacity: 0
    }

    to {
        transform: scale3d(2,2,2);
        opacity: 0
    }
}

.overlay{
    background-color: #323232;
    padding: 15px;
}

.overlay li {
    width: 100%;
    text-align: center;
    text-transform: uppercase;
}

.controls button:first-child {
    float:left;
}
.video-wrapper {
    position: relative;
    display: inline-block;
}

.volume-meter {
    position: absolute;
    top: 0px;
    right: -30px;
    width: 14px;
    height: calc(100% - 20px);
    background: #111;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px #333;
}

.volume-level {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(
        to top,
        #00ff00 0%,
        #ffff00 60%,
        #ff0000 100%
    );
    transition: height 0.05s linear;
}

.record-circle {
    width: .7rem;
    height: .7rem;
    border-radius: 2rem;
    background: #fc3636;
    display: inline-block;
    position: relative;
}