/**
 * LensEra — «Оригинальная» lo-fi theme (warm, cozy; icons unchanged).
 */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700&display=swap');

html.original-theme,
html.original-theme body,
body.original-theme {
    --bg-deep: #ede4d6;
    --bg-surface: #fff8f0;
    --bg-glass: rgba(255, 248, 240, 0.9);
    --accent-primary: #c97b84;
    --accent-glow: rgba(201, 123, 132, 0.35);
    --accent-dim: rgba(201, 123, 132, 0.12);
    --accent-secondary: #a68b5c;
    --text-primary: #4a3a2e;
    --text-secondary: #7a6348;
    --border-glass: 1px solid rgba(160, 120, 80, 0.18);
    --shadow-glass: 0 12px 40px rgba(92, 68, 48, 0.1);
    --bg-color: #fff8f0;
    --bg-secondary-color: #f3e6d8;
    --text-color: #4a3a2e;
    --text-secondary-color: #7a6348;
    --border-color: rgba(160, 120, 80, 0.24);
    --bg-page: #f5e8dc;
    --bg-card: #fff8f0;
    --bg-input: #fffaf5;
    --bg-modal: #fff8f0;
    --text-hint: #9a7d62;
    --border-input: #d9c4a8;
    --border-soft: rgba(160, 120, 80, 0.14);
    --bg-primary: #fff8f0;
    --bg-secondary: #f3e6d8;
    --bg-tertiary: #e8d4bc;
    --bg-hover: rgba(201, 123, 132, 0.08);
    --page-bg: #ede4d6;
    --card-bg: #fff8f0;
    --button-bg: #c97b84;
    --button-text: #fffdf9;
    --subscribed-button-bg: #e8d4bc;
    --stats-card-bg: #f5e8dc;
    --accent-blue: #b8956a;
    --bg-main: #ede4d6;
    --card-bg-hover: #faf0e4;
    --bg-dark: #ede4d6;
    --bg-panel: #fff8f0;
    --text-main: #4a3a2e;
    --text-muted: #7a6348;
    --border: rgba(160, 120, 80, 0.22);
    --bg-elevated: #fff8f0;

    font-family: 'Nunito', 'Roboto', system-ui, sans-serif;
    background-color: var(--bg-deep);
    background-image:
        radial-gradient(ellipse 120% 80% at 8% 0%, rgba(240, 200, 170, 0.55) 0%, transparent 52%),
        radial-gradient(ellipse 90% 70% at 98% 15%, rgba(220, 185, 140, 0.4) 0%, transparent 48%),
        linear-gradient(168deg, #faf0e4 0%, #f0e0cc 48%, #f5e6d8 100%);
    background-attachment: scroll;
    color: var(--text-primary);
}

/* Header & sidebar */
html.original-theme .main-header,
body.original-theme .main-header {
    background: var(--bg-glass);
    border-bottom-color: rgba(139, 115, 85, 0.12);
    box-shadow: 0 4px 24px rgba(74, 63, 53, 0.06);
}

html.original-theme .sidebar,
body.original-theme .sidebar {
    background: #fff3e8;
    border-right: 1px solid rgba(196, 160, 120, 0.18);
    box-shadow: inset -1px 0 0 rgba(255, 252, 245, 0.75);
}

html.original-theme .sidebar-footer,
body.original-theme .sidebar-footer {
    background: #fff3e8;
    border-top-color: rgba(196, 160, 120, 0.2);
}

html.original-theme .sidebar-footer a,
body.original-theme .sidebar-footer a {
    color: #6b5344 !important;
    font-weight: 600;
}

html.original-theme .sidebar-footer a:hover,
html.original-theme .sidebar-footer a:focus-visible,
body.original-theme .sidebar-footer a:hover,
body.original-theme .sidebar-footer a:focus-visible {
    color: #4a3f35 !important;
    text-decoration: none !important;
}

html.original-theme .sidebar-footer .copyright,
body.original-theme .sidebar-footer .copyright {
    color: #8b7355 !important;
}

html.original-theme .sidebar-item:hover,
body.original-theme .sidebar-item:hover {
    background: rgba(232, 188, 152, 0.26);
}

html.original-theme .sidebar-item.active,
body.original-theme .sidebar-item.active {
    background: rgba(201, 123, 132, 0.16);
    color: var(--text-color);
}

html.original-theme .sidebar-heading,
body.original-theme .sidebar-heading {
    color: #6b5344;
    font-weight: 600;
}

html.original-theme .login-prompt p,
body.original-theme .login-prompt p {
    color: var(--text-secondary-color);
}

html.original-theme .login-button,
body.original-theme .login-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #c4895a 0%, #b8927a 100%);
    color: #fffdf9;
    border: none;
    border-radius: 40px;
    padding: 8px 16px 8px 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(74, 63, 53, 0.14);
    transition: filter 0.2s;
}

html.original-theme .login-button:hover,
body.original-theme .login-button:hover {
    filter: brightness(1.06);
    background: linear-gradient(135deg, #c4895a 0%, #b8927a 100%);
}

html.original-theme .login-button .icon-img,
body.original-theme .login-button .icon-img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

html.original-theme .search-input-wrapper input,
body.original-theme .search-input-wrapper input {
    background: #fffdf9;
    border: 1px solid var(--border-input);
    color: var(--text-color);
    border-radius: 24px;
}

html.original-theme .search-button,
html.original-theme .voice-search-button,
body.original-theme .search-button,
body.original-theme .voice-search-button {
    background: #f0e4d8;
    border: 1px solid rgba(139, 115, 85, 0.22);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Icons — warm sepia instead of harsh invert */
html.original-theme .icon-img,
html.original-theme .sidebar-item .icon-img,
html.original-theme .user-menu-icon,
body.original-theme .icon-img,
body.original-theme .sidebar-item .icon-img,
body.original-theme .user-menu-icon {
    filter: sepia(0.35) saturate(0.85) brightness(0.45);
    opacity: 0.88;
}

html.original-theme .logo-icon,
body.original-theme .logo-icon {
    filter: none;
    opacity: 1;
}

/* Orbit — original (lofi): рельс с линией, без капсул — отличается от light/dark */
html.original-theme,
body.original-theme {
    --orbit-fade-bg: #faf6f0;
    --orbit-accent: #c97b84;
    --orbit-chip-text: rgba(74, 63, 53, 0.72);
    --orbit-chip-text-hover: #4a3f35;
    --orbit-chip-text-active: #4a3f35;
}

html.original-theme .category-orbit__edge--start,
body.original-theme .category-orbit__edge--start {
    background: linear-gradient(90deg, var(--orbit-fade-bg, #faf6f0) 0%, transparent 100%);
}

html.original-theme .category-orbit__edge--end,
body.original-theme .category-orbit__edge--end {
    background: linear-gradient(270deg, var(--orbit-fade-bg, #faf6f0) 0%, transparent 100%);
}

html.original-theme .category-orbit,
body.original-theme .category-orbit {
    height: 44px;
}

html.original-theme .category-orbit__track,
body.original-theme .category-orbit__track {
    height: 44px;
    align-items: center;
    gap: 6px;
    padding: 0 8px 0 16px;
}

html.original-theme .category-orbit .orbit-chip,
html.original-theme .category-orbit .filter-item,
body.original-theme .category-orbit .orbit-chip,
body.original-theme .category-orbit .filter-item {
    height: 40px;
    min-height: 40px;
    padding: 0 14px 2px 8px;
    gap: 10px;
    align-items: center;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--orbit-chip-text);
    box-shadow: none !important;
}

html.original-theme .category-orbit .orbit-chip__icon-wrap,
body.original-theme .category-orbit .orbit-chip__icon-wrap {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    border-radius: 8px;
    background: rgba(255, 252, 248, 0.98) !important;
    border: 1px solid rgba(139, 115, 85, 0.16) !important;
    box-shadow: 0 1px 3px rgba(74, 63, 53, 0.07);
}

html.original-theme .category-orbit .orbit-chip__label,
body.original-theme .category-orbit .orbit-chip__label {
    line-height: 1.25;
    padding: 0;
}

html.original-theme .category-orbit .orbit-chip__icon,
body.original-theme .category-orbit .orbit-chip__icon {
    width: 18px;
    height: 18px;
    filter: none !important;
    opacity: 1 !important;
}

html.original-theme .category-orbit .orbit-chip:hover,
html.original-theme .category-orbit .filter-item:hover,
body.original-theme .category-orbit .orbit-chip:hover,
body.original-theme .category-orbit .filter-item:hover {
    color: var(--orbit-chip-text-hover);
    background: transparent !important;
}

html.original-theme .category-orbit .orbit-chip::after,
html.original-theme .category-orbit .filter-item::after,
body.original-theme .category-orbit .orbit-chip::after,
body.original-theme .category-orbit .filter-item::after {
    left: 6px;
    right: 6px;
    bottom: 0;
    height: 2px;
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
}

html.original-theme .category-orbit .orbit-chip:hover::after,
html.original-theme .category-orbit .filter-item:hover::after,
body.original-theme .category-orbit .orbit-chip:hover::after,
body.original-theme .category-orbit .filter-item:hover::after {
    display: block;
    background: rgba(201, 123, 132, 0.45);
    opacity: 1;
    transform: scaleX(0.65);
}

html.original-theme .category-orbit .orbit-chip.active,
html.original-theme .category-orbit .filter-item.active,
body.original-theme .category-orbit .orbit-chip.active,
body.original-theme .category-orbit .filter-item.active {
    color: var(--orbit-chip-text-active);
    font-weight: 600;
    background: transparent !important;
}

html.original-theme .category-orbit .orbit-chip.active .orbit-chip__icon-wrap,
body.original-theme .category-orbit .orbit-chip.active .orbit-chip__icon-wrap {
    background: linear-gradient(145deg, rgba(201, 123, 132, 0.2) 0%, rgba(255, 249, 243, 1) 100%) !important;
    border-color: rgba(201, 123, 132, 0.35) !important;
}

html.original-theme .category-orbit .orbit-chip.active::after,
html.original-theme .category-orbit .filter-item.active::after,
body.original-theme .category-orbit .orbit-chip.active::after,
body.original-theme .category-orbit .filter-item.active::after {
    display: block;
    background: var(--orbit-accent);
    opacity: 1;
    transform: scaleX(1);
}

html.original-theme .category-orbit .orbit-rail-divider,
body.original-theme .category-orbit .orbit-rail-divider {
    height: 26px;
    background: rgba(139, 115, 85, 0.28);
}

html.original-theme .main-header .category-orbit,
body.original-theme .main-header .category-orbit {
    border-top: 1px solid rgba(139, 115, 85, 0.1);
}

html.original-theme .category-orbit__jump,
body.original-theme .category-orbit__jump {
    background: rgba(255, 249, 243, 0.96) !important;
    border: 1px solid rgba(139, 115, 85, 0.28) !important;
    box-shadow: 0 2px 10px rgba(74, 63, 53, 0.12);
}

html.original-theme .category-orbit__jump-icon,
body.original-theme .category-orbit__jump-icon {
    filter: none !important;
    opacity: 0.85;
}

html.original-theme .category-orbit__jump:hover,
body.original-theme .category-orbit__jump:hover {
    background: #fffdf9 !important;
    border-color: rgba(201, 123, 132, 0.45) !important;
}

/* Video cards */
html.original-theme .video-card,
body.original-theme .video-card {
    background: rgba(255, 249, 243, 0.85);
    border-radius: 16px;
    border: 1px solid rgba(139, 115, 85, 0.1);
    box-shadow: 0 6px 20px rgba(74, 63, 53, 0.06);
}

html.original-theme .video-card:hover,
body.original-theme .video-card:hover {
    background: #fffdf9;
    box-shadow: 0 10px 28px rgba(74, 63, 53, 0.1);
    transform: translateY(-2px);
}

html.original-theme .video-card:hover .video-title,
body.original-theme .video-card:hover .video-title {
    color: #c97b84;
}

html.original-theme .thumbnail-duration,
html.original-theme .video-duration,
body.original-theme .thumbnail-duration,
body.original-theme .video-duration {
    color: #fffdf9 !important;
    background: rgba(74, 63, 53, 0.72) !important;
    border-radius: 8px;
}

html.original-theme .context-menu-button img,
body.original-theme .context-menu-button img {
    filter: sepia(0.3) saturate(0.7) brightness(0.5) !important;
    opacity: 0.65;
}

/* Menus & modals */
html.original-theme .user-menu-dropdown,
html.original-theme .context-menu-dropdown,
html.original-theme #search-suggestions-container,
body.original-theme .user-menu-dropdown,
body.original-theme .context-menu-dropdown,
body.original-theme #search-suggestions-container {
    background: #fff9f3;
    border: 1px solid rgba(139, 115, 85, 0.15);
    box-shadow: 0 12px 36px rgba(74, 63, 53, 0.12);
    border-radius: 14px;
}

html.original-theme .user-menu-item:hover,
html.original-theme .context-menu-dropdown a:hover,
body.original-theme .user-menu-item:hover,
body.original-theme .context-menu-dropdown a:hover {
    background: rgba(201, 123, 132, 0.1);
}

html.original-theme .st-theme-segment.active,
body.original-theme .st-theme-segment.active {
    background: var(--accent-primary);
    color: #fffdf9;
}

html.original-theme .st-theme-segments,
body.original-theme .st-theme-segments {
    flex-wrap: wrap;
    gap: 6px;
}

html.original-theme .st-theme-segment,
body.original-theme .st-theme-segment {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    font-size: 12px;
    padding: 8px 10px;
}

/* Player area stays dark */
html.original-theme .video-container,
html.original-theme .main-video,
body.original-theme .video-container,
body.original-theme .main-video {
    background-color: #000;
}
