@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-dark: #070b13;
    --bg-sidebar: #0a0f1d;
    --bg-card: rgba(16, 24, 40, 0.7);
    --bg-input: rgba(13, 20, 35, 0.8);
    --primary-cyan: #00d2ff;
    --primary-blue: #0072ff;
    --accent-glow: rgba(0, 210, 255, 0.12);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-active: rgba(0, 210, 255, 0.35);
    --error: #ef4444;
    --success: #10b981;
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(0, 114, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(0, 210, 255, 0.05) 0%, transparent 50%);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #fff;
}

/* Szablon Aplikacji (Sidebar + Main) */
.app-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar */
.app-sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-logo {
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-glass);
}

.logo-bubble {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 0 15px var(--accent-glow);
}

.logo-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    background: linear-gradient(90deg, #fff, #a5f3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-nav {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    color: var(--text-muted);
    border-radius: 10px;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.nav-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.nav-item:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.02);
}

.nav-item.active {
    color: var(--primary-cyan);
    background: rgba(0, 210, 255, 0.05);
    border-color: rgba(0, 210, 255, 0.15);
    box-shadow: inset 0 0 12px rgba(0, 210, 255, 0.03);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-footer .version {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Główny obszar roboczy */
.app-main {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Górna belka */
.app-topbar {
    height: 75px;
    border-bottom: 1px solid var(--border-glass);
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(7, 11, 19, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 90;
}

.topbar-search {
    position: relative;
    width: 100%;
    max-width: 420px;
}

.topbar-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.topbar-search input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.8rem;
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: white;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition);
}

.topbar-search input:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px var(--accent-glow);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-btn {
    background: none;
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.topbar-btn:hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    background: rgba(0, 210, 255, 0.05);
}

.mobile-menu-toggle {
    display: none;
}

/* Wnętrze dashboardu */
.app-body {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Nagłówek sekcji */
.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Statystyki w rzędzie */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.dashboard-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.dashboard-stat-card:hover {
    border-color: var(--border-active);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -10px var(--accent-glow);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-card-header i {
    color: var(--primary-cyan);
    font-size: 1.1rem;
}

.stat-card-value {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 0.75rem;
}

.stat-card-sparkline {
    height: 30px;
    width: 100%;
}

.sparkline {
    width: 100%;
    height: 100%;
}

/* Filtry i nagłówek listy */
.filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1.25rem;
}

.filter-row h3 {
    font-size: 1.4rem;
    color: #fff;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 0.45rem 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.chip:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.chip.active {
    background: rgba(0, 210, 255, 0.08);
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.05);
}

/* Lista badań - siatka w stylu dashboardu */
.studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
    margin-bottom: 4rem;
}

.study-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 1.75rem;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.study-card:hover {
    border-color: var(--border-active);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -10px var(--accent-glow);
}

/* Górne elementy karty */
.study-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.card-number-badge {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-cyan);
}

.study-card-actions-top {
    display: flex;
    gap: 0.5rem;
}

.action-icon-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
}

.action-icon-btn:hover {
    color: white;
}

/* Tytuł i autor */
.study-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
    line-height: 1.4;
    min-height: 50px;
}

.study-authors {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.study-authors span {
    font-weight: 500;
    color: var(--text-muted);
}

/* Tag i rok */
.study-card-info-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
}

.study-badge {
    background: rgba(0, 210, 255, 0.08);
    color: var(--primary-cyan);
    border: 1px solid rgba(0, 210, 255, 0.15);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
}

.study-journal-year {
    color: var(--text-muted);
    font-weight: 500;
}

/* Podsumowanie i treść */
.study-summary {
    font-size: 0.9rem;
    color: #d1d5db;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Accordion szczegółów */
.study-details-box {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.study-details-content {
    padding: 1rem;
    font-size: 0.88rem;
    border-top: 1px solid var(--border-glass);
    color: #9ca3af;
}

.study-details-content strong {
    color: #fff;
    display: block;
    margin-bottom: 0.25rem;
}

/* Dół karty */
.study-card-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 1.25rem;
}

.btn-summary-view {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 0.6rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-summary-view:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #fff;
}

.btn-summary-view.active i {
    transform: rotate(180deg);
}

.btn-summary-view i {
    transition: var(--transition);
}

.card-action-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.btn-card-action {
    padding: 0.55rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.btn-card-action.primary {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    color: white;
}

.btn-card-action.primary:hover {
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3);
}

.btn-card-action.secondary {
    background: rgba(0, 210, 255, 0.05);
    border: 1px solid rgba(0, 210, 255, 0.15);
    color: var(--primary-cyan);
}

.btn-card-action.secondary:hover {
    background: rgba(0, 210, 255, 0.1);
    color: #fff;
}

/* Brak wyników */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    border: 1px dashed var(--border-glass);
    border-radius: 16px;
    color: var(--text-muted);
}

.no-results i {
    margin-bottom: 1rem;
    color: var(--primary-cyan);
}

/* Disclaimer Sekcja */
.disclaimer-section {
    background: rgba(239, 68, 68, 0.03);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
}

.disclaimer-section h4 {
    color: #fca5a5;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.disclaimer-section p {
    font-size: 0.85rem;
    color: #fca5a5;
    opacity: 0.8;
    line-height: 1.6;
}

/* Stopka */
.app-footer {
    border-top: 1px solid var(--border-glass);
    padding: 2rem;
    background: #05080e;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

/* PANEL ADMINA W DASHBOARDE */
.admin-dashboard {
    padding: 0;
}

/* Modal Formularza */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 110;
    padding: 1.5rem;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #0c111d;
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.3rem;
    color: white;
}

.btn-close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
}

.btn-close-modal:hover {
    color: white;
}

.modal-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.pdf-upload-box {
    border: 2px dashed var(--border-glass);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    background: var(--bg-input);
    cursor: pointer;
    transition: var(--transition);
}

.pdf-upload-box:hover {
    border-color: var(--primary-cyan);
}

.pdf-upload-box i {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.pdf-upload-box.has-file {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.02);
}

.pdf-upload-box.has-file i {
    color: var(--success);
}

.old-pdf-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.old-pdf-info span {
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 75%;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--error);
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 120;
}

.toast {
    background: #101625;
    border: 1px solid var(--border-glass);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(100px);
    opacity: 0;
    animation: slideIn 0.3s forwards;
    font-size: 0.9rem;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--error);
}

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

/* Tabela Admina */
.admin-table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow-x: auto;
    margin-bottom: 3rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.admin-table th, .admin-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-glass);
}

.admin-table th {
    background: rgba(0, 0, 0, 0.15);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.admin-table-title {
    font-weight: 600;
    color: #fff;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-badge {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(0, 210, 255, 0.05);
    border: 1px solid rgba(0, 210, 255, 0.1);
    color: var(--primary-cyan);
}

.btn-row-action {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.45rem;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-row-action.edit {
    color: var(--primary-cyan);
}

.btn-row-action.edit:hover {
    background: rgba(0, 210, 255, 0.08);
}

.btn-row-action.delete {
    color: var(--error);
}

.btn-row-action.delete:hover {
    background: rgba(239, 68, 68, 0.08);
}

/* Ekran Logowania */
.login-container {
    max-width: 400px;
    margin: 8rem auto;
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.login-container h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-container p {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 1.75rem;
}

.btn-submit {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.35);
}

.login-alert {
    padding: 0.75rem;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

/* RESPONSyWNOŚĆ */
@media (max-width: 1024px) {
    .app-sidebar {
        left: -260px;
    }
    
    .app-sidebar.active {
        left: 0;
    }
    
    .app-main {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: 1px solid var(--border-glass);
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 1rem;
    }
    
    .mobile-menu-toggle:hover {
        border-color: var(--primary-cyan);
        color: var(--primary-cyan);
    }
}

@media (max-width: 768px) {
    .app-body {
        padding: 1.5rem;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .topbar-search {
        max-width: 200px;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .footer-wrapper {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .app-topbar {
        padding: 0 1rem;
    }
    
    .topbar-search {
        display: none; /* Ukryj wyszukiwarkę na najmniejszych ekranach lub przenieś do body */
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Wyróżniona sekcja wideo edukacyjnego */
.video-feature-section {
    margin-bottom: 2.5rem;
}

.video-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.video-feature-card:hover {
    border-color: var(--border-active);
    box-shadow: 0 10px 28px -10px var(--accent-glow);
}

/* Kompaktowy układ 2-kolumnowy */
.video-feature-compact {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.video-thumb-col {
    width: 280px;
    min-width: 280px;
    flex-shrink: 0;
}

.video-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.video-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(0, 210, 255, 0.1);
    color: var(--primary-cyan);
    border: 1px solid rgba(0, 210, 255, 0.25);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    align-self: flex-start;
}

.video-feature-title {
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.video-feature-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.video-thumbnail-card {
    background: rgba(13, 20, 35, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.video-thumbnail-card:hover {
    border-color: var(--border-active);
}

.video-cover-link {
    display: block;
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    overflow: hidden;
    background: #000;
}

.video-thumbnail-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-cover-link:hover .video-thumbnail-img {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.video-cover-link:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.15);
}

.play-btn-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    transition: transform 0.3s ease;
    padding-left: 3px;
}

.video-cover-link:hover .play-btn-circle {
    transform: scale(1.15);
}

.video-time-tag {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-time-tag i {
    color: #ff0000;
}

.video-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-glass);
}

.video-meta-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.badge-source {
    color: var(--primary-cyan);
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

@media (max-width: 900px) {
    .video-feature-compact {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }
    
    .video-thumb-col {
        width: 100%;
        max-width: 400px;
    }
}

