:root {
    --lurk-bg: #07090f;
    --lurk-bg-soft: #0d1018;
    --lurk-surface: rgba(17, 20, 31, 0.96);
    --lurk-surface-hover: rgba(23, 27, 41, 0.98);
    --lurk-border: rgba(255, 255, 255, 0.09);
    --lurk-border-strong: rgba(145, 70, 255, 0.42);
    --lurk-text: #f4f4f7;
    --lurk-text-muted: #a8adbd;
    --lurk-purple: #9146ff;
    --lurk-purple-hover: #a970ff;
    --lurk-purple-dark: #5f1ebd;
    --lurk-danger: #dc3545;
    --lurk-danger-hover: #f04f5e;
    --lurk-success: #35c46a;
    --lurk-warning: #f0b429;
    --lurk-offline: #7b8190;
    --lurk-radius: 14px;
    --lurk-radius-small: 9px;
    --lurk-transition: 160ms ease;
    --lurk-container: 1500px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    color-scheme: dark;
    scroll-behavior: smooth;
}

body.page-twitch-lurk {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(145, 70, 255, 0.1),
            transparent 34rem
        ),
        linear-gradient(180deg, var(--lurk-bg-soft), var(--lurk-bg));
    color: var(--lurk-text);
    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    line-height: 1.5;
}

body.page-twitch-lurk button,
body.page-twitch-lurk input {
    font: inherit;
}

body.page-twitch-lurk button {
    -webkit-tap-highlight-color: transparent;
}

body.page-twitch-lurk a {
    color: inherit;
}

body.page-twitch-lurk .bg-animation {
    display: none;
}

body.page-twitch-lurk .header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--lurk-border);
    background: rgba(7, 9, 15, 0.94);
    backdrop-filter: blur(14px);
}

body.page-twitch-lurk .navbar-eop {
    width: min(calc(100% - 32px), var(--lurk-container));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

body.page-twitch-lurk .eop-brand {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    color: var(--lurk-text);
    text-decoration: none;
}

body.page-twitch-lurk .eop-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.025em;
}

body.page-twitch-lurk .eop-subtitle {
    color: var(--lurk-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.page-twitch-lurk .eop-nav {
    min-width: 0;
}

body.page-twitch-lurk .nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.page-twitch-lurk .nav-menu a,
body.page-twitch-lurk .twitch-user {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: var(--lurk-radius-small);
    color: var(--lurk-text-muted);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        color var(--lurk-transition),
        background-color var(--lurk-transition),
        border-color var(--lurk-transition);
}

body.page-twitch-lurk .nav-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--lurk-text);
}

body.page-twitch-lurk .nav-login-button {
    border: 1px solid var(--lurk-border-strong);
    background: rgba(145, 70, 255, 0.12);
    color: #d8c4ff !important;
}

body.page-twitch-lurk .nav-login-button:hover {
    border-color: var(--lurk-purple);
    background: rgba(145, 70, 255, 0.22) !important;
}

body.page-twitch-lurk .twitch-user {
    max-width: 220px;
    overflow: hidden;
    border: 1px solid var(--lurk-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--lurk-text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-twitch-lurk .lurk-main {
    width: min(calc(100% - 32px), var(--lurk-container));
    min-height: calc(100vh - 160px);
    margin: 0 auto;
    padding: 38px 0 64px;
}

body.page-twitch-lurk .lurk-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 24px;
}

body.page-twitch-lurk .section-label {
    margin: 0 0 7px;
    color: var(--lurk-purple-hover);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.page-twitch-lurk h1,
body.page-twitch-lurk h2,
body.page-twitch-lurk h3,
body.page-twitch-lurk p {
    overflow-wrap: anywhere;
}

body.page-twitch-lurk h1 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

body.page-twitch-lurk h2 {
    margin: 0;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    line-height: 1.2;
}

body.page-twitch-lurk h3 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.3;
}

body.page-twitch-lurk .lurk-description {
    max-width: 780px;
    margin: 14px 0 0;
    color: var(--lurk-text-muted);
    font-size: 1rem;
}

body.page-twitch-lurk .session-status {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--lurk-border);
    border-radius: 999px;
    background: var(--lurk-surface);
    color: var(--lurk-text-muted);
    font-size: 0.88rem;
}

body.page-twitch-lurk .session-status strong {
    color: var(--lurk-text);
}

body.page-twitch-lurk .status-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 50%;
}

body.page-twitch-lurk .status-online {
    background: var(--lurk-success);
}

body.page-twitch-lurk .status-offline {
    background: var(--lurk-offline);
}

body.page-twitch-lurk .auth-notice,
body.page-twitch-lurk .control-panel,
body.page-twitch-lurk .streams-section,
body.page-twitch-lurk .error-notice {
    border: 1px solid var(--lurk-border);
    border-radius: var(--lurk-radius);
    background: var(--lurk-surface);
}

body.page-twitch-lurk .auth-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 20px;
    padding: 20px;
}

body.page-twitch-lurk .auth-notice p {
    margin: 7px 0 0;
    color: var(--lurk-text-muted);
}

body.page-twitch-lurk code {
    padding: 2px 6px;
    border: 1px solid rgba(145, 70, 255, 0.28);
    border-radius: 6px;
    background: rgba(145, 70, 255, 0.12);
    color: #ddccff;
    font-family:
        "Cascadia Code",
        Consolas,
        monospace;
    font-size: 0.9em;
}

body.page-twitch-lurk .control-panel {
    margin-bottom: 24px;
    padding: 22px;
}

body.page-twitch-lurk .control-panel-header,
body.page-twitch-lurk .section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

body.page-twitch-lurk .stream-count {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid var(--lurk-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--lurk-text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

body.page-twitch-lurk .streamer-form {
    margin-top: 20px;
}

body.page-twitch-lurk .streamer-input-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

body.page-twitch-lurk .streamer-input-group input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--lurk-border);
    border-radius: var(--lurk-radius-small);
    outline: none;
    background: #090c13;
    color: var(--lurk-text);
    transition:
        border-color var(--lurk-transition),
        box-shadow var(--lurk-transition);
}

body.page-twitch-lurk .streamer-input-group input::placeholder {
    color: #727887;
}

body.page-twitch-lurk .streamer-input-group input:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

body.page-twitch-lurk .streamer-input-group input:focus {
    border-color: var(--lurk-purple);
    box-shadow: 0 0 0 3px rgba(145, 70, 255, 0.16);
}

body.page-twitch-lurk .input-help {
    margin: 8px 0 0;
    color: var(--lurk-text-muted);
    font-size: 0.8rem;
}

body.page-twitch-lurk .form-message,
body.page-twitch-lurk .stream-message {
    min-height: 20px;
    margin: 8px 0 0;
    font-size: 0.84rem;
    font-weight: 600;
}

body.page-twitch-lurk .form-message:empty,
body.page-twitch-lurk .stream-message:empty {
    display: none;
}

body.page-twitch-lurk .message-success {
    color: var(--lurk-success);
}

body.page-twitch-lurk .message-error {
    color: #ff7b86;
}

body.page-twitch-lurk .message-info {
    color: #bca2ff;
}

body.page-twitch-lurk .global-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--lurk-border);
}

body.page-twitch-lurk .button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: var(--lurk-radius-small);
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
    transition:
        background-color var(--lurk-transition),
        border-color var(--lurk-transition),
        color var(--lurk-transition),
        opacity var(--lurk-transition),
        transform var(--lurk-transition);
}

body.page-twitch-lurk .button:hover:not(:disabled) {
    transform: translateY(-1px);
}

body.page-twitch-lurk .button:active:not(:disabled) {
    transform: translateY(0);
}

body.page-twitch-lurk .button:focus-visible {
    outline: 3px solid rgba(145, 70, 255, 0.3);
    outline-offset: 2px;
}

body.page-twitch-lurk .button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

body.page-twitch-lurk .button-primary,
body.page-twitch-lurk .button-twitch {
    border-color: var(--lurk-purple);
    background: var(--lurk-purple);
    color: #ffffff;
}

body.page-twitch-lurk .button-primary:hover:not(:disabled),
body.page-twitch-lurk .button-twitch:hover:not(:disabled) {
    border-color: var(--lurk-purple-hover);
    background: var(--lurk-purple-hover);
}

body.page-twitch-lurk .button-secondary {
    border-color: var(--lurk-border);
    background: rgba(255, 255, 255, 0.045);
    color: var(--lurk-text);
}

body.page-twitch-lurk .button-secondary:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.085);
}

body.page-twitch-lurk .button-danger {
    border-color: rgba(220, 53, 69, 0.4);
    background: rgba(220, 53, 69, 0.11);
    color: #ffadb5;
}

body.page-twitch-lurk .button-danger:hover:not(:disabled) {
    border-color: var(--lurk-danger-hover);
    background: rgba(220, 53, 69, 0.22);
    color: #ffffff;
}

body.page-twitch-lurk .volume-control {
    min-width: 230px;
    flex: 1 1 260px;
    padding: 8px 13px 10px;
    border: 1px solid var(--lurk-border);
    border-radius: var(--lurk-radius-small);
    background: rgba(255, 255, 255, 0.035);
}

body.page-twitch-lurk .volume-control label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 5px;
    color: var(--lurk-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

body.page-twitch-lurk .volume-control output {
    color: var(--lurk-text);
}

body.page-twitch-lurk input[type="range"] {
    width: 100%;
    height: 5px;
    margin: 0;
    border-radius: 999px;
    cursor: pointer;
    accent-color: var(--lurk-purple);
}

body.page-twitch-lurk input[type="range"]:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

body.page-twitch-lurk .streams-section {
    padding: 22px;
}

body.page-twitch-lurk .empty-state {
    display: flex;
    min-height: 260px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    padding: 30px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: var(--lurk-radius);
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
}

body.page-twitch-lurk .empty-state[hidden] {
    display: none;
}

body.page-twitch-lurk .empty-state-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin-bottom: 5px;
    border: 1px solid rgba(145, 70, 255, 0.32);
    border-radius: 50%;
    background: rgba(145, 70, 255, 0.11);
    color: #cdb6ff;
    font-size: 1.4rem;
}

body.page-twitch-lurk .empty-state p {
    max-width: 590px;
    margin: 0;
    color: var(--lurk-text-muted);
}

body.page-twitch-lurk .stream-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

body.page-twitch-lurk .stream-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--lurk-border);
    border-radius: var(--lurk-radius);
    background: #0c0f17;
    transition:
        border-color var(--lurk-transition),
        background-color var(--lurk-transition);
}

body.page-twitch-lurk .stream-card:hover {
    border-color: rgba(145, 70, 255, 0.3);
    background: #0f121c;
}

body.page-twitch-lurk .stream-card-header {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 17px;
    border-bottom: 1px solid var(--lurk-border);
}

body.page-twitch-lurk .stream-identity {
    min-width: 0;
}

body.page-twitch-lurk .stream-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-twitch-lurk .stream-login {
    margin: 2px 0 0;
    overflow: hidden;
    color: var(--lurk-text-muted);
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-twitch-lurk .stream-status {
    display: inline-flex;
    min-height: 29px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.page-twitch-lurk .stream-status-loading {
    border: 1px solid rgba(240, 180, 41, 0.3);
    background: rgba(240, 180, 41, 0.1);
    color: #f8d47d;
}

body.page-twitch-lurk .stream-status-live {
    border: 1px solid rgba(53, 196, 106, 0.35);
    background: rgba(53, 196, 106, 0.11);
    color: #71e39c;
}

body.page-twitch-lurk .stream-status-offline {
    border: 1px solid rgba(123, 129, 144, 0.35);
    background: rgba(123, 129, 144, 0.1);
    color: #b8bdc8;
}

body.page-twitch-lurk .stream-status-error {
    border: 1px solid rgba(220, 53, 69, 0.35);
    background: rgba(220, 53, 69, 0.11);
    color: #ff929d;
}

body.page-twitch-lurk .stream-details {
    min-height: 94px;
    padding: 14px 17px;
}

body.page-twitch-lurk .stream-title {
    display: -webkit-box;
    min-height: 44px;
    margin: 0;
    overflow: hidden;
    color: var(--lurk-text);
    font-size: 0.92rem;
    font-weight: 700;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.page-twitch-lurk .stream-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    color: var(--lurk-text-muted);
    font-size: 0.78rem;
}

body.page-twitch-lurk .stream-category {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-twitch-lurk .stream-viewers {
    flex: 0 0 auto;
    white-space: nowrap;
}

body.page-twitch-lurk .player-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-top: 1px solid var(--lurk-border);
    border-bottom: 1px solid var(--lurk-border);
    background: #030406;
}

body.page-twitch-lurk .player-placeholder,
body.page-twitch-lurk .player-container {
    position: absolute;
    inset: 0;
}

body.page-twitch-lurk .player-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: #6e7482;
}

body.page-twitch-lurk .player-placeholder span {
    font-size: 1.7rem;
}

body.page-twitch-lurk .player-placeholder p {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 700;
}

body.page-twitch-lurk .player-shell.player-loaded .player-placeholder {
    display: none;
}

body.page-twitch-lurk .player-container iframe,
body.page-twitch-lurk .player-container > div {
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

body.page-twitch-lurk .stream-player-controls,
body.page-twitch-lurk .stream-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px;
}

body.page-twitch-lurk .stream-player-controls {
    border-bottom: 1px solid var(--lurk-border);
}

body.page-twitch-lurk .stream-actions {
    padding-top: 12px;
}

body.page-twitch-lurk .stream-player-controls .button,
body.page-twitch-lurk .stream-actions .button {
    flex: 1 1 120px;
    min-width: 0;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 0.82rem;
}

body.page-twitch-lurk .stream-message {
    padding: 0 16px 14px;
}

body.page-twitch-lurk .error-notice {
    margin-top: 20px;
    padding: 16px;
    border-color: rgba(220, 53, 69, 0.4);
    color: #ffadb5;
}

body.page-twitch-lurk .footer {
    border-top: 1px solid var(--lurk-border);
    background: rgba(7, 9, 15, 0.96);
}

body.page-twitch-lurk .footer-content {
    width: min(calc(100% - 32px), var(--lurk-container));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--lurk-text-muted);
    font-size: 0.82rem;
}

body.page-twitch-lurk .footer-content p {
    margin: 0;
}

body.page-twitch-lurk .footer-content nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px;
}

body.page-twitch-lurk .footer-content a {
    color: var(--lurk-text-muted);
    text-decoration: none;
    transition: color var(--lurk-transition);
}

body.page-twitch-lurk .footer-content a:hover {
    color: var(--lurk-text);
}

body.page-twitch-lurk .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

@media (max-width: 1050px) {
    body.page-twitch-lurk .stream-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    body.page-twitch-lurk .navbar-eop {
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
        padding: 15px 0;
    }

    body.page-twitch-lurk .nav-menu {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    body.page-twitch-lurk .lurk-intro,
    body.page-twitch-lurk .auth-notice {
        align-items: stretch;
        flex-direction: column;
    }

    body.page-twitch-lurk .session-status {
        align-self: flex-start;
    }

    body.page-twitch-lurk .auth-notice .button {
        width: 100%;
    }
}

@media (max-width: 620px) {
    body.page-twitch-lurk .navbar-eop,
    body.page-twitch-lurk .lurk-main,
    body.page-twitch-lurk .footer-content {
        width: min(calc(100% - 20px), var(--lurk-container));
    }

    body.page-twitch-lurk .lurk-main {
        padding-top: 24px;
    }

    body.page-twitch-lurk .streamer-input-group {
        grid-template-columns: 1fr;
    }

    body.page-twitch-lurk .streamer-input-group .button {
        width: 100%;
    }

    body.page-twitch-lurk .control-panel,
    body.page-twitch-lurk .streams-section {
        padding: 16px;
    }

    body.page-twitch-lurk .control-panel-header,
    body.page-twitch-lurk .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    body.page-twitch-lurk .global-controls {
        align-items: stretch;
        flex-direction: column;
    }

    body.page-twitch-lurk .global-controls > .button,
    body.page-twitch-lurk .volume-control {
        width: 100%;
    }

    body.page-twitch-lurk .stream-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    body.page-twitch-lurk .stream-status {
        align-self: flex-start;
    }

    body.page-twitch-lurk .stream-player-controls,
    body.page-twitch-lurk .stream-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.page-twitch-lurk .stream-player-controls .button,
    body.page-twitch-lurk .stream-actions .button {
        width: 100%;
    }

    body.page-twitch-lurk .footer-content {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px 0;
    }

    body.page-twitch-lurk .footer-content nav {
        justify-content: flex-start;
    }
}

@media (max-width: 420px) {
    body.page-twitch-lurk .nav-menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.page-twitch-lurk .nav-menu li,
    body.page-twitch-lurk .nav-menu a,
    body.page-twitch-lurk .twitch-user {
        width: 100%;
    }

    body.page-twitch-lurk .stream-player-controls,
    body.page-twitch-lurk .stream-actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body.page-twitch-lurk *,
    body.page-twitch-lurk *::before,
    body.page-twitch-lurk *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ==========================================================================
   Version 2.0 – kompakte Lurk-Kacheln, Favoriten und Live-Sortierung
   ========================================================================== */

body.page-twitch-lurk .streams-heading {
    align-items: flex-end;
    gap: 20px;
}

body.page-twitch-lurk .view-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

body.page-twitch-lurk .view-switch {
    display: flex;
    gap: 8px;
}

body.page-twitch-lurk .view-button[aria-pressed="true"] {
    border-color: var(--lurk-purple);
    background: rgba(145, 70, 255, 0.2);
    color: #fff;
}

body.page-twitch-lurk .sort-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--lurk-text-muted);
    font-size: 0.9rem;
    cursor: pointer;
}

body.page-twitch-lurk .sort-toggle input {
    accent-color: var(--lurk-purple);
}

body.page-twitch-lurk .stream-grid {
    display: grid;
    gap: 14px;
    align-items: start;
}

body.page-twitch-lurk.view-compact .stream-grid {
    grid-template-columns: repeat(5, minmax(230px, 1fr));
}

body.page-twitch-lurk.view-large .stream-grid {
    grid-template-columns: repeat(2, minmax(420px, 1fr));
}

body.page-twitch-lurk .stream-card {
    min-width: 0;
    overflow: hidden;
}

body.page-twitch-lurk .stream-card.is-favorite {
    border-color: rgba(240, 180, 41, 0.48);
    box-shadow: inset 0 1px 0 rgba(240, 180, 41, 0.08);
}

body.page-twitch-lurk .stream-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.page-twitch-lurk .stream-avatar {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--lurk-border);
}

body.page-twitch-lurk .stream-identity-text {
    min-width: 0;
}

body.page-twitch-lurk .stream-name-line {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 5px;
}

body.page-twitch-lurk .favorite-button {
    flex: 0 0 auto;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--lurk-warning);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

body.page-twitch-lurk .stream-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-twitch-lurk .stream-channel-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin-bottom: 8px;
    color: var(--lurk-text-muted);
    font-size: 0.78rem;
}

body.page-twitch-lurk .stream-badge {
    display: inline-flex;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid var(--lurk-border);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

body.page-twitch-lurk .stream-badge[data-type="partner"] {
    border-color: rgba(145, 70, 255, 0.58);
    color: #caa9ff;
}

body.page-twitch-lurk .stream-badge[data-type="affiliate"] {
    border-color: rgba(53, 196, 106, 0.48);
    color: #7ee6a3;
}

body.page-twitch-lurk .stream-preview {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0.55;
}

body.page-twitch-lurk .player-placeholder {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.44);
}

body.page-twitch-lurk.view-compact .stream-card:not(.player-expanded) .player-shell {
    min-height: 132px;
    aspect-ratio: 16 / 9;
}

body.page-twitch-lurk.view-compact .stream-card:not(.player-expanded) .stream-player-controls {
    grid-template-columns: 1fr;
}

body.page-twitch-lurk.view-compact .stream-card:not(.player-expanded) .stream-play,
body.page-twitch-lurk.view-compact .stream-card:not(.player-expanded) .stream-pause,
body.page-twitch-lurk.view-compact .stream-card:not(.player-expanded) .stream-mute {
    display: none;
}

body.page-twitch-lurk .stream-card.player-expanded {
    grid-column: span 2;
}

body.page-twitch-lurk.view-compact .stream-card.player-expanded {
    min-width: 400px;
}

body.page-twitch-lurk .stream-card.player-expanded .player-shell {
    min-width: 400px;
    min-height: 300px;
    aspect-ratio: 16 / 9;
}

body.page-twitch-lurk .stream-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.page-twitch-lurk .stream-open {
    text-decoration: none;
    text-align: center;
}

body.page-twitch-lurk.view-compact .stream-card-header,
body.page-twitch-lurk.view-compact .stream-details,
body.page-twitch-lurk.view-compact .stream-player-controls,
body.page-twitch-lurk.view-compact .stream-actions {
    padding-left: 12px;
    padding-right: 12px;
}

body.page-twitch-lurk.view-compact .stream-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 3em;
}

body.page-twitch-lurk.view-compact .stream-meta {
    font-size: 0.76rem;
}

body.page-twitch-lurk.view-compact .stream-actions .button,
body.page-twitch-lurk.view-compact .stream-player-controls .button {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 0.82rem;
}

@media (max-width: 1450px) {
    body.page-twitch-lurk.view-compact .stream-grid {
        grid-template-columns: repeat(4, minmax(230px, 1fr));
    }
}

@media (max-width: 1120px) {
    body.page-twitch-lurk.view-compact .stream-grid {
        grid-template-columns: repeat(3, minmax(230px, 1fr));
    }

    body.page-twitch-lurk.view-large .stream-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    body.page-twitch-lurk.view-compact .stream-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    body.page-twitch-lurk .streams-heading {
        align-items: flex-start;
    }

    body.page-twitch-lurk .view-tools {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    body.page-twitch-lurk.view-compact .stream-grid,
    body.page-twitch-lurk.view-large .stream-grid {
        grid-template-columns: 1fr;
    }

    body.page-twitch-lurk .stream-card.player-expanded {
        grid-column: auto;
        min-width: 0;
    }

    body.page-twitch-lurk .stream-card.player-expanded .player-shell {
        min-width: 0;
        min-height: 300px;
    }
}


/* Version 2.1 – Sprachumschalter */
body.page-twitch-lurk .nav-language {
    display: flex;
    align-items: center;
}

body.page-twitch-lurk .language-select {
    min-height: 38px;
    padding: 7px 30px 7px 11px;
    border: 1px solid var(--lurk-border);
    border-radius: 8px;
    background: rgba(16, 18, 25, 0.9);
    color: var(--lurk-text);
    font: inherit;
    cursor: pointer;
}

body.page-twitch-lurk .language-select:focus-visible {
    outline: 2px solid var(--lurk-purple);
    outline-offset: 2px;
}
