.obs-mockup {
    position: absolute;
    right: 6%;
    top: 52%;
    transform: translateY(-50%) perspective(1200px) rotateY(-10deg) rotateX(3deg) scale(0.95);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    z-index: 5;
}

/* Main Window */
.obs-window {
    width: 680px;
    background: #1e1e2e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 40px rgba(99, 102, 241, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 11px;
    color: #cccccc;
}

/* macOS Title Bar */
.obs-titlebar {
    display: flex;
    align-items: center;
    height: 38px;
    background: linear-gradient(180deg, #2d2d3a 0%, #252530 100%);
    padding: 0 12px;
    border-bottom: 1px solid #1a1a24;
    gap: 12px;
}

/* Traffic Light Buttons (macOS) */
.obs-titlebar-controls {
    display: flex;
    gap: 8px;
    order: -1;
}

.obs-titlebar-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
}

.obs-titlebar-btn--close {
    background: #ff5f57;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.obs-titlebar-btn--min {
    background: #febc2e;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.obs-titlebar-btn--max {
    background: #28c840;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* OBS Icon in title bar */
.obs-titlebar-icon {
    width: 18px;
    height: 18px;
    margin-left: 4px;
}

.obs-titlebar-icon svg {
    width: 100%;
    height: 100%;
    fill: #888888;
}

.obs-titlebar-text {
    font-size: 13px;
    font-weight: 500;
    color: #888888;
    flex: 1;
}

/* Menu Bar */
.obs-menubar {
    display: flex;
    gap: 0;
    height: 28px;
    background: #2d2d3a;
    border-bottom: 1px solid #1a1a24;
    padding: 0 8px;
    position: relative;
    z-index: 100;
}

/* Menu Wrapper for Dropdown */
.obs-menu-wrapper {
    position: relative;
}

.obs-menu-item {
    display: block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #aaaaaa;
    cursor: pointer;
    transition: all 0.15s;
}

.obs-menu-wrapper:hover .obs-menu-item {
    background: rgba(99, 102, 241, 0.2);
    color: #ffffff;
}

/* Dropdown Menu */
.obs-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #252530;
    border: 1px solid #3d3d4a;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    z-index: 200;
}

.obs-menu-wrapper:hover .obs-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Menu Links */
.obs-menu-link {
    display: block;
    padding: 8px 14px;
    font-size: 12px;
    color: #cccccc;
    text-decoration: none;
    transition: all 0.15s;
}

.obs-menu-link:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #ffffff;
    padding-left: 18px;
}

/* Menu Divider */
.obs-menu-divider {
    height: 1px;
    background: #3d3d4a;
    margin: 6px 10px;
}

/* CTA Link */
.obs-menu-link--cta {
    color: #818cf8;
    font-weight: 500;
}

.obs-menu-link--cta:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

/* Preview Area */
.obs-preview {
    position: relative;
    height: 260px;
    background: #0e0e14;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #1a1a24;
}

/* Zoom Controls Bar */
.obs-zoom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 32px;
    background: #2d2d3a;
    padding: 0 12px;
    border-top: 1px solid #1a1a24;
}

.obs-zoom-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.obs-zoom-btn {
    width: 20px;
    height: 20px;
    background: transparent;
    border: 1px solid #3d3d4a;
    border-radius: 3px;
    color: #888888;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.obs-zoom-value {
    font-size: 11px;
    color: #888888;
    min-width: 32px;
}

.obs-zoom-dropdown {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #3d3d4a;
    border-radius: 3px;
    font-size: 11px;
    color: #cccccc;
}

.obs-source-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.obs-source-text {
    font-size: 12px;
    color: #666666;
}

.obs-source-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: transparent;
    border: 1px solid #3d3d4a;
    border-radius: 4px;
    font-size: 11px;
    color: #888888;
}

.obs-source-btn--filters {
    border-color: #4a4a5a;
    background: rgba(74, 74, 90, 0.2);
}

/* Bottom Panels Container */
.obs-panels {
    display: grid;
    grid-template-columns: 120px 160px 1fr 150px 130px;
    gap: 1px;
    background: #1a1a24;
    min-height: 180px;
}

/* Panel Base */
.obs-panel {
    background: #2d2d3a;
    display: flex;
    flex-direction: column;
}

.obs-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #252530;
    font-size: 12px;
    font-weight: 600;
    color: #888888;
}

.obs-panel-dock {
    font-size: 10px;
    opacity: 0.5;
    cursor: pointer;
}

.obs-panel-content {
    flex: 1;
    padding: 4px;
    overflow: hidden;
}

/* Scene List Item */
.obs-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #cccccc;
    cursor: default;
}

.obs-list-item--selected {
    background: #3b78ff;
    color: #ffffff;
}

.obs-list-item-icon {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

/* Sources Panel Empty State */
.obs-sources-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 16px;
    text-align: center;
}

.obs-sources-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    opacity: 0.4;
}

.obs-sources-text {
    font-size: 11px;
    color: #666666;
    line-height: 1.5;
}

/* Plugin Showcase Carousel */
.obs-panel--sources .obs-panel-content {
    overflow: hidden;
}

.obs-plugin-carousel {
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 100%;
}

.obs-plugin-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #aaaaaa;
    cursor: default;
    transition: all 0.3s ease;
    opacity: 0.7;
    transform: translateX(0);
}

.obs-plugin-item--active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.3) 0%, rgba(99, 102, 241, 0.1) 100%);
    color: #ffffff;
    opacity: 1;
    border-left: 2px solid #6366f1;
}

.obs-plugin-item--entering {
    animation: pluginEnter 0.4s ease forwards;
}

.obs-plugin-item--exiting {
    animation: pluginExit 0.4s ease forwards;
}

@keyframes pluginEnter {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 0.7;
        transform: translateX(0);
    }
}

@keyframes pluginExit {
    from {
        opacity: 0.7;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(10px);
    }
}

.obs-plugin-icon {
    font-size: 14px;
}

.obs-plugin-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Panel Toolbar */
.obs-panel-toolbar {
    display: flex;
    gap: 2px;
    padding: 6px;
    border-top: 1px solid #1a1a24;
}

.obs-toolbar-btn {
    width: 26px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3d3d4a;
    border-radius: 3px;
    font-size: 12px;
    color: #888888;
}

/* Audio Mixer */
.obs-mixer-channel {
    padding: 8px;
    border-bottom: 1px solid #1a1a24;
}

.obs-mixer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.obs-mixer-label {
    font-size: 11px;
    color: #aaaaaa;
}

.obs-mixer-db {
    font-size: 10px;
    color: #666666;
}

.obs-mixer-meter {
    height: 8px;
    background: #1a1a24;
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    margin-bottom: 6px;
}

.obs-meter-segment {
    height: 100%;
}

.obs-meter-green {
    background: #22c55e;
    flex: 3;
}

.obs-meter-yellow {
    background: #eab308;
    flex: 1;
}

.obs-meter-red {
    background: #ef4444;
    flex: 0.5;
}

.obs-mixer-slider {
    display: flex;
    align-items: center;
    gap: 8px;
}

.obs-slider-track {
    flex: 1;
    height: 4px;
    background: #3d3d4a;
    border-radius: 2px;
    position: relative;
}

.obs-slider-thumb {
    position: absolute;
    right: 0;
    top: -4px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.obs-mixer-icons {
    display: flex;
    gap: 6px;
    font-size: 14px;
    color: #666666;
}

/* Scene Transitions */
.obs-transitions-content {
    padding: 8px;
}

.obs-transition-select {
    width: 100%;
    padding: 6px 10px;
    background: #3d3d4a;
    border: 1px solid #4a4a5a;
    border-radius: 4px;
    color: #cccccc;
    font-size: 11px;
    margin-bottom: 8px;
}

.obs-duration-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #888888;
}

.obs-duration-input {
    width: 60px;
    padding: 4px 8px;
    background: #3d3d4a;
    border: 1px solid #4a4a5a;
    border-radius: 3px;
    color: #cccccc;
    font-size: 11px;
}

.obs-transition-toolbar {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

/* Controls Panel */
.obs-controls .obs-panel-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.obs-control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    background: #3d3d4a;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #cccccc;
    cursor: default;
    transition: background 0.15s;
}

.obs-control-btn:hover {
    background: #4a4a5a;
}

.obs-control-btn--settings {
    background: #4a4a5a;
}

/* Status Bar */
.obs-statusbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    height: 28px;
    padding: 0 12px;
    background: #252530;
    border-top: 1px solid #1a1a24;
    font-size: 11px;
    color: #666666;
}

.obs-status-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.obs-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4a5568;
}

.obs-status-dot--live {
    background: #ef4444;
    animation: blink 1s infinite;
}

.obs-status-dot--rec {
    background: #6b7280;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Recording Blink Animation */
@keyframes recBlink {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
    }

    50% {
        opacity: 0.5;
        box-shadow: 0 0 2px rgba(239, 68, 68, 0.3);
    }
}

/* Audio Meter Animation Enhancements */
.obs-meter-segment {
    transition: opacity 0.1s ease, transform 0.1s ease;
    transform-origin: left center;
}

.obs-meter-green {
    background: linear-gradient(90deg, #22c55e 0%, #4ade80 100%);
}

.obs-meter-yellow {
    background: linear-gradient(90deg, #eab308 0%, #facc15 100%);
}

.obs-meter-red {
    background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
}

/* Responsive */
@media (max-width: 1200px) {
    .obs-mockup {
        transform: translateY(-50%) perspective(1200px) rotateY(-8deg) rotateX(2deg) scale(0.7);
        right: 3%;
    }
}

@media (max-width: 1024px) {
    .obs-mockup {
        position: relative;
        right: auto;
        top: auto;
        transform: perspective(1200px) rotateY(-5deg) rotateX(2deg) scale(0.65);
        margin: 2rem auto;
    }
}

@media (max-width: 768px) {
    .obs-mockup {
        transform: none;
    }

    .obs-window {
        width: 100%;
        max-width: 480px;
    }

    .obs-panels {
        grid-template-columns: 1fr 1fr;
    }
}