@font-face {
    font-family: 'SimpleLetter';
    src: url('../fonts/simple_letter.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    background-color: #222222;
    color: #ffffff;
    font-family: 'Segoe UI', sans-serif;
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    padding: 10px 10px 0;
}

.header-content {
    padding-bottom: 20px;
    position: relative;
    overflow: hidden;
}

/* Particle effects around logo */
.header-content::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(229, 160, 13, 0.4) 0%, transparent 2%),
        radial-gradient(circle at 80% 40%, rgba(229, 160, 13, 0.3) 0%, transparent 2%),
        radial-gradient(circle at 40% 70%, rgba(229, 160, 13, 0.4) 0%, transparent 2%),
        radial-gradient(circle at 60% 20%, rgba(229, 160, 13, 0.3) 0%, transparent 2%),
        radial-gradient(circle at 90% 80%, rgba(229, 160, 13, 0.4) 0%, transparent 2%),
        radial-gradient(circle at 10% 60%, rgba(229, 160, 13, 0.3) 0%, transparent 2%);
    animation: particles 3s ease-out forwards;
    pointer-events: none;
    z-index: 10;
}

.logo {
    font-family: 'SimpleLetter', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: #ffffff;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    animation: logoAppear 1.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: center;
}

/* Glowing aura behind logo */
.logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(229, 160, 13, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    animation: logoGlow 2s ease-out forwards;
    z-index: -1;
    border-radius: 50%;
}

@keyframes logoGlow {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes particles {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

.logo .accent {
    color: #e5a00d;
    text-shadow: 0 0 20px rgba(229, 160, 13, 0.3);
    display: inline-block;
    animation: accentPulse 2s ease-in-out 1.5s forwards;
}

@keyframes accentPulse {
    0%, 100% {
        color: #e5a00d;
        text-shadow: 0 0 20px rgba(229, 160, 13, 0.3);
        transform: scale(1);
    }
    25% {
        color: #f7b01e;
        text-shadow: 0 0 40px rgba(247, 176, 30, 0.8), 0 0 60px rgba(247, 176, 30, 0.5);
        transform: scale(1.1);
    }
    50% {
        color: #ffd700;
        text-shadow: 0 0 50px rgba(255, 215, 0, 1), 0 0 80px rgba(255, 215, 0, 0.6);
        transform: scale(1.15) rotate(2deg);
    }
    75% {
        color: #f7b01e;
        text-shadow: 0 0 40px rgba(247, 176, 30, 0.8), 0 0 60px rgba(247, 176, 30, 0.5);
        transform: scale(1.1) rotate(-2deg);
    }
}

/* Main logo animation sequence */
@keyframes logoAppear {
    0% {
        opacity: 0;
        transform: perspective(1000px) rotateX(-90deg) rotateY(0deg) scale(0.5);
        filter: blur(20px);
    }
    40% {
        opacity: 0.5;
        transform: perspective(1000px) rotateX(-20deg) rotateY(10deg) scale(0.8);
        filter: blur(10px);
    }
    60% {
        opacity: 0.8;
        transform: perspective(1000px) rotateX(10deg) rotateY(-5deg) scale(1.1);
        filter: blur(5px);
    }
    80% {
        opacity: 1;
        transform: perspective(1000px) rotateX(-5deg) rotateY(2deg) scale(1.05);
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1);
        filter: blur(0px);
    }
}

/* Letter-by-letter animation using JavaScript-added classes */
.logo-letter {
    display: inline-block;
    opacity: 0;
    animation: letterFly 0.6s ease-out forwards;
}

@keyframes letterFly {
    0% {
        opacity: 0;
        transform: translate(var(--tx, 0), var(--ty, -100px)) rotate(var(--r, 0deg)) scale(0);
    }
    60% {
        opacity: 1;
        transform: translate(0, 0) rotate(calc(var(--r, 0deg) * 0.3)) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

/* User Bar */
.user-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 20px;
    background-color: transparent;
    border-bottom: 1px solid rgba(229, 160, 13, 0.2);
}

/* Server Info (Left Side) */
.server-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.server-icon {
    font-size: 1.5rem;
    color: #e5a00d;
}

.server-name {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 500;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(229, 160, 13, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    height: 40px;
    box-sizing: border-box;
}

.status-badge:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #888;
    transition: all 0.3s ease;
}

.status-badge.online .status-dot {
    background-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
}

.status-badge.online .status-text {
    color: #4CAF50;
}

.status-badge.offline .status-dot {
    background-color: #f44336;
    box-shadow: 0 0 8px rgba(244, 67, 54, 0.6);
}

.status-badge.offline .status-text {
    color: #f44336;
}

.status-text {
    color: #888;
    font-size: 0.85rem;
    font-variant: small-caps;
    text-transform: lowercase;
    transition: color 0.3s ease;
    line-height: 1;
}

/* Info Badges */
.info-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(229, 160, 13, 0.3);
    border-radius: 8px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    height: 40px;
    box-sizing: border-box;
}

.info-badge:hover {
    background-color: rgba(229, 160, 13, 0.2);
    border-color: #e5a00d;
    transform: scale(1.05);
}

.info-badge .material-symbols-outlined {
    font-size: 18px;
    color: #e5a00d;
    line-height: 1;
}

.badge-text {
    color: #ffffff;
    font-size: 0.85rem;
    font-variant: small-caps;
    text-transform: lowercase;
    line-height: 1;
}

/* Media Search Container */
.media-search-container {
    padding: 20px 0 0;
}

.media-search-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.search-input-group {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.search-input-group .search-icon {
    position: absolute;
    left: 14px;
    color: #e5a00d;
    font-size: 22px;
    pointer-events: none;
    z-index: 1;
}

.media-search-input {
    width: 100%;
    padding: 14px 50px 14px 48px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(229, 160, 13, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Segoe UI', sans-serif;
    transition: all 0.2s ease;
}

.media-search-input:focus {
    outline: none;
    border-color: #e5a00d;
    background-color: rgba(229, 160, 13, 0.1);
}

.media-search-input::placeholder {
    color: #888;
}

.btn-clear-search {
    position: absolute;
    right: 10px;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(229, 160, 13, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1;
}

.btn-clear-search:hover {
    background-color: rgba(229, 160, 13, 0.2);
    border-color: #e5a00d;
    transform: scale(1.05);
}

.btn-clear-search .material-symbols-outlined {
    color: #e5a00d;
    font-size: 18px;
}

.media-search-results {
    background-color: #2a2a2a;
    border: 1px solid rgba(229, 160, 13, 0.3);
    border-radius: 12px 12px 0 0;
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    margin-top: 8px;
}

.media-search-result-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid rgba(229, 160, 13, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.media-search-result-item:last-child {
    border-bottom: 1px solid rgba(229, 160, 13, 0.3);
}

.media-search-result-item:hover {
    background-color: rgba(229, 160, 13, 0.1);
}

.media-result-poster {
    width: 50px;
    height: 75px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 12px;
}

.media-result-poster img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
}

.media-result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.media-result-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.media-result-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    text-align: left;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.media-result-title-text {
    flex: 1;
}

.media-result-year {
    font-size: 0.85rem;
    color: #888;
    white-space: nowrap;
    flex-shrink: 0;
}

.media-result-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.media-result-type.type-movie {
    background-color: rgba(33, 150, 243, 0.2);
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.4);
}

.media-result-type.type-tv {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

@keyframes plex-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(229, 160, 13, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 10px 2px rgba(229, 160, 13, 0.6);
    }
}

.media-result-plex {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    background-color: rgba(229, 160, 13, 0.2);
    color: #E5A00D;
    border: 1px solid rgba(229, 160, 13, 0.4);
    margin-left: 6px;
    animation: plex-pulse 2s ease-in-out infinite;
}

/* Loading dots animation */
@keyframes loading-dots {
    0%, 20% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.3;
    }
}

/* Loading state - pulsing dots */
.media-result-plex-loading {
    animation: loading-dots 1.4s ease-in-out infinite !important;
    opacity: 0.8;
}

.media-result-description {
    font-size: 0.8rem;
    color: #aaa;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: left;
}

.media-search-result-count {
    padding: 12px 16px;
    background-color: rgba(229, 160, 13, 0.1);
    border-bottom: 1px solid rgba(229, 160, 13, 0.2);
    color: #e5a00d;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.media-search-loading {
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

.media-search-no-results {
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

.btn-create-request-manual {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background-color: #2a2a2a;
    border: 1px solid rgba(229, 160, 13, 0.3);
    border-top: none;
    border-radius: 0 0 12px 12px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.btn-create-request-manual:hover {
    background-color: #333333;
}

.btn-create-request-manual:active {
    transform: scale(0.98);
}

.btn-create-request-manual .material-symbols-outlined {
    font-size: 22px;
    color: #e5a00d;
}

/* Filter Badges Container */
.filter-badges-container {
    display: flex;
    gap: 12px;
    padding: 20px 0;
}

.filter-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #888;
    font-size: 0.9rem;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex: 1;
}

.filter-badge:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
}

.filter-badge:active {
    transform: scale(0.98);
}

.filter-badge .material-symbols-outlined {
    font-size: 20px;
    color: #888;
    transition: color 0.2s ease;
}

.filter-badge.active {
    background-color: rgba(229, 160, 13, 0.2);
    border-color: rgba(229, 160, 13, 0.5);
    color: #e5a00d;
}

.filter-badge.active .material-symbols-outlined {
    color: #e5a00d;
}

.filter-badge-text {
    font-variant: small-caps;
    text-transform: lowercase;
    line-height: 1;
}

.filter-divider {
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0;
    flex-shrink: 0;
    align-self: stretch;
}

/* User Section (Right Side) */
.user-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* User Actions Divider */
.user-actions-divider {
    display: none;
    width: 1px;
    height: 40px;
    background-color: rgba(229, 160, 13, 0.3);
    flex-shrink: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.user-icon {
    font-size: 1.5rem;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.username {
    color: #e5a00d;
    font-weight: 500;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.icon-btn {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(229, 160, 13, 0.3);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.icon-btn:hover {
    background-color: rgba(229, 160, 13, 0.2);
    border-color: #e5a00d;
    transform: scale(1.05);
}

.icon-btn:active {
    transform: scale(0.95);
}

.icon-btn .material-symbols-outlined {
    color: #e5a00d;
    font-size: 22px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Content */
main {
    padding: 0 10px 20px 10px;
}

/* PIN Pad Styles */
.pin-pad {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

.pin-display {
    margin-bottom: 40px;
}

.pin-dots {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.pin-dots .dot {
    width: 18px;
    height: 18px;
    border: 2px solid #e5a00d;
    border-radius: 50%;
    background-color: transparent;
    transition: all 0.3s ease;
}

.pin-dots .dot.filled {
    background-color: #e5a00d;
    box-shadow: 0 0 15px rgba(229, 160, 13, 0.5);
}

.pin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 280px;
}

.pin-btn {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(229, 160, 13, 0.3);
    color: #ffffff;
    font-size: 1.8rem;
    font-family: 'Segoe UI', sans-serif;
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.pin-btn:hover {
    background-color: rgba(229, 160, 13, 0.2);
    border-color: #e5a00d;
    transform: scale(1.05);
}

.pin-btn:active {
    transform: scale(0.95);
    background-color: rgba(229, 160, 13, 0.3);
}

.pin-btn.pin-clear,
.pin-btn.pin-submit {
    background-color: rgba(229, 160, 13, 0.1);
    font-size: 1.5rem;
    font-weight: bold;
}

.pin-btn.pin-submit {
    background-color: rgba(229, 160, 13, 0.2);
}

.pin-btn.pin-submit:hover {
    background-color: rgba(229, 160, 13, 0.4);
}

.pin-error {
    margin-top: 20px;
    color: #ff4444;
    font-size: 0.9rem;
    text-align: center;
    min-height: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pin-error.show {
    opacity: 1;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.pin-pad.shake {
    animation: shake 0.3s ease-in-out;
}

/* Main Content Styles */
.main-content {
    padding: 0;
}

.requests-container {
    width: 100%;
}

.requests-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.request-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(229, 160, 13, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.request-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(229, 160, 13, 0.4);
}

.request-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 0;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    user-select: none;
    transition: padding-bottom 0.3s ease, border-bottom-color 0.3s ease;
}

.request-card.expanded .request-header {
    padding-bottom: 12px;
    border-bottom-color: rgba(229, 160, 13, 0.1);
}

.request-card.editing .request-header {
    cursor: default;
    pointer-events: none;
}

.request-card.editing .request-header .admin-actions {
    pointer-events: auto;
}

.request-card.editing .request-header .request-title {
    pointer-events: auto;
    cursor: text;
}

.request-expand-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    color: #888;
    margin-left: auto;
}

.request-expand-icon .material-symbols-outlined {
    font-size: 20px;
}

.request-card.expanded .request-expand-icon {
    transform: rotate(180deg);
}

.admin-actions {
    display: flex;
    gap: 6px;
}

.icon-btn-small {
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(229, 160, 13, 0.3);
    color: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.icon-btn-small:hover {
    background-color: rgba(229, 160, 13, 0.2);
    border-color: #e5a00d;
    transform: scale(1.05);
}

.icon-btn-small:active {
    transform: scale(0.95);
}

.icon-btn-small .material-symbols-outlined {
    font-size: 18px;
    color: #e5a00d;
}

.copy-title-btn {
    margin-right: 4px;
}

.request-status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.request-status:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.request-status .material-symbols-outlined {
    font-size: 16px;
}

.request-number {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
    width: 20px;
}

.request-poster {
    flex-shrink: 0;
    width: 40px;
    height: 56px;
    margin: 0 8px;
}

.request-poster img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid rgba(229, 160, 13, 0.3);
}

.request-poster-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(229, 160, 13, 0.05);
    border: 1px dashed rgba(229, 160, 13, 0.3);
    border-radius: 4px;
}

.request-poster-empty .material-symbols-outlined {
    font-size: 24px;
    color: #e5a00d;
    opacity: 0.7;
}

.request-status.status-offen .material-symbols-outlined {
    color: #2196F3;
}

.request-status.status-warten .material-symbols-outlined {
    color: #ffffff;
}

.request-status.status-verworfen .material-symbols-outlined {
    color: #f44336;
}

.request-status.status-erledigt .material-symbols-outlined {
    color: #4CAF50;
}

.request-title-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.request-title {
    font-size: 0.8rem;
    color: #ffffff;
    margin: 0;
}

.request-year {
    color: #888;
    font-weight: normal;
    margin-left: 6px;
}

.request-description {
    font-size: 0.7rem;
    color: #aaa;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.request-card[data-request-art="Fehler"] {
    border-color: rgba(244, 67, 54, 0.2);
}

.request-card[data-request-art="Fehler"]:hover {
    border-color: rgba(244, 67, 54, 0.4);
}

.request-card[data-request-art="Fehler"] .request-title {
    color: #f44336;
}

.request-card[data-request-art="Fehler"] .request-header {
    border-bottom-color: rgba(244, 67, 54, 0.1);
}

.request-card[data-request-art="Fehler"] .icon-btn-small {
    border-color: rgba(244, 67, 54, 0.3);
}

.request-card[data-request-art="Fehler"] .icon-btn-small:hover {
    background-color: rgba(244, 67, 54, 0.2);
    border-color: #f44336;
}

.request-card[data-request-art="Fehler"] .icon-btn-small .material-symbols-outlined {
    color: #f44336;
}

.request-card[data-request-art="Fehler"].editing .request-field-value[data-field],
.request-card[data-request-art="Fehler"].editing .request-title[data-field] {
    background-color: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.5);
}

.request-card[data-request-art="Fehler"].editing .request-field-value[contenteditable="true"]:focus,
.request-card[data-request-art="Fehler"].editing .request-title[contenteditable="true"]:focus {
    border-color: #f44336;
    background-color: rgba(244, 67, 54, 0.15);
}

.request-card[data-request-art="Fehler"] .inline-select,
.request-card[data-request-art="Fehler"] .inline-input {
    border-color: rgba(244, 67, 54, 0.5);
}

.request-card[data-request-art="Fehler"] .inline-select:focus,
.request-card[data-request-art="Fehler"] .inline-input:focus {
    border-color: #f44336;
    background-color: rgba(244, 67, 54, 0.15);
}

.request-body {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    padding-top: 0;
}

.request-card.expanded .request-body {
    max-height: 300px;
    opacity: 1;
    padding-top: 12px;
}

.request-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.request-field-label {
    font-size: 0.65rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    white-space: nowrap;
}

.request-field-value {
    font-size: 0.85rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.request-field-value.empty {
    color: #666;
    font-style: italic;
}

.request-field.field-type {
    width: 80px;
}

.request-field.field-art {
    width: 90px;
}

.request-field.field-year {
    width: 80px;
}

.request-field.field-user {
    width: 100px;
}

.request-field.field-comment {
    flex: 1;
    min-width: 100px;
}

.request-field.field-comment .request-field-value {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Inline Editing */
.request-card.editing .request-field-value[data-field],
.request-card.editing .request-title[data-field] {
    background-color: rgba(229, 160, 13, 0.1);
    border: 1px solid rgba(229, 160, 13, 0.5);
    border-radius: 4px;
    padding: 4px 8px;
    cursor: text;
    outline: none;
}

.request-card.editing .request-title[data-field] {
    padding: 6px 10px;
}

.request-card.editing .request-field-value[contenteditable="true"]:focus,
.request-card.editing .request-title[contenteditable="true"]:focus {
    border-color: #e5a00d;
    background-color: rgba(229, 160, 13, 0.15);
}

.inline-select,
.inline-input,
.inline-textarea {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(229, 160, 13, 0.5);
    border-radius: 4px;
    padding: 4px 8px;
    color: #ffffff;
    font-size: 0.85rem;
    font-family: 'Segoe UI', sans-serif;
    cursor: pointer;
    outline: none;
    width: 100%;
}

.inline-input,
.inline-textarea {
    cursor: text;
}

.inline-textarea {
    resize: vertical;
    min-height: 60px;
}

.inline-select:focus,
.inline-input:focus,
.inline-textarea:focus {
    border-color: #e5a00d;
    background-color: rgba(229, 160, 13, 0.15);
}

.inline-select option {
    background-color: #2a2a2a;
    color: #ffffff;
}

.no-requests {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 1rem;
}

.no-requests .material-symbols-outlined {
    font-size: 64px;
    color: rgba(229, 160, 13, 0.3);
    margin-bottom: 16px;
}

@media (max-width: 900px) {
    header {
        padding: 20px 15px 0;
    }

    .header-content {
        padding-bottom: 15px;
    }

    .logo {
        letter-spacing: 1px;
    }

    .user-bar {
        padding: 10px 0 15px;
        flex-wrap: nowrap;
        gap: 12px;
    }

    .server-info {
        flex: 0 0 auto;
        justify-content: flex-start;
    }

    .user-section {
        flex: 0 0 auto;
        gap: 0;
    }

    /* Hide user icon and username */
    .user-info {
        display: none;
    }

    .user-actions {
        gap: 10px;
    }

    /* Show vertical divider before user actions */
    .user-actions-divider {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .icon-btn {
        width: 36px;
        height: 36px;
    }

    .pin-grid {
        gap: 12px;
        max-width: 240px;
    }

    .pin-btn {
        font-size: 1.5rem;
        padding: 18px;
    }

    .pin-dots .dot {
        width: 16px;
        height: 16px;
    }

    .pin-dots {
        gap: 15px;
    }
}

@media (max-width: 730px) {
    .filter-badge {
        padding: 10px 12px;
    }

    .filter-badge-text {
        display: none;
    }

    .filter-badge .material-symbols-outlined {
        font-size: 22px;
    }

    /* Hide text in info badges on small screens */
    .info-badge .badge-text,
    .tutorial-badge .badge-text {
        display: none;
    }

    .info-badge .material-symbols-outlined,
    .tutorial-badge .material-symbols-outlined {
        font-size: 22px;
    }

    /* Hide user icon and username on very small screens */
    .user-info {
        display: none;
    }

    /* For non-admin users: keep everything on one row with divider */
    .user-bar:not(.has-admin-buttons) {
        flex-wrap: nowrap;
        gap: 12px;
    }

    .user-bar:not(.has-admin-buttons) .server-info {
        flex: 0 0 auto;
        justify-content: flex-start;
    }

    .user-bar:not(.has-admin-buttons) .user-section {
        flex: 0 0 auto;
        gap: 0;
    }

    .user-bar:not(.has-admin-buttons) .user-actions {
        gap: 10px;
    }

    .user-bar:not(.has-admin-buttons) .user-actions-divider {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    /* For admin users: two rows, no divider */
    .user-bar.has-admin-buttons {
        flex-wrap: wrap;
        gap: 12px;
    }

    .user-bar.has-admin-buttons .server-info {
        flex: 1 1 100%;
        justify-content: center;
    }

    .user-bar.has-admin-buttons .user-section {
        flex: 1 1 100%;
        justify-content: center;
    }

    .user-bar.has-admin-buttons .user-actions {
        gap: 10px;
    }

    .user-bar.has-admin-buttons .user-actions-divider {
        display: none;
    }
}

@media (max-width: 400px) {
    .pin-grid {
        gap: 10px;
        max-width: 200px;
    }

    .pin-btn {
        font-size: 1.3rem;
        padding: 15px;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: #2a2a2a;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    border: 1px solid rgba(229, 160, 13, 0.3);
    animation: modalFadeIn 0.3s ease-out;
    margin: auto;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(229, 160, 13, 0.2);
}

.modal-header h2 {
    font-size: 1.2rem;
    color: #e5a00d;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: #e5a00d;
    transform: scale(1.1);
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(229, 160, 13, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Segoe UI', sans-serif;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #e5a00d;
    background-color: rgba(229, 160, 13, 0.1);
}

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(229, 160, 13, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Segoe UI', sans-serif;
    transition: all 0.2s ease;
}

.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e5a00d;
    background-color: rgba(229, 160, 13, 0.1);
}

.form-group select option {
    background-color: #2a2a2a;
    color: #ffffff;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.form-group-row .form-group {
    margin-bottom: 0;
}

/* Request Modal - Media Info Display */
.request-media-info {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.request-poster-container {
    flex-shrink: 0;
    width: 92px;
    height: 138px;
}

.request-poster-container img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(229, 160, 13, 0.3);
}

.request-media-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.request-media-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
}

.request-media-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.request-media-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.request-media-title .media-result-title-text {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    flex: 1 1 auto;
}

.request-media-title .media-result-year {
    font-size: 0.9rem;
    color: #888;
    white-space: nowrap;
    flex-shrink: 0;
}

.request-media-description {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 4;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.request-form-fields {
    width: 100%;
}

/* Switch */
.form-group-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(229, 160, 13, 0.3);
    transition: all 0.3s ease;
    border-radius: 28px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #888;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.switch input:checked + .switch-slider {
    background-color: rgba(229, 160, 13, 0.3);
    border-color: #e5a00d;
}

.switch input:checked + .switch-slider:before {
    transform: translateX(22px);
    background-color: #e5a00d;
}

.switch input:disabled + .switch-slider {
    cursor: not-allowed;
    opacity: 0.5;
}

.switch-label {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.form-error {
    color: #ff4444;
    font-size: 0.9rem;
    margin-top: 10px;
    min-height: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: pre-line;
}

.form-error.show {
    opacity: 1;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-weight: 500;
}

.btn-primary {
    background-color: #e5a00d;
    color: #222222;
}

.btn-primary:hover {
    background-color: #f7b01e;
    transform: scale(1.02);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(229, 160, 13, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.btn-danger {
    background-color: #f44336;
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #d32f2f;
    transform: scale(1.02);
}

.btn-danger:active {
    transform: scale(0.98);
}

/* Delete Confirmation Modal */
.delete-confirm-title {
    color: #ffffff;
    font-size: 0.85rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.delete-title-highlight {
    color: #f44336;
    font-weight: 700;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background-color: #2a2a2a;
    border: 1px solid rgba(76, 175, 80, 0.5);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 2000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast-icon {
    color: #4CAF50;
    font-size: 24px;
}

.toast-message {
    color: #ffffff;
    font-weight: 500;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Status Detail Modal */
.modal-content-small {
    max-width: 400px;
}

.status-detail-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.status-detail-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.status-detail-label {
    font-size: 0.85rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-detail-value {
    font-size: 1.1rem;
    color: #e5a00d;
    font-weight: 600;
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 100%;
        margin: 0 10px;
    }

    .modal-header {
        padding: 16px 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

/* Tutorial Styles */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    pointer-events: none;
}

.tutorial-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    animation: tutorialBackdropFadeIn 0.4s ease-out;
    pointer-events: auto;
}

@keyframes tutorialBackdropFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.tutorial-spotlight {
    position: absolute;
    border: 6px solid #e5a00d;
    border-radius: 12px;
    background-color: transparent;
    box-shadow:
        0 0 0 9999px rgba(0, 0, 0, 0.90),
        0 0 0 14px rgba(229, 160, 13, 0.5),
        0 0 40px 0 rgba(229, 160, 13, 1);
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    pointer-events: none;
    z-index: 3001;
    animation: tutorialSpotlightPulse 2s ease-in-out infinite;
}

@keyframes tutorialSpotlightPulse {
    0%, 100% {
        border-color: #e5a00d;
        border-width: 6px;
        box-shadow:
            0 0 0 9999px rgba(0, 0, 0, 0.90),
            0 0 0 14px rgba(229, 160, 13, 0.5),
            0 0 40px 0 rgba(229, 160, 13, 1);
    }
    50% {
        border-color: #ffd700;
        border-width: 8px;
        box-shadow:
            0 0 0 9999px rgba(0, 0, 0, 0.90),
            0 0 0 16px rgba(255, 215, 0, 0.6),
            0 0 50px 0 rgba(255, 215, 0, 1);
    }
}

.tutorial-card {
    position: fixed;
    background-color: #2a2a2a;
    border: 2px solid #e5a00d;
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: calc(100% - 40px);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(229, 160, 13, 0.3);
    animation: tutorialCardSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
    z-index: 3002;
}

@keyframes tutorialCardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tutorial-step-indicator {
    color: #e5a00d;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tutorial-skip {
    background: none;
    border: none;
    color: #888;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px 8px;
}

.tutorial-skip:hover {
    color: #ffffff;
    transform: scale(1.05);
}

.tutorial-content {
    margin-bottom: 24px;
}

.tutorial-title {
    color: #ffffff;
    font-size: 1.3rem;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.tutorial-text {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.tutorial-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Tutorial Pulse Animation for highlighted elements */
@keyframes tutorialPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(229, 160, 13, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(229, 160, 13, 0);
    }
}

.tutorial-highlight {
    position: relative;
    z-index: 3003;
}

@media (max-width: 768px) {
    .tutorial-card {
        max-width: 100%;
        width: calc(100% - 30px);
        padding: 20px;
    }

    .tutorial-title {
        font-size: 1.1rem;
    }

    .tutorial-text {
        font-size: 0.9rem;
    }
}

/* Broadcast SMS Modal Styles */
.modal-content-large {
    max-width: 700px;
}

.broadcast-users-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 16px 0px 16px 0px;
    min-height: 80px;
    max-height: 250px;
    overflow-y: auto;
}

.broadcast-user-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #888;
    font-size: 0.75rem;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.broadcast-user-chip:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
}

.broadcast-user-chip:active {
    transform: scale(0.98);
}

.broadcast-user-chip.active {
    background-color: rgba(229, 160, 13, 0.2);
    border-color: rgba(229, 160, 13, 0.5);
    color: #e5a00d;
}

.broadcast-selection-controls {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.broadcast-message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    gap: 16px;
}

.broadcast-message-info {
    font-size: 0.75rem;
    color: #888;
    line-height: 1.4;
}

.broadcast-message-info .placeholder-insert {
    color: #e5a00d;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 2px 4px;
    border-radius: 4px;
}

.broadcast-message-info .placeholder-insert:hover {
    background-color: rgba(229, 160, 13, 0.2);
    color: #f7b01e;
}

.broadcast-message-controls {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.broadcast-char-count {
    font-size: 0.85rem;
    color: #e5a00d;
    font-weight: 500;
    white-space: nowrap;
}

/* Edit Mode - Media Link Section */
.edit-media-link-section {
    width: 100%;
    flex-basis: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(229, 160, 13, 0.1);
}

.edit-media-link-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.edit-cancel-btn {
    margin-left: auto;
}

.media-link-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.media-link-badge.linked {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.media-link-badge.manual {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
}

.media-link-badge.selected {
    background-color: rgba(229, 160, 13, 0.2);
    color: #e5a00d;
    border: 1px solid rgba(229, 160, 13, 0.4);
}

.media-link-badge .material-symbols-outlined {
    font-size: 14px;
}

.media-link-badge .icon-btn-small {
    width: 20px;
    height: 20px;
    margin-left: 4px;
}

.media-link-badge .icon-btn-small .material-symbols-outlined {
    font-size: 14px;
}

.edit-media-search-results {
    background-color: #2a2a2a;
    border: 1px solid rgba(229, 160, 13, 0.3);
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    z-index: 10000;
    position: fixed;
}

.edit-media-result-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid rgba(229, 160, 13, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-media-result-item:last-child {
    border-bottom: none;
}

.edit-media-result-item:hover {
    background-color: rgba(229, 160, 13, 0.1);
}

.edit-media-result-poster {
    width: 40px;
    height: 60px;
    border-radius: 4px;
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 10px;
}

.edit-media-result-poster img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: cover;
}

.edit-media-result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.edit-media-result-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-media-result-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    flex: 1;
}

.edit-media-result-year {
    font-size: 0.75rem;
    color: #888;
    white-space: nowrap;
    margin-left: auto;
}

@media (max-width: 768px) {
    .modal-content-large {
        max-width: 100%;
    }

    .broadcast-message-controls {
        flex-wrap: wrap;
    }

    .btn-small {
        flex: 1 1 calc(50% - 4px);
    }
}

/* Plex Availability Warning */
.plex-warning {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-top: 12px;
    background-color: rgba(229, 160, 13, 0.15);
    border-left: 4px solid #E5A00D;
    border-radius: 4px;
}

.plex-warning-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.plex-warning-text {
    color: #E5A00D;
    font-size: 0.9rem;
    line-height: 1.4;
}
