:root {
    --accent: #8BA98B;
    --accent-hover: #7A9A7A;
    --accent-light: rgba(139, 169, 139, 0.12);

    --bg-base: #F8F7F4;
    --bg-surface: #FFFFFF;
    --bg-muted: #F1EFE9;
    --bg-elevated: #E8E5DD;

    --text-primary: #2C2C2C;
    --text-secondary: #6B6B6B;
    --text-tertiary: #A3A099;

    --success: #8BA98B;
    --warning: #D4A843;
    --error: #D4726A;

    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bg-soft {
    position: fixed;
    inset: 0;
    background: var(--bg-base);
    z-index: 0;
    pointer-events: none;
}

.header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-decoration: none;
}

.header-stats {
    display: flex;
    gap: 24px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
}

.stat-value {
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    transition: color var(--transition-normal);
}

.stat.healthy .stat-value {
    color: var(--accent);
}

.stat.warning .stat-value {
    color: var(--warning);
}

.stat.critical .stat-value {
    color: var(--error);
    animation: pulse-critical 1.5s ease-in-out infinite;
}

@keyframes pulse-critical {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

#networkStat .stat-value {
    min-width: 70px;
    text-align: right;
}

.main-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 120px 32px 32px;
    overflow: hidden;
}

.url-section {
    width: 100%;
    max-width: 640px;
    animation: fadeSlideUp 0.5s ease-out;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.url-section.hidden {
    display: none;
}

.url-container {
    text-align: center;
}

.title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.url-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.url-input-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.url-input-bg {
    display: none;
}

.url-input {
    flex: 1;
    padding: 14px 18px;
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    z-index: 1;
}

.url-input::placeholder {
    color: var(--text-tertiary);
}

.play-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 1;
}

.play-btn svg {
    width: 16px;
    height: 16px;
}

.play-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 169, 139, 0.3);
}

.play-btn:active {
    transform: translateY(0);
}

.proxy-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.proxy-toggle {
    position: relative;
    width: 40px;
    height: 22px;
    cursor: pointer;
}

.proxy-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.proxy-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: 11px;
    transition: all var(--transition-normal);
}

.proxy-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-tertiary);
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.proxy-toggle input:checked+.proxy-slider {
    background: var(--accent);
    border-color: var(--accent);
}

.proxy-toggle input:checked+.proxy-slider::before {
    left: 21px;
    background: #fff;
}

.proxy-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.supported-formats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.format-tag {
    padding: 5px 12px;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.player-section {
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.player-section.active {
    display: flex;
}

.player-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.player-container.fullscreen {
    border-radius: 0;
}

.video-element {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #1a1a1a;
}

.loading-overlay {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(4px);
    z-index: 20;
}

.loading-overlay.active {
    display: flex;
}

.loader {
    position: relative;
    width: 48px;
    height: 48px;
}

.loader-ring {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-ring:nth-child(2) {
    inset: 6px;
    border-top-color: rgba(139, 169, 139, 0.5);
    animation-duration: 1.4s;
    animation-direction: reverse;
}

.loader-ring:nth-child(3) {
    inset: 12px;
    border-top-color: rgba(139, 169, 139, 0.25);
    animation-duration: 1.8s;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.03em;
}

.buffer-indicator {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
    z-index: 15;
}

.buffer-indicator.active {
    opacity: 1;
}

.buffer-indicator-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: buffer-pulse 1.5s ease-in-out infinite;
}

@keyframes buffer-pulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    opacity: 1;
    transition: opacity var(--transition-normal);
    z-index: 15;
}

.play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.big-play-btn {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.big-play-btn svg {
    width: 100%;
    height: 100%;
}

.big-play-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.06);
}

.controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 48px 20px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
    opacity: 0;
    transform: translateY(6px);
    transition: all var(--transition-normal);
    z-index: 25;
}

.player-container:hover .controls,
.player-container.show-controls .controls {
    opacity: 1;
    transform: translateY(0);
}

.progress-container {
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: height var(--transition-fast);
}

.progress-container:hover {
    height: 6px;
}

.progress-buffer {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: inherit;
    transition: width 0.1s linear, left 0.1s linear;
}

.progress-buffer::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0.6;
}

.progress-played {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--accent);
    border-radius: inherit;
}

.progress-thumb {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform var(--transition-fast);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.progress-container:hover .progress-thumb {
    transform: translate(-50%, -50%) scale(1);
}

.progress-tooltip {
    position: absolute;
    bottom: 100%;
    margin-bottom: 10px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.75rem;
    color: #fff;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

.progress-container:hover .progress-tooltip {
    opacity: 1;
}

.controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.controls-left,
.controls-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ctrl-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.ctrl-btn svg {
    width: 20px;
    height: 20px;
}

.ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.ctrl-btn .icon-pause,
.player-container.playing .ctrl-btn .icon-play {
    display: none;
}

.player-container.playing .ctrl-btn .icon-pause {
    display: block;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ctrl-btn .icon-volume-low,
.ctrl-btn .icon-volume-mute {
    display: none;
}

.volume-container.low .icon-volume-high,
.volume-container.muted .icon-volume-high,
.volume-container.muted .icon-volume-low {
    display: none;
}

.volume-container.low .icon-volume-low,
.volume-container.muted .icon-volume-mute {
    display: block;
}

.volume-slider-wrapper {
    position: relative;
    width: 0;
    overflow: hidden;
    transition: width var(--transition-normal);
}

.volume-container:hover .volume-slider-wrapper {
    width: 72px;
}

.volume-slider {
    width: 72px;
    height: 3px;
    appearance: none;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.volume-fill {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    pointer-events: none;
}

.time-display {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    margin-left: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.time-display:hover {
    background: rgba(255, 255, 255, 0.1);
}

.time-sep {
    color: rgba(255, 255, 255, 0.35);
}

.time-input-wrapper {
    display: none !important;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
}

.time-input-wrapper.active {
    display: flex !important;
}

.time-input {
    width: 75px;
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.75rem;
    color: #fff;
    text-align: center;
}

.time-input:focus {
    outline: none;
    border-color: var(--accent);
}

.time-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.time-go-btn {
    padding: 5px 10px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.time-go-btn:hover {
    background: var(--accent-hover);
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-3px);
    }

    40% {
        transform: translateX(3px);
    }

    60% {
        transform: translateX(-3px);
    }

    80% {
        transform: translateX(3px);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(16px);
    }

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

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.speed-container {
    position: relative;
}

.speed-btn {
    width: auto;
    padding: 0 10px;
    font-family: inherit;
    font-size: 0.8rem;
}

.speed-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    padding: 8px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition-normal);
    min-width: 170px;
    max-height: 320px;
    overflow-y: auto;
}

.speed-container:hover .speed-menu,
.speed-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.speed-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.speed-option {
    padding: 7px 10px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.speed-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.speed-option.active {
    background: var(--accent);
    color: #fff;
}

.speed-custom {
    display: flex;
    gap: 5px;
    align-items: center;
}

.custom-speed-input {
    flex: 1;
    width: 70px;
    padding: 7px 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.75rem;
    color: #fff;
    text-align: center;
}

.custom-speed-input:focus {
    outline: none;
    border-color: var(--accent);
}

.custom-speed-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.custom-speed-input::-webkit-inner-spin-button,
.custom-speed-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.custom-speed-btn {
    padding: 7px 12px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.custom-speed-btn:hover {
    background: var(--accent-hover);
}

.speed-warning {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 18px;
    background: rgba(212, 114, 106, 0.9);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.8rem;
    color: white;
    text-align: center;
    z-index: 100;
    animation: fadeIn 0.2s ease;
}

.speed-warning.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ctrl-btn .icon-compress {
    display: none;
}

.player-container.fullscreen .ctrl-btn .icon-expand {
    display: none;
}

.player-container.fullscreen .ctrl-btn .icon-compress {
    display: block;
}

.error-overlay {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(26, 26, 26, 0.92);
    z-index: 30;
}

.error-overlay.active {
    display: flex;
}

.error-overlay svg {
    width: 52px;
    height: 52px;
    color: var(--error);
}

.error-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    white-space: pre-line;
    line-height: 1.6;
    max-width: 380px;
}

.retry-btn {
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.retry-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.back-btn svg {
    width: 16px;
    height: 16px;
}

.back-btn:hover {
    background: var(--bg-muted);
    border-color: var(--accent);
    color: var(--text-primary);
}

.shortcuts-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    z-index: 100;
}

.shortcuts-modal.active {
    display: flex;
}

.shortcuts-content {
    max-width: 440px;
    padding: 28px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    animation: scaleIn 0.25s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.shortcuts-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-primary);
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
    margin-bottom: 20px;
}

.shortcut {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.shortcut kbd {
    min-width: 36px;
    padding: 5px 10px;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.75rem;
    color: var(--accent);
    text-align: center;
}

.shortcut span {
    flex: 1;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.close-shortcuts {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.close-shortcuts:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 169, 139, 0.25);
}

@media (max-width: 768px) {
    .header {
        padding: 14px 18px;
    }

    .header-stats {
        display: none;
    }

    .main-content {
        padding: 20px;
    }

    .url-input-wrapper {
        flex-direction: column;
        gap: 8px;
    }

    .url-input {
        width: 100%;
        text-align: center;
    }

    .play-btn {
        width: 100%;
        justify-content: center;
    }

    .controls-row {
        flex-wrap: wrap;
    }

    .time-display {
        order: 10;
        width: 100%;
        justify-content: center;
        margin: 6px 0 0;
    }

    .shortcuts-grid {
        grid-template-columns: 1fr;
    }
}

.player-container:-webkit-full-screen {
    border-radius: 0;
}

.player-container:fullscreen {
    border-radius: 0;
}

.player-container:-webkit-full-screen .controls {
    padding: 64px 36px 32px;
}

.player-container:fullscreen .controls {
    padding: 64px 36px 32px;
}

.player-container.fullscreen.playing.hide-cursor {
    cursor: none;
}

.player-container.fullscreen.playing.hide-cursor .controls {
    opacity: 0;
    pointer-events: none;
}

.seek-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 18;
}

.seek-indicator.left {
    left: 20%;
}

.seek-indicator.right {
    right: 20%;
}

.seek-indicator.active {
    animation: seekPop 0.4s ease-out;
}

@keyframes seekPop {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(0.8);
    }

    30% {
        opacity: 1;
        transform: translateY(-50%) scale(1.05);
    }

    100% {
        opacity: 0;
        transform: translateY(-50%) scale(1);
    }
}

.footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 16px;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
}