/* ===================================
   CSS VARIABLES ЗАТЕМНИ
   =================================== */
:root[data-theme="dark"] {
    --bg-primary: #121212;
    --bg-secondary: #1f1f1f;
    --bg-tertiary: #2a2a2a;
    --bg-input: #181818;
    --text-primary: #e0e0e0;
    --text-secondary: #aaa;
    --border-color: #333;
    --border-color-light: #3a3a3a;
    --accent-color: #ffc107;
    --accent-hover: #e0a800;
    --shadow: rgba(0, 0, 0, 0.5);
    --shadow-light: rgba(0, 0, 0, 0.3);
}

:root[data-theme="light"] {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8e8e8;
    --bg-input: #f9f9f9;
    --text-primary: #212121;
    --text-secondary: #666;
    --border-color: #ddd;
    --border-color-light: #e0e0e0;
    --accent-color: #ff9800;
    --accent-hover: #f57c00;
    --shadow: rgba(0, 0, 0, 0.15);
    --shadow-light: rgba(0, 0, 0, 0.08);
}

/* ===================================
   ОСНОВНИ СТИЛОВЕ
   =================================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

/* ===================================
   НАВИГАЦИЯ
   =================================== */
nav {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px var(--shadow);
    transition: background-color 0.3s ease;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-color);
    cursor: pointer;
    transition: color 0.2s;
}

.logo:hover {
    color: var(--accent-hover);
}

.nav-right-side {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--text-primary);
    font-size: 16px;
    padding: 5px 0;
    transition: color 0.2s, border-bottom 0.2s;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

/* ===================================
   ТЪРСАЧКА
   =================================== */
.search-container {
    position: relative;
    margin-right: 30px;
}

.search-form {
    display: flex;
}

#searchInput {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 16px;
    width: 250px;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    box-shadow: inset 0 1px 3px var(--shadow-light);
    transition: all 0.3s ease;
}

#searchInput::placeholder {
    color: var(--text-secondary);
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 250px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--accent-color);
    border-top: none;
    z-index: 1000;
    box-shadow: 0 4px 10px var(--shadow);
    max-height: 400px;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
}

.autocomplete-item {
    padding: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    box-sizing: border-box;
    text-decoration: none;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: var(--bg-secondary);
}

.autocomplete-poster {
    width: 30px;
    height: 45px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 3px;
}

.autocomplete-item span {
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-item.no-results {
    color: var(--text-secondary);
    font-style: italic;
    cursor: default;
}

/* ===================================
   ГЛАВЕН КОНТЕЙНЕР
   =================================== */
.main-wrapper {
    display: flex;
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
    padding: 20px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-light);
    margin-right: 20px;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

.sidebar h3 {
    color: var(--accent-color);
    border-bottom: 2px solid var(--border-color-light);
    padding-bottom: 10px;
    margin-top: 0;
    font-size: 20px;
}

#genreList {
    list-style: none;
    padding: 0;
    margin: 0;
}

#genreList li {
    margin-bottom: 8px;
}

.genre-link {
    display: block;
    padding: 5px 10px;
    color: var(--text-primary);
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    font-size: 15px;
}

.genre-link:hover {
    background-color: var(--bg-tertiary);
    color: var(--accent-color);
}

.genre-link.active {
    background-color: var(--accent-color);
    color: var(--bg-secondary);
    font-weight: 600;
}

.main-content {
    flex-grow: 1;
}

.main-content.full-width {
    width: 100%;
    margin-right: 0;
}

.section-title {
    color: var(--accent-color);
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color-light);
}

/* ===================================
   КАРТИ С ФИЛМИ
   =================================== */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.movie-card {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px var(--shadow-light);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s ease;
    cursor: pointer;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px var(--shadow);
}

.movie-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.movie-info {
    padding: 10px;
}

.movie-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-info .rating {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 14px;
    margin-right: 10px;
}

.movie-info .year {
    font-size: 14px;
    color: var(--text-secondary);
}

.empty-message {
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: var(--text-secondary);
    background-color: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-light);
}

/* ===================================
   СТРАНИЦА НА ФИЛМ
   =================================== */
.movie-page {
    padding: 20px;
    background-color: var(--bg-secondary);
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: background-color 0.3s ease;
}

.movie-container {
    display: flex;
    gap: 30px;
}

.movie-poster {
    width: 300px;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow);
}

.movie-info-details {
    flex-grow: 1;
}

.movie-title {
    color: var(--accent-color);
    margin-top: 0;
    font-size: 36px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.movie-meta {
    margin-bottom: 20px;
    font-size: 18px;
}

.movie-rating {
    font-weight: 700;
    color: var(--accent-color);
    margin-right: 20px;
}

.movie-description {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 25px;
}

.genre-tag {
    display: inline-block;
    background-color: var(--bg-tertiary);
    color: var(--accent-color);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-weight: 500;
}

.movie-genres-list {
    font-weight: 600;
    color: var(--text-primary);
}

#movieVideoContainer {
    margin-top: 30px;
}

.fake-video-player {
    position: relative;
    width: 100%;
    height: 450px;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--shadow);
}

.fake-video-player img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.fake-video-player:hover img {
    opacity: 0.6;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 193, 7, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.play-button:hover {
    background-color: rgba(255, 193, 7, 0.9);
}

.play-icon {
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid #1f1f1f;
    margin-left: 5px;
}

/* ===================================
   FAVORITE БУТОН
   =================================== */
.fav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    margin-top: 15px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #1f1f1f;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.fav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
}

.fav-btn:active {
    transform: scale(0.95);
}

.fav-btn.is-favorite {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.fav-btn.is-favorite:hover {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.fav-icon {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.fav-btn:hover .fav-icon {
    transform: scale(1.2);
}

.fav-text {
    font-weight: 600;
}

.fav-status-message {
    font-size: 14px;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.fav-status-message.success {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 3px solid #28a745;
}

.fav-status-message.error {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 3px solid #dc3545;
}

.history-info {
    padding: 0 10px 10px;
    text-align: right;
    color: var(--text-secondary);
    font-size: 12px;
}

/* ===================================
   AUTH (LOGIN / REGISTER)
   =================================== */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background-color: var(--bg-secondary);
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow);
    text-align: center;
    transition: background-color 0.3s ease;
}

.auth-box {
    width: 100%;
}

.auth-container h1 {
    color: var(--accent-color);
    margin-bottom: 18px;
    margin-top: 0;
    font-size: 2em;
}

.auth-container .subtitle {
    color: var(--text-primary);
    font-size: 1.12em;
    margin-bottom: 26px;
}

.auth-container h2 {
    color: var(--accent-color);
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color-light);
    padding-bottom: 10px;
}

.auth-container label {
    display: block;
    text-align: left;
    margin-top: 10px;
    font-weight: 500;
    color: var(--accent-color);
    letter-spacing: 0.7px;
    font-size: 13px;
    text-transform: uppercase;
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"] {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: var(--bg-input);
    color: var(--text-primary);
    transition: border-color 0.21s, background 0.18s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--bg-tertiary);
}

.auth-container button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #ffc107 0%, #ff9800 100%);
    color: #181818;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.08);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.16s;
    margin-top: 2px;
}

.auth-container button:hover {
    background: linear-gradient(90deg, #ff9800 0%, #ffc107 95%);
    color: #232323;
    transform: scale(1.03);
}

.auth-container .error-list {
    color: #f8d7da;
    background-color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    text-align: left;
}

.auth-container .error-message {
    list-style: none;
}

.auth-container .success-message {
    background: #253b27;
    color: #b7ffc4;
    border: 1px solid #2e7d32;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    margin-bottom: 15px;
    font-weight: 600;
}

.auth-links {
    margin-top: 10px;
    font-size: 15px;
    color: var(--accent-color);
}

.auth-links a.gold-link {
    color: var(--accent-color);
    font-weight: bold;
}

.auth-links a {
    color: var(--accent-color);
}

.auth-container p {
    margin-top: 20px;
    font-size: 14px;
}

.error-list {
    color: #f8d7da;
    background-color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    text-align: left;
    list-style: none;
}

.success-message {
    background: #253b27;
    color: #b7ffc4;
    border: 1px solid #2e7d32;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* ===================================
   PROFILE PAGE - 4 КАРТИ
   =================================== */
.profile-wrapper {
    min-height: calc(100vh - 80px);
    background-color: var(--bg-primary);
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    transition: background-color 0.3s ease;
}

.profile-container {
    width: 100%;
    max-width: 1200px;
}

.profile-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 25px;
}

.profile-title {
    margin: 0;
    color: var(--accent-color);
    font-size: 26px;
}

.profile-subtitle {
    margin: 5px 0 0 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.profile-username-pill {
    background: var(--bg-secondary);
    border-radius: 999px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow);
    transition: background-color 0.3s ease;
}

.profile-username-pill .pill-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-secondary);
}

.profile-username-pill .pill-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color);
}

.profile-alert {
    margin-bottom: 30px;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.profile-alert.error {
    background: #721c24;
    border: 1px solid #f5c6cb;
    color: #f8d7da;
}

.profile-alert.success {
    background: #1a2e1a;
    border: 1px solid #155724;
    color: #d4edda;
}

.profile-alert ul {
    margin: 0;
    padding-left: 20px;
}

.profile-alert li {
    margin-bottom: 6px;
}

.profile-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.profile-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 22px 20px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--shadow);
    border-color: var(--accent-color);
}

.card-header {
    font-size: 1.1em;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.card-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.profile-card input[type="text"],
.profile-card input[type="password"],
.profile-card input[type="email"] {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.95em;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    margin-top: 4px;
}

.profile-card input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--bg-tertiary);
    box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.4);
}

.profile-card button {
    padding: 10px 16px;
    background: linear-gradient(90deg, #ffc107 0%, #ff9800 100%);
    color: #0f0f0f;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 6px;
}

.profile-card button:hover {
    background: linear-gradient(90deg, #ff9800 0%, #ffc107 100%);
    transform: scale(1.02);
}

/* ===================================
   ТЕМА КАРТА - СПЕЦИАЛНИ СТИЛОВЕ
   =================================== */
.theme-card {
    grid-column: span 2;
}

.theme-description {
    margin: 0 0 20px 0;
    color: var(--text-secondary);
    font-size: 0.95em;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.theme-option {
    cursor: pointer;
}

.theme-option input[type="radio"] {
    display: none;
}

.theme-card-preview {
    border: 3px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    text-align: center;
}

.theme-option input[type="radio"]:checked + .theme-card-preview {
    border-color: var(--accent-color);
    background-color: var(--bg-tertiary);
    box-shadow: 0 4px 15px var(--shadow);
}

.theme-preview {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.dark-preview {
    background: #121212;
}

.light-preview {
    background: #f5f5f5;
}

.preview-header {
    height: 25%;
    width: 100%;
}

.dark-preview .preview-header {
    background: #1f1f1f;
}

.light-preview .preview-header {
    background: #ffffff;
}

.preview-content {
    padding: 8px;
    display: flex;
    gap: 6px;
}

.preview-box {
    flex: 1;
    height: 50px;
    border-radius: 4px;
}

.dark-preview .preview-box {
    background: #2a2a2a;
}

.light-preview .preview-box {
    background: #e8e8e8;
}

.theme-name {
    font-weight: 600;
    font-size: 0.95em;
    color: var(--text-primary);
    display: block;
}

.theme-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(90deg, #ffc107 0%, #ff9800 100%);
    color: #0f0f0f;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.2s;
}

.theme-btn:hover {
    background: linear-gradient(90deg, #ff9800 0%, #ffc107 100%);
    transform: scale(1.02);
}

/* Logout card specifics */
.logout-card p {
    margin: 0 0 14px 0;
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.5;
}

.logout-hint {
    margin-top: 8px;
    font-size: 0.85em;
    color: var(--text-secondary);
}

.logout-btn {
    display: inline-block;
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(90deg, #c82333 0%, #a01b2a 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95em;
    cursor:pointer;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: linear-gradient(90deg, #a01b2a 0%, #c82333 100%);
    transform: scale(1.02);
}

/* ===================================
   КОМЕНТАР И СЕКЦИЯ
   =================================== */
.comments-section {
    margin-top: 40px;
    padding: 25px;
    background-color: var(--bg-tertiary);
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.comments-section h3 {
    color: var(--accent-color);
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color-light);
    padding-bottom: 10px;
}

/* Форма за коментари */
.comment-form {
    margin-bottom: 30px;
}

.comments-section textarea,
.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s, background-color 0.3s ease;
}

.comments-section textarea:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.comment-submit-btn {
    margin-top: 10px;
    padding: 10px 25px;
    background: linear-gradient(90deg, #ffc107 0%, #ff9800 100%);
    color: #1f1f1f;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.comment-submit-btn:hover {
    background: linear-gradient(90deg, #ff9800 0%, #ffc107 100%);
    transform: translateY(-2px);
}

/* Съобщение за логин */
.login-prompt {
    padding: 15px;
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--accent-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 15px;
}

.login-prompt a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: underline;
}

/* Списък с коментари */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    background-color: var(--bg-secondary);
    padding: 18px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.comment-item:hover {
    box-shadow: 0 4px 12px var(--shadow-light);
}

/* Хедър на коментар */
.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-author {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 15px;
}

.comment-date {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Тяло на коментар */
.comment-body {
    margin-bottom: 12px;
}

.comment-body p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 15px;
}

/* Действия с коментари (like, reply) */
.comment-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.like-btn:hover {
    background-color: var(--bg-primary);
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.like-btn.liked {
    background-color: rgba(220, 53, 69, 0.15);
    border-color: #dc3545;
    color: #dc3545;
}

.like-icon {
    font-size: 16px;
    line-height: 1;
}

.like-count {
    font-weight: 600;
}

.reply-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reply-btn:hover {
    background-color: var(--bg-primary);
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.like-display {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: var(--bg-tertiary);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* Форма за отговори */
.reply-form-container {
    margin-top: 15px;
    padding: 15px;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    border: 2px dashed var(--border-color);
}

.reply-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.reply-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.reply-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.reply-submit-btn {
    padding: 8px 18px;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.reply-submit-btn:hover {
    background: linear-gradient(90deg, #20c997 0%, #28a745 100%);
    transform: translateY(-1px);
}

.reply-cancel-btn {
    padding: 8px 18px;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.reply-cancel-btn:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--accent-color);
}

/* Контейнер за отговори */
.replies-container {
    margin-top: 15px;
    padding-left: 20px;
    border-left: 3px solid var(--border-color-light);
}

.reply-item {
    background-color: var(--bg-tertiary);
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 8px;
    border-left: 3px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.reply-item:last-child {
    margin-bottom: 0;
}

.reply-item:hover {
    background-color: var(--bg-secondary);
}

/* Съобщение без коментари */
.no-comments {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 16px;
    font-style: italic;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border: 2px dashed var(--border-color);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .main-wrapper {
        flex-direction: column;
        padding: 0 10px;
    }

    .sidebar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .profile-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .theme-card {
        grid-column: span 1;
    }

    .profile-header-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-username-pill {
        align-self: flex-start;
    }
}

@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        padding: 15px 15px;
    }

    .nav-right-side {
        width: 100%;
        margin-top: 10px;
        justify-content: space-between;
    }

    .search-container {
        margin-right: 15px;
        flex-grow: 1;
    }

    #searchInput {
        width: 100%;
    }

    nav ul {
        flex-grow: 1;
        justify-content: flex-end;
    }

    nav ul li {
        margin-left: 10px;
        font-size: 14px;
    }

    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .movie-card img {
        height: 220px;
    }

    .movie-container {
        flex-direction: column;
    }

    .movie-poster {
        width: 100%;
        height: auto;
    }

    .profile-wrapper {
        padding: 30px 10px;
    }

    .profile-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .profile-card {
        padding: 20px 16px;
    }

    .fav-btn {
        width: 100%;
        justify-content: center;
    }

    .theme-options {
        grid-template-columns: 1fr;
    }

    /* Responsive коментари */
    .comments-section {
        padding: 15px;
    }

    .comment-item {
        padding: 15px;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-actions {
        gap: 10px;
    }

    .replies-container {
        padding-left: 10px;
        border-left-width: 2px;
    }

    .reply-form-actions {
        flex-direction: column;
    }

    .reply-submit-btn,
    .reply-cancel-btn {
        width: 100%;
    }
}