/*
Theme Name: Voice Actors
Description: Professional voice actors catalog theme for WordPress
Version: 1.0.0
Author: Voice Actors Team
Text Domain: voice-actors
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* WordPress Compatibility */
.wp-block-group {
    margin-bottom: 0;
}

.wp-block-image {
    margin: 0;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
}

/* WordPress Admin Bar Compatibility */
body.admin-bar .main-content {
    padding-top: 100px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .main-content {
        padding-top: 120px;
    }
}

/* WordPress Button Compatibility */
.btn, .button, input[type="submit"], input[type="button"] {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.btn:hover, .button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn:focus, .button:focus, input[type="submit"]:focus, input[type="button"]:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.btn:disabled, .button:disabled, input[type="submit"]:disabled, input[type="button"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* WordPress Notice Styles */
.voice-actors-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.voice-actors-notification.notice-success {
    background: #d1e7dd;
    border-left: 4px solid #0f5132;
    color: #0f5132;
}

.voice-actors-notification.notice-error {
    background: #f8d7da;
    border-left: 4px solid #842029;
    color: #842029;
}

.voice-actors-notification.notice-warning {
    background: #fff3cd;
    border-left: 4px solid #664d03;
    color: #664d03;
}

.voice-actors-notification.notice-info {
    background: #d1ecf1;
    border-left: 4px solid #055160;
    color: #055160;
}

.voice-actors-notification .notice-dismiss {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-actors-notification .notice-dismiss:hover {
    opacity: 0.7;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: 240 10% 3.9%;
    --foreground: 0 0% 98%;
    --card: 240 6% 10%;
    --card-foreground: 0 0% 98%;
    --popover: 240 6% 10%;
    --popover-foreground: 0 0% 98%;
    --primary: 217 91% 60%;
    --primary-foreground: 0 0% 100%;
    --primary-glow: 217 91% 70%;
    --secondary: 240 5% 20%;
    --secondary-foreground: 0 0% 98%;
    --muted: 240 5% 18%;
    --muted-foreground: 240 5% 65%;
    --accent: 210 100% 50%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 6% 20%;
    --input: 240 6% 20%;
    --ring: 217 91% 60%;
    --radius: 0.75rem;
    --gradient-primary: linear-gradient(135deg, hsl(217 91% 60%), hsl(210 100% 50%));
    --gradient-card: linear-gradient(180deg, hsl(240 6% 12%), hsl(240 6% 8%));
    --shadow-glow: 0 0 40px hsl(217 91% 70% / 0.15);
    --shadow-card: 0 4px 20px hsl(0 0% 0% / 0.4);
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    line-height: 1.6;
    font-weight: 400;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, hsl(var(--background)), hsl(var(--background)) 0%, hsl(var(--primary) / 0.05));
    border-bottom: 1px solid hsl(var(--border));
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiM4ODg4ODgiIGZpbGwtb3BhY2l0eT0iMC4wNSI+PHBhdGggZD0iTTM2IDE2YzAtNi42MjcgNS4zNzMtMTIgMTItMTJzMTIgNS4zNzMgMTIgMTItNS4zNzMgMTItMTIgMTItMTItNS4zNzMtMTItMTJ6TTAgMTZjMC02LjYyNyA1LjM3My0xMiAxMi0xMnMxMiA1LjM3MyAxMiAxMi01LjM3MyAxMi0xMiAxMi0xMi01LjM3My0xMi0xMnpNMzYgMzZjMC02LjYyNyA1LjM3My0xMiAxMi0xMnMxMiA1LjM3MyAxMiAxMi01LjM3MyAxMi0xMiAxMi0xMi01LjM3My0xMi0xMnpNMCA1MmMwLTYuNjI3IDUuMzczLTEyIDEyLTEyczEyIDUuMzczIDEyIDEyLTUuMzczIDEyLTEyIDEyLTEyLTUuMzczLTEyLTEyeiIvPjwvZz48L2c+PC9zdmc+');
    opacity: 0.4;
}

.header-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 60px 0;
}

.header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin-bottom: 30px;
    box-shadow: var(--shadow-glow);
}

.header-icon svg {
    width: 40px;
    height: 40px;
    color: hsl(var(--primary-foreground));
}

.header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)), hsl(var(--primary)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.header-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.header-stats svg {
    width: 16px;
    height: 16px;
    color: hsl(var(--accent));
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}


.auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    background: hsl(var(--muted));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px hsl(var(--muted) / 0.3);
}

/* User block (when logged in) */
.user-info {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-btn:hover {
    background: hsl(var(--muted) / 0.5);
    border-color: hsl(var(--primary) / 0.5);
}

.user-btn .user-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    min-width: 220px;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.user-info.user-menu-open .user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-content {
    padding: 8px 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: hsl(var(--foreground));
    font-size: 14px;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.user-menu-item:hover {
    background: hsl(var(--muted) / 0.5);
}

.user-menu-email {
    color: hsl(var(--muted-foreground));
    font-size: 13px;
    cursor: default;
}

.user-menu-email:hover {
    background: transparent;
}

.user-menu-dashboard,
.user-menu-logout {
    color: hsl(var(--foreground));
}

.user-menu-logout {
    color: hsl(var(--destructive, 239 84% 67%));
}

/* Search Section */
.search-section {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid hsl(var(--border) / 0.5);
    background: hsl(var(--background) / 0.8);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.search-container {
    padding: 24px 0;
}

.search-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: hsl(var(--card) / 0.95);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    border: 1px solid hsl(var(--border) / 0.5);
}

.search-icon {
    flex-shrink: 0;
    padding: 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--accent) / 0.1));
}

.search-icon svg {
    width: 20px;
    height: 20px;
    color: hsl(var(--primary));
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: hsl(var(--foreground));
    outline: none;
}

.search-input::placeholder {
    color: hsl(var(--muted-foreground) / 0.6);
}

.search-clear {
    flex-shrink: 0;
    background: none;
    border: none;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.search-clear:hover {
    color: hsl(var(--foreground));
}

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

/* Price Category */
.price-category {
    margin-bottom: 80px;
}

.price-category-header {
    text-align: center;
    margin-bottom: 40px;
}

.price-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.2), hsl(var(--accent) / 0.2));
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid hsl(var(--primary) / 0.3);
}

.price-category-icon svg {
    width: 30px;
    height: 30px;
    color: hsl(var(--primary));
}

.price-category h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #007bff;
    text-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
    background: linear-gradient(45deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
    }
    100% {
        text-shadow: 0 0 30px rgba(0, 123, 255, 0.8), 0 0 40px rgba(0, 123, 255, 0.3);
    }
}

.price-category-description {
    font-size: 1.5rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 8px;
}

.price-category-subtitle {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* Voice Actor Grid */
.voice-actors-grid {
    display: grid;
    grid-template-columns: repeat(4, 283px);
    gap: 24px;
    margin-bottom: 40px;
    justify-content: center;
}

/* Responsive grid for smaller screens */
@media (max-width: 1200px) {
    .voice-actors-grid {
        grid-template-columns: repeat(3, 283px);
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .voice-actors-grid {
        grid-template-columns: repeat(2, 283px);
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .voice-actors-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        justify-items: center;
    }
}

/* Voice Actor Card */
.voice-actor-card {
    background: var(--gradient-card);
    border: 1px solid hsl(var(--border));
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 283px;
    height: 650px;
}

.voice-actor-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.voice-actor-image {
    position: relative;
    width: 100%;
    height: 360px; /* reserve space for content below */
    overflow: hidden;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--accent) / 0.1));
    flex-shrink: 0;
}

.voice-actor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 12px;
    background: hsl(var(--muted) / 0.1);
}

.voice-actor-card:hover .voice-actor-image img {
    transform: scale(1.1);
}

.voice-actor-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--accent) / 0.1));
    border-radius: 12px;
}

.voice-actor-placeholder svg {
    width: 128px;
    height: 128px;
    opacity: 0.7;
}

.voice-actor-placeholder.male svg {
    color: #3b82f6;
}

.voice-actor-placeholder.female svg {
    color: #ec4899;
}

.voice-actor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, hsl(var(--background) / 0.9), hsl(var(--background) / 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.voice-actor-card:hover .voice-actor-overlay {
    opacity: 1;
}

/* Microphone icon removed - no longer needed */

/* Comments Section */
.voice-actor-comments {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid hsl(var(--border));
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.voice-actor-comments h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 8px;
}

.voice-actor-comments h5 {
    font-size: 1rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    margin-bottom: 12px;
}

.comments-list {
    margin-bottom: 8px;
    max-height: 80px;
    overflow: auto;
    padding-right: 4px;
    flex: 1 1 auto;
    min-height: 0;
}

/* Slim scrollbar inside comments */
.comments-list::-webkit-scrollbar { width: 6px; }
.comments-list::-webkit-scrollbar-thumb { background: hsl(var(--muted)); border-radius: 4px; }

.comment-item {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.comment-item:hover {
    border-color: hsl(var(--primary) / 0.3);
    box-shadow: 0 2px 8px hsl(var(--primary) / 0.1);
}

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

.comment-author {
    font-weight: 600;
    color: hsl(var(--foreground));
}

.comment-rating {
    display: flex;
    gap: 2px;
}

.comment-rating .star {
    color: #fbbf24;
    font-size: 14px;
}

.comment-rating .star.filled {
    color: #f59e0b;
}

.comment-text {
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
    margin-bottom: 8px;
}

.comment-date {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground) / 0.7);
}

.no-comments {
    text-align: center;
    color: hsl(var(--muted-foreground));
    font-style: italic;
    padding: 20px;
    background: hsl(var(--muted) / 0.3);
    border-radius: 8px;
}

.add-comment-section {
    margin-top: 8px;
    flex-shrink: 0;
}

.toggle-comment-form-btn {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
}

.toggle-comment-form-btn:hover {
    background: hsl(var(--primary) / 0.9);
    transform: translateY(-1px);
}

.toggle-comment-form-btn i {
    transition: transform 0.2s ease;
}

.toggle-comment-form-btn.active i {
    transform: rotate(45deg);
}

.add-comment-form {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    padding: 20px;
    margin-top: 12px;
    animation: slideDown 0.3s ease-out;
    transform-origin: top;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scaleY(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

.add-comment-form.hidden {
    animation: slideUp 0.3s ease-in;
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
    to {
        opacity: 0;
        transform: translateY(-10px) scaleY(0.8);
    }
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid hsl(var(--border));
    border-radius: 6px;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.rating-input label {
    font-weight: 500;
    color: hsl(var(--foreground));
}

.star-rating-input {
    display: flex;
    gap: 4px;
}

.star-rating-input input[type="radio"] {
    display: none;
}

.star-label {
    font-size: 20px;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s ease;
}

.star-rating-input input[type="radio"]:checked ~ .star-label,
.star-rating-input input[type="radio"]:checked + .star-label {
    color: #f59e0b;
}

.star-rating-input input[type="radio"]:hover ~ .star-label,
.star-rating-input input[type="radio"]:hover + .star-label {
    color: #fbbf24;
}

.comment-form textarea {
    padding: 12px;
    border: 1px solid hsl(var(--border));
    border-radius: 6px;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    resize: vertical;
    min-height: 80px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

.submit-comment-btn {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.submit-comment-btn:hover {
    background: hsl(var(--primary) / 0.9);
    transform: translateY(-1px);
}

.submit-comment-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cancel-comment-btn {
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cancel-comment-btn:hover {
    background: hsl(var(--muted) / 0.8);
    transform: translateY(-1px);
}


.voice-actor-favorite {
    background: hsl(var(--background) / 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.voice-actor-favorite:hover {
    transform: scale(1.1);
}

.voice-actor-favorite svg {
    width: 16px;
    height: 16px;
    transition: color 0.2s ease;
}

.voice-actor-favorite.active svg {
    color: #ef4444;
    fill: currentColor;
}

.voice-actor-favorite:not(.active) svg {
    color: hsl(var(--primary));
}

/* Voice Actor Content */
.voice-actor-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    min-height: 0; /* allow inner scroll areas to size */
    overflow: hidden; /* prevent content overflow */
}

.voice-actor-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 8px;
    line-height: 1.2;
}

.voice-actor-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.voice-actor-price {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--primary));
    transition: transform 0.3s ease;
}

.voice-actor-card:hover .voice-actor-price {
    transform: scale(1.1);
    transform-origin: left;
}


/* Audio Player */
.audio-player {
    width: 100%;
    max-width: 100%;
    margin: 6px 0;
    padding: 8px;
    border-radius: 8px;
}

.audio-player audio {
    width: 100%;
    height: 40px;
    border-radius: 8px;
}

/* Rating Toggle Section */
.rating-toggle-section {
    margin-bottom: 16px;
}

.toggle-rating-btn {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    box-shadow: 0 2px 8px hsl(var(--primary) / 0.3);
}

.toggle-rating-btn:hover {
    background: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--primary)));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px hsl(var(--primary) / 0.4);
}

.toggle-rating-btn.active {
    background: linear-gradient(135deg, hsl(var(--destructive)), hsl(var(--destructive) / 0.8));
}

.toggle-rating-btn.active i {
    transform: rotate(180deg);
}

.toggle-rating-btn i {
    transition: transform 0.3s ease;
}

/* Rating */
.voice-actor-rating {
    margin-top: 12px;
    padding: 20px;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    box-shadow: 0 2px 8px hsl(var(--primary) / 0.05);
    animation: slideDown 0.3s ease-out;
    transform-origin: top;
}

.voice-actor-rating.hidden {
    animation: slideUp 0.3s ease-in;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scaleY(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
    to {
        opacity: 0;
        transform: translateY(-10px) scaleY(0.8);
    }
}

.rating-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid hsl(var(--border));
}

.rating-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.rating-average {
    font-size: 2rem;
    font-weight: 700;
    color: hsl(var(--primary));
    line-height: 1;
}

.rating-count {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.rating-distribution {
    margin-bottom: 20px;
    padding: 16px;
    background: hsl(var(--muted) / 0.3);
    border-radius: 8px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.rating-bar:last-child {
    margin-bottom: 0;
}

.star-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    min-width: 24px;
}

.bar-container {
    flex: 1;
    height: 8px;
    background: hsl(var(--muted));
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.bar-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    min-width: 24px;
    text-align: right;
}

.star-rating-display {
    display: flex;
    gap: 2px;
}

.star-rating-display .star {
    width: 18px;
    height: 18px;
    color: #d1d5db;
    font-size: 18px;
    transition: color 0.2s ease;
}

.star-rating-display .star.filled {
    color: #f59e0b;
}

.rating-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.rating-input-section {
    background: hsl(var(--muted) / 0.2);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid hsl(var(--border));
}

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

.rating-header-content {
    flex: 1;
}

.rating-header-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 4px;
}

.rating-header-content p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

.rating-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.rating-input label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.star-rating-input {
    display: flex;
    gap: 4px;
    align-items: center;
}

.star-rating-input input[type="radio"] {
    display: none;
}

.star-label {
    font-size: 20px;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s ease;
}

.star-rating-input input[type="radio"]:checked ~ .star-label,
.star-rating-input input[type="radio"]:checked + .star-label {
    color: #f59e0b;
}

.star-rating-input input[type="radio"]:hover ~ .star-label,
.star-rating-input input[type="radio"]:hover + .star-label {
    color: #fbbf24;
}

.guest-rating-form {
    display: flex;
    gap: 8px;
}

.guest-rating-form input {
    padding: 6px 10px;
    border: 1px solid hsl(var(--border));
    border-radius: 4px;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    flex: 1;
}

.guest-rating-form input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

.submit-rating-btn {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.submit-rating-btn:hover {
    background: hsl(var(--primary) / 0.9);
    transform: translateY(-1px);
}

.submit-rating-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.remove-rating-btn {
    background: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.remove-rating-btn:hover {
    background: hsl(var(--destructive) / 0.9);
    transform: translateY(-1px);
}

.remove-rating-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Real-time rating updates */
.rating-updating {
    opacity: 0.7;
    pointer-events: none;
}

.rating-updating .star {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.voice-actor-bio {
    font-size: 0.8rem;
    line-height: 1.4;
    color: hsl(var(--muted-foreground));
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

/* Footer */
.footer {
    border-top: 1px solid hsl(var(--border));
    background: hsl(var(--card) / 0.5);
    padding: 48px 0;
    text-align: center;
}

.footer p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.footer-contact {
    margin-top: 16px;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: hsl(var(--primary));
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.email-link:hover {
    color: hsl(var(--primary) / 0.8);
    background: hsl(var(--primary) / 0.1);
    transform: translateY(-1px);
}

.email-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }
    
    .header p {
        font-size: 1.125rem;
    }
    
    .voice-actors-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .price-category h2 {
        font-size: 2rem;
    }
    
    .price-category-description {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .voice-actor-content {
        padding: 16px;
    }
    
    .voice-actor-price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .voice-actor-order-btn {
        align-self: flex-end;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Image optimization */
.voice-actor-image img {
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0.95) contrast(1.05);
}

.voice-actor-card:hover .voice-actor-image img {
    filter: brightness(1) contrast(1.1);
}

/* Loading states */
.voice-actor-image img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.voice-actor-image img[loading="lazy"].loaded {
    opacity: 1;
}

/* Font Awesome integration */
.fas, .far, .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900;
}

.far {
    font-weight: 400;
}

.fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400;
}

/* Enhanced animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.voice-actor-card {
    animation: slideInUp 0.6s ease-out;
}

.voice-actor-card:nth-child(1) { animation-delay: 0.1s; }
.voice-actor-card:nth-child(2) { animation-delay: 0.2s; }
.voice-actor-card:nth-child(3) { animation-delay: 0.3s; }
.voice-actor-card:nth-child(4) { animation-delay: 0.4s; }
.voice-actor-card:nth-child(5) { animation-delay: 0.5s; }
.voice-actor-card:nth-child(6) { animation-delay: 0.6s; }

/* Loading skeleton */
.loading-skeleton {
    background: linear-gradient(90deg, hsl(var(--muted)) 25%, hsl(var(--muted) / 0.5) 50%, hsl(var(--muted)) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Enhanced hover effects */
.voice-actor-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px hsl(var(--primary) / 0.1),
        0 10px 20px hsl(var(--primary) / 0.05),
        var(--shadow-glow);
}

.voice-actor-price:hover {
    color: hsl(var(--accent));
    text-shadow: 0 0 20px hsl(var(--accent) / 0.5);
}

/* Question Button */
.voice-actor-question-btn {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px hsl(var(--primary) / 0.3);
    white-space: nowrap;
}

.voice-actor-question-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px hsl(var(--primary) / 0.4);
    background: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--primary)));
}

.voice-actor-question-btn:active {
    transform: translateY(0);
}

.voice-actor-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.voice-actor-order-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    position: relative;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, 'Inter', Arial, sans-serif;
    white-space: nowrap;
}

.voice-actor-order-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.voice-actor-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3, #004085);
    color: white;
}

.voice-actor-order-btn:hover::before {
    left: 100%;
}

.voice-actor-order-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    color: white;
}

.voice-actor-order-btn i {
    font-size: 1rem;
    transition: transform 0.2s ease;
    color: white;
}

.voice-actor-order-btn:hover i {
    transform: scale(1.1);
    color: white;
}

/* Video fullscreen button */
.fullscreen-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    font-size: 14px;
    z-index: 11;
    transition: all 0.2s ease;
}

.fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

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


/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    margin: 0 0 20px 0;
    color: hsl(var(--foreground));
    font-size: 1.5rem;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: hsl(var(--muted-foreground));
    transition: color 0.3s ease;
}

.close:hover {
    color: hsl(var(--foreground));
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: hsl(var(--foreground));
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

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

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Modal Open Body */
body.modal-open {
    overflow: hidden;
}

/* Update Order Button */
.voice-actor-order-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, hsl(var(--primary)), hsl(var(--accent)));
    transition: all 0.3s ease;
    cursor: pointer;
}

.voice-actor-order-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.voice-actor-order-btn:hover::before {
    left: 100%;
}

.voice-actor-order-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px hsl(var(--primary) / 0.4);
}

/* Header Auth Button */
.header-auth {
    margin-top: 20px;
}

.auth-btn {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px hsl(var(--primary) / 0.3);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px hsl(var(--primary) / 0.4);
    background: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--primary)));
}

/* Social Auth Styles */
.auth-subtitle {
    color: hsl(var(--muted-foreground));
    margin-bottom: 20px;
    text-align: center;
}

.social-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-btn.vk:hover {
    background: #0077ff;
    color: white;
    border-color: #0077ff;
}

.social-btn.ok:hover {
    background: #ee8208;
    color: white;
    border-color: #ee8208;
}

.social-btn.mail:hover {
    background: #168de2;
    color: white;
    border-color: #168de2;
}

.social-btn.google:hover {
    background: #4285f4;
    color: white;
    border-color: #4285f4;
}

.social-btn.yandex:hover {
    background: #ff0000;
    color: white;
    border-color: #ff0000;
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: hsl(var(--border));
}

.auth-divider span {
    background: hsl(var(--card));
    padding: 0 16px;
    color: hsl(var(--muted-foreground));
    font-size: 0.9rem;
}

.email-auth {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-input {
    padding: 12px 16px;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 1rem;
}

.auth-input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.auth-submit-btn {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px hsl(var(--primary) / 0.4);
}

/* Login/Register modal (tabs + forms) */
.login-modal .login-modal-content {
    max-width: 420px;
}

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

.login-title {
    margin: 0;
    font-size: 1.25rem;
    color: hsl(var(--foreground));
}

.login-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.login-close:hover {
    color: hsl(var(--foreground));
    background: hsl(var(--muted));
}

.login-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid hsl(var(--border));
}

.login-tab {
    padding: 10px 16px;
    border: none;
    background: none;
    color: hsl(var(--muted-foreground));
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
}

.login-tab:hover {
    color: hsl(var(--foreground));
}

.login-tab.active {
    color: hsl(var(--primary));
    border-bottom-color: hsl(var(--primary));
}

.login-form-container {
    display: none;
    margin-bottom: 20px;
}

.login-form-container.active {
    display: block;
}

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

.login-form .form-group:last-of-type {
    margin-bottom: 16px;
}

.login-or-text {
    margin: 12px 0;
    text-align: center;
    color: hsl(var(--muted-foreground));
    font-size: 13px;
}

.login-form .btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    margin-top: 0;
}

.login-form .btn-secondary {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
}

.login-form .btn-secondary:hover {
    background: hsl(var(--muted) / 0.8);
}

.form-group .required {
    color: #e11d48;
}

.password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrap input {
    padding-right: 44px;
    flex: 1;
}

.password-toggle {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    font-size: 1rem;
    opacity: 0.7;
}

.password-toggle:hover {
    opacity: 1;
}

.form-hint {
    margin: 6px 0 0;
    color: hsl(var(--muted-foreground));
    font-size: 12px;
    line-height: 1.4;
}

/* Captcha overlay */
.captcha-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    padding: 16px;
}

.captcha-modal {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    padding: 20px;
    max-width: 320px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.captcha-title {
    font-weight: 600;
    color: hsl(var(--foreground));
}

.captcha-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: hsl(var(--muted-foreground));
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    border-radius: 6px;
}

.captcha-close:hover {
    color: hsl(var(--foreground));
    background: hsl(var(--muted));
}

.captcha-equation {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
    color: hsl(var(--foreground));
}

.captcha-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.captcha-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 1rem;
}

.captcha-refresh {
    padding: 10px 14px;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
    cursor: pointer;
    font-size: 1.1rem;
}

.captcha-refresh:hover {
    background: hsl(var(--muted) / 0.8);
}

.captcha-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: hsl(var(--foreground));
    cursor: pointer;
}

.captcha-error {
    min-height: 20px;
    font-size: 13px;
    color: #e11d48;
    margin-bottom: 12px;
}

.captcha-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.captcha-btn {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s;
}

.captcha-btn.secondary {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
}

.captcha-btn.primary {
    background: hsl(var(--primary));
    color: white;
}

.captcha-btn.primary:hover {
    filter: brightness(1.1);
}

/* Social login block in auth modal */
.login-modal .social-login {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid hsl(var(--border));
}

.login-modal .social-divider {
    text-align: center;
    margin-bottom: 12px;
}

.login-modal .social-divider span {
    background: hsl(var(--card));
    padding: 0 10px;
    color: hsl(var(--muted-foreground));
    font-size: 13px;
}

.login-modal .social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.login-modal .social-btn {
    flex: 1;
    min-width: 100px;
    justify-content: center;
}

.login-modal .social-btn.vk-btn:hover {
    background: #0077ff;
    color: white;
    border-color: #0077ff;
}

.login-modal .social-btn.ok-btn:hover {
    background: #ee8208;
    color: white;
    border-color: #ee8208;
}

/* Improved accessibility */
.voice-actor-card:focus-within {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}

button:focus,
.voice-actor-favorite:focus {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-8 { gap: 32px; }

.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }

.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }

.rounded { border-radius: 4px; }
.rounded-lg { border-radius: 8px; }
.rounded-xl { border-radius: 12px; }
.rounded-2xl { border-radius: 16px; }

.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

.transition { transition: all 0.2s ease; }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }

/* Modern Dark Audio Player */
.audio-player {
    background: #282a36;
    border-radius: 10px;
    padding: 12px;
    margin: 10px 0;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    max-width: 520px;
}

.audio-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00bfff, transparent);
}

.audio-player audio {
    display: none;
}

.audio-player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 10px;
}

.audio-player-btn {
    background: none;
    border: none;
    color: #999999;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    position: relative;
}

.audio-player-btn:hover {
    color: #00bfff;
    background: rgba(0, 191, 255, 0.1);
    transform: scale(1.1);
}

.audio-player-btn.active {
    color: #00bfff;
    background: rgba(0, 191, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.3);
}

.audio-player-btn.play-btn {
    width: 40px;
    height: 40px;
    background: rgba(153, 153, 153, 0.08);
    border: 2px solid #999999;
    color: #999999;
}

.audio-player-btn.play-btn:hover {
    border-color: #00bfff;
    color: #00bfff;
    background: rgba(0, 191, 255, 0.1);
}

.audio-player-btn.play-btn.active {
    border-color: #00bfff;
    color: #00bfff;
    background: rgba(0, 191, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.4);
}

.audio-player-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.audio-player-btn.play-btn svg {
    width: 18px;
    height: 18px;
}

.audio-player-progress {
    position: relative;
    height: 3px;
    background: #666666;
    border-radius: 2px;
    cursor: pointer;
    margin: 6px 0;
}

.audio-player-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00bfff, #0099cc);
    border-radius: 2px;
    position: relative;
    transition: width 0.1s ease;
}

.audio-player-progress-bar::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #00bfff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}

.audio-player-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999999;
    margin-top: 6px;
}

.audio-player-time span {
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

/* Shuffle button specific styling */
.audio-player-btn.shuffle-btn.active {
    color: #00bfff;
    background: rgba(0, 191, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.4);
}

/* Repeat button specific styling */
.audio-player-btn.repeat-btn.active {
    color: #00bfff;
    background: rgba(0, 191, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.4);
}

/* Previous/Next button specific styling */
.audio-player-btn.prev-btn,
.audio-player-btn.next-btn {
    color: #999999;
}

.audio-player-btn.prev-btn:hover,
.audio-player-btn.next-btn:hover {
    color: #00bfff;
    background: rgba(0, 191, 255, 0.1);
}

/* WordPress Icon Compatibility */
.fas, .far, .fab, .fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.far {
    font-weight: 400;
}

.fab {
    font-weight: 400;
}

/* Simple Star Rating */
.simple-rating {
    background: transparent;
    border-radius: 6px;
    padding: 6px 8px;
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}

.star-rating-display {
    display: flex;
    gap: 4px;
}

.simple-rating .star {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.simple-rating .star:hover {
    color: #ffd700;
    transform: scale(1.1);
}

.simple-rating .star.filled {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.simple-rating .star.filled:hover {
    color: #ffed4e;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.7);
}

.rating-count {
    font-size: 10px;
    color: #999;
    font-weight: 500;
}

/* Responsive audio player */
@media (max-width: 768px) {
    .audio-player {
        padding: 16px;
        margin: 12px 0;
    }
    
    .audio-player-controls {
        gap: 16px;
    }
    
    .audio-player-btn {
        width: 36px;
        height: 36px;
    }
    
    .audio-player-btn.play-btn {
        width: 44px;
        height: 44px;
    }
    
    .audio-player-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .audio-player-btn.play-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .simple-rating {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .simple-rating .star {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .voice-actor-card {
        width: 100%;
        max-width: 283px;
        height: 650px;
    }
    .voice-actor-image { height: 340px; }
}

/* ========================================
   DARK THEME VOICE ACTOR CARDS
   ======================================== */
/* Media blocks */
.voice-actor-card-dark .photo-section {
    margin: 0 0 12px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
}
.voice-actor-card-dark .photo-section img {
    display: block;
    width: 100%;
    height: 310px;
    object-fit: cover;
}
.voice-actor-card-dark .photo-section .media-wrapper {
    position: relative;
    width: 100%;
    height: 310px;
}

/* Video Hover Tooltip */
.voice-actor-card-dark .photo-section .media-wrapper::after {
    content: "Нажмите 2 раза и видео откроется на весь экран!";
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.voice-actor-card-dark .photo-section .media-wrapper:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -45px;
}

/* Fullscreen Video Overlay */
.fullscreen-video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.fullscreen-video-container {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    max-height: 800px;
}

.fullscreen-close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    backdrop-filter: blur(4px);
}

.fullscreen-close-btn:hover {
    background: rgba(220, 53, 69, 0.9);
    transform: scale(1.1);
}

.fullscreen-video-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.fullscreen-video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.voice-actor-card-dark .photo-section .media-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.voice-actor-card-dark {
    max-width: 277px;
}
.voice-actor-card-dark .card-header.under-photo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0 12px 0;
}
.voice-actor-card-dark .photo-section .video-hover {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.1s ease;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    overflow: hidden;
    will-change: opacity;
}

.voice-actor-card-dark .photo-section:hover .video-hover,
.voice-actor-card-dark .photo-section .video-hover.active {
    opacity: 1;
}

.voice-actor-card-dark .photo-section .video-hover .video-embed { 
    position: relative;
    width: 100%;
    height: 100%;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.voice-actor-card-dark .photo-section .video-hover .video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateZ(0);
    backface-visibility: hidden;
    border: 0;
    border-radius: 8px;
}

/* Website Link Button */
.website-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.website-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.website-btn .website-icon {
    color: #fff;
    transition: all 0.3s ease;
}

.website-btn:hover .website-icon {
    color: #3b82f6;
    transform: scale(1.1);
}

/* Favorite Button */
.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.favorite-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.favorite-btn .favorite-icon {
    color: #fff;
    transition: all 0.3s ease;
}

.favorite-btn.active .favorite-icon {
    fill: #ff4757;
    color: #ff4757;
    transform: scale(1.2);
}

.favorite-btn.active {
    background: rgba(255, 71, 87, 0.2);
    border: 2px solid #ff4757;
}

/* Overrides: compact name/price and smaller audio player */
.voice-actor-card-dark .actor-name { font-size: 0.975rem; }
.voice-actor-card-dark .actor-price { font-size: 0.8125rem; }
.voice-actor-card-dark .audio-player-section { padding: 8px; margin-bottom: 12px; }
.voice-actor-card-dark .audio-controls { gap: 8px; margin-bottom: 6px; }
.voice-actor-card-dark .audio-btn { width: 18px; height: 18px; padding: 4px; }
.voice-actor-card-dark .audio-btn.play-btn { width: 24px; height: 24px; border-width: 1px; }
.voice-actor-card-dark .audio-btn svg { width: 12px; height: 12px; }
.voice-actor-card-dark .audio-btn.play-btn svg { width: 14px; height: 14px; }
.voice-actor-card-dark .progress-bar { height: 2px; }
.voice-actor-card-dark .progress-fill::after { width: 8px; height: 8px; }
.voice-actor-card-dark .time-display { font-size: 0.6rem; }

/* Reviews collapsible */
.voice-actor-card-dark .reviews-header { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px 0; }
.voice-actor-card-dark .reviews-toggle-btn { display: inline-flex; align-items: center; gap: 6px; background: #2a2a2a; color: #fff; border: 1px solid #444; border-radius: 6px; padding: 6px 10px; font-size: 0.8rem; cursor: pointer; }
.voice-actor-card-dark .reviews-toggle-btn:hover { background: #1f1f1f; }
.voice-actor-card-dark .reviews-toggle-btn svg { width: 14px; height: 14px; }
.voice-actor-card-dark .reviews-toggle-btn .chevron { transition: transform .2s ease; }
.voice-actor-card-dark .reviews-toggle-btn.open .chevron { transform: rotate(180deg); }

/* Dark Theme Card Container */
.voice-actor-card-dark {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.voice-actor-card-dark:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border-color: #007bff;
}

.voice-actor-card-dark:hover .actor-price {
    font-size: 1.21875rem;
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.actor-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.actor-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #007bff;
    background: linear-gradient(135deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: center;
}

.order-btn {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 0.69rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.order-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.4);
}

.order-btn svg { width: 14px; height: 14px; }

.question-btn {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 0.69rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.question-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(108, 117, 125, 0.4);
}

.question-btn svg { width: 14px; height: 14px; }

.video-examples-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 0.69rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    margin-top: 8px;
}

.video-examples-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.4);
}

.video-examples-btn svg { 
    width: 16px; 
    height: 16px; 
    stroke: white;
    fill: none;
}

/* Video Examples Modal */
.video-examples-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-examples-modal.show {
    opacity: 1;
    visibility: visible;
}

.video-examples-modal.closing {
    pointer-events: none;
}

/* Force display when shown via jQuery */
.video-examples-modal[style*="display: block"],
.video-examples-modal[style*="display:block"] {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

.video-examples-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

/* Mobile: full-screen reliable backdrop, better performance */
@media (max-width: 768px) {
    .video-examples-modal-backdrop {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100dvh;
        /* blur on mobile can be slow and cause rendering glitches */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        touch-action: none;
    }
}

.video-examples-modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-examples-modal-content {
    background: #1a1a1a;
    border-radius: 12px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-examples-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #333;
}

.video-examples-modal-header h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.video-examples-modal-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.video-examples-modal-close:hover {
    background: #333;
}

.video-examples-modal-body {
    padding: 24px;
}

.video-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.video-example-item {
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.video-example-item:hover {
    transform: translateY(-4px);
}

.video-example-preview {
    position: relative;
    width: 100%;
    height: 200px;
    background: #000;
    cursor: pointer;
    overflow: hidden;
}

.video-example-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.video-hover-overlay:hover {
    background: rgba(0, 0, 0, 0.8);
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.play-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.play-button svg {
    color: #333;
    margin-left: 4px; /* Slight offset to center the triangle */
}

.video-example-info {
    padding: 16px;
}

.video-example-info h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.video-example-info p {
    color: #ccc;
    font-size: 0.9rem;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.video-open-vk-link {
    display: inline-block;
    color: #4a9eff;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-decoration: none;
}
.video-open-vk-link:hover {
    text-decoration: underline;
    color: #6bb3ff;
}

.video-example-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0 14px 0;
}

.video-example-links .video-open-vk-link {
    margin: 0;
}

.video-example-links .video-order-btn {
    padding: 8px 12px;
    font-size: 0.75rem;
    border-radius: 8px;
}

.video-example-links .video-order-btn svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 480px) {
    .video-example-links .video-order-btn {
        flex: 1 1 100%;
    }
    .video-example-links .video-open-vk-link {
        flex: 1 1 100%;
    }
}

.video-hashtag {
    color: #007bff;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    padding: 4px 8px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 4px;
    display: inline-block;
}

.video-example-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.video-actions-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-example-actions button {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-example-actions button:hover {
    background: #0056b3;
}

.comment-btn {
    background: #6c757d !important;
}

.comment-btn:hover {
    background: #5a6268 !important;
}

.comment-btn.active {
    background: #28a745 !important;
}

.comment-btn.active:hover {
    background: #218838 !important;
}

.comment-count {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.75rem;
    min-width: 18px;
    text-align: center;
}

/* Video Comments Section */
.video-comments-section {
    margin-top: 16px;
    border-top: 1px solid #333;
    padding-top: 16px;
}

.comments-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.comment-item {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    border-left: 3px solid #007bff;
}

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

.comment-author {
    color: #007bff;
    font-weight: 600;
    font-size: 0.9rem;
}

.comment-date {
    color: #888;
    font-size: 0.8rem;
}

.comment-text {
    color: #fff;
    line-height: 1.4;
    font-size: 0.9rem;
}

.no-comments {
    color: #888;
    text-align: center;
    font-style: italic;
    padding: 20px;
}

.add-comment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-textarea {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 12px;
    color: #fff;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.comment-textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.comment-textarea::placeholder {
    color: #888;
}

.submit-comment-btn {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    align-self: flex-start;
}

.submit-comment-btn:hover {
    background: #218838;
}

/* Video Rating Stars */
.video-rating-stars {
    display: flex;
    gap: 2px;
}

.video-rating-stars .star {
    color: #666;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.video-rating-stars .star:hover,
.video-rating-stars .star.filled {
    color: #ffc107;
}

.video-rating-stars .star.highlighted {
    color: #ffc107;
}

/* Responsive */
@media (max-width: 768px) {
    .video-examples-modal-container {
        padding: 10px;
    }
    
    .video-examples-modal-content {
        max-height: 95vh;
    }
    
    .video-examples-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .video-example-preview {
        height: 180px;
    }

    .video-example-info {
        padding: 14px;
    }

    .video-example-info h4 {
        font-size: 1rem;
        line-height: 1.25;
        word-break: break-word;
    }

    .video-example-info p {
        font-size: 0.9rem;
        line-height: 1.35;
    }

    .video-open-vk-link {
        display: block;
        margin: 10px 0 12px;
        font-size: 0.95rem;
    }

    .video-example-actions {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 10px;
    }

    .video-rating-stars {
        justify-content: flex-start;
        gap: 6px;
    }

    .video-actions-buttons {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px;
    }

    .video-example-actions button {
        flex: 1 1 calc(50% - 10px);
        justify-content: center;
        padding: 10px 12px;
        font-size: 0.9rem;
        min-height: 40px;
    }

    .video-comments-section .comment-textarea {
        width: 100%;
        min-height: 90px;
    }
}

@media (max-width: 420px) {
    .video-actions-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .video-example-actions button {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* Favorite Videos Modal */
.favorite-videos-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.favorite-videos-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.favorite-videos-modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.favorite-videos-modal-content {
    background: #1a1a1a;
    border-radius: 12px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.favorite-videos-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #333;
}

.favorite-videos-modal-header h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.favorite-videos-modal-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.favorite-videos-modal-close:hover {
    background: #333;
}

.favorite-videos-modal-body {
    padding: 24px;
}

.favorite-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.favorite-video-item {
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.favorite-video-item:hover {
    transform: translateY(-4px);
}

.favorite-video-preview {
    position: relative;
    width: 100%;
    height: 200px;
    background: #000;
}

.favorite-video-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.favorite-video-info {
    padding: 16px;
}

.favorite-video-info h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.favorite-video-info p {
    color: #ccc;
    font-size: 0.9rem;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.favorite-video-hashtag {
    color: #007bff;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    padding: 4px 8px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 4px;
    display: inline-block;
}

.favorite-video-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.favorite-video-actions button {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.favorite-video-actions button:hover {
    background: #c82333;
}
.video-examples-section {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.video-examples-section .video-examples-btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.video-examples-section .video-examples-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.4);
}

.video-examples-section .video-examples-btn svg { 
    width: 14px; 
    height: 14px; 
}

/* Video Examples Modal Styles */
#videoExamplesModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

#videoExamplesModal .modal-content {
    background: #1a1a1a;
    margin: 2% auto;
    padding: 0;
    border: 1px solid #333;
    border-radius: 12px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#videoExamplesModal .modal-header {
    background: #2a2a2a;
    padding: 20px 24px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#videoExamplesModal .modal-header h2 {
    color: #fff;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

#videoExamplesModal .modal-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

#videoExamplesModal .favorite-videos-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
}

#videoExamplesModal .favorite-videos-btn:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

#videoExamplesModal .favorite-videos-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
}

/* Favorite Videos Modal Styles */
#favoriteVideosModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.favorite-videos-modal-content {
    background: #1a1a1a;
    margin: 2% auto;
    padding: 0;
    border: 1px solid #333;
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.favorite-videos-modal-content .modal-header {
    background: #2a2a2a;
    padding: 20px 24px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.favorite-videos-modal-content .modal-header h2 {
    color: #fff;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.favorite-videos-modal-content .close-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.favorite-videos-modal-content .close-btn:hover {
    background: #333;
}

.favorite-videos-modal-content .modal-body {
    padding: 24px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.favorite-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 20px;
}

.favorite-video-item {
    background: #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.favorite-video-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.2);
}

.favorite-video-preview {
    position: relative;
    width: 100%;
    height: 200px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 8px 0 0;
}

.favorite-video-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px 8px 0 0;
}

.favorite-video-info {
    padding: 16px;
}

.favorite-video-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.favorite-video-description {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 12px;
}

.favorite-video-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.favorite-video-author {
    color: #28a745;
    font-size: 0.9rem;
    font-weight: 500;
}

.favorite-video-hashtag {
    color: #ffc107;
    font-size: 0.9rem;
    font-weight: 500;
}

.favorite-video-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.favorite-video-rating-stars {
    display: flex;
    gap: 2px;
}

.favorite-video-rating-stars .star {
    font-size: 14px;
    color: #ffd700;
}

.favorite-video-rating-info {
    color: #999;
    font-size: 0.8rem;
}

.favorite-video-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.favorite-video-remove-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.favorite-video-remove-btn:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-1px);
}

.favorite-video-comment-btn {
    background: linear-gradient(135deg, #17a2b8, #138496);
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.favorite-video-comment-btn:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
    transform: translateY(-1px);
}

.favorite-videos-empty {
    text-align: center;
    padding: 60px 20px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.empty-state svg {
    color: #666;
}

.empty-state h3 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
}

.empty-state p {
    color: #ccc;
    font-size: 1rem;
    margin: 0;
    max-width: 400px;
}

.browse-videos-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.browse-videos-btn:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

#videoExamplesModal .close-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

#videoExamplesModal .close-btn:hover {
    background: #333;
}

#videoExamplesModal .modal-body {
    padding: 24px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.video-genres,
.video-hashtags {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.genre-section h3,
.hashtag-section h3 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #28a745;
}

.hashtag-section h3 {
    color: #28a745;
    font-size: 1.1rem;
    font-weight: 700;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.video-item {
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.2);
}

.video-item iframe {
    width: 100%;
    height: 250px;
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.video-item iframe:hover {
    transform: scale(1.02);
}

.video-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 12px;
    background: #1a1a1a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.video-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    backdrop-filter: blur(2px);
}

.video-overlay:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
}

.video-overlay .play-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.4);
    position: relative;
    overflow: hidden;
}

.video-overlay .play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    transition: all 0.3s ease;
}

.video-overlay .play-btn:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(40, 167, 69, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

.video-overlay .play-btn:hover::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
}

.video-overlay .play-btn:active {
    transform: scale(1.05);
    box-shadow: 0 2px 15px rgba(40, 167, 69, 0.8);
}

.video-overlay .play-btn svg {
    transition: all 0.2s ease;
    z-index: 1;
    position: relative;
}

.video-overlay .play-btn:hover svg {
    transform: scale(1.1);
}

.video-item-info {
    padding: 16px;
}

.video-item-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.video-item-description {
    color: #ccc;
    font-size: 0.875rem;
    line-height: 1.4;
}

.video-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.favorite-video-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-video-btn:hover {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    transform: scale(1.1);
}

.favorite-video-btn.favorited {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

/* Video Controls Styles */
.video-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-container:hover .video-controls {
    opacity: 1;
}

/* New Video Player Styles */
.video-controls-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.play-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    position: relative;
}

.play-btn:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
}

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

.original-video-btn, .fullscreen-video-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.original-video-btn:hover {
    background: rgba(0, 123, 255, 0.8);
    border-color: rgba(0, 123, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.fullscreen-video-btn:hover {
    background: rgba(108, 117, 125, 0.8);
    border-color: rgba(108, 117, 125, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.play-btn svg, .original-video-btn svg, .fullscreen-video-btn svg {
    transition: all 0.2s ease;
}

.play-btn:hover svg {
    color: white;
    transform: scale(1.1);
}

.original-video-btn:hover svg, .sound-toggle-btn:hover svg {
    color: white;
    transform: scale(1.1);
}

/* Video Instruction */
.video-instruction {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-overlay:hover .video-instruction {
    opacity: 1;
}

/* Sound Toggle Button */
.sound-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.sound-toggle-btn:hover {
    background: rgba(255, 193, 7, 0.8);
    border-color: rgba(255, 193, 7, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.sound-toggle-btn.sound-off {
    background: rgba(220, 53, 69, 0.8);
    border-color: rgba(220, 53, 69, 0.5);
}

.sound-toggle-btn.sound-off:hover {
    background: rgba(220, 53, 69, 0.9);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* Video Link Styles */
.video-link-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 12px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.video-link-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.video-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.video-link:hover {
    color: white;
    text-decoration: none;
    transform: scale(1.05);
}

.video-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.video-link:hover .video-link-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.video-link-icon svg {
    transition: all 0.3s ease;
}

.video-link:hover .video-link-icon svg {
    transform: scale(1.1);
}

/* Video Hover Styles for Modal */
#videoExamplesModal .video-hover {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.1s ease;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    overflow: hidden;
    will-change: opacity;
}

#videoExamplesModal .video-item:hover .video-hover,
#videoExamplesModal .video-hover.active {
    opacity: 1;
}

#videoExamplesModal .video-hover .video-embed { 
    position: relative;
    width: 100%;
    height: 100%;
    transform: translateZ(0);
    backface-visibility: hidden;
}

#videoExamplesModal .video-hover .video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}


/* Video Rating Styles */
.video-rating-section {
    margin: 16px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-rating-label {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.video-rating-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.video-rating-stars .star {
    font-size: 20px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.video-rating-stars .star:hover {
    color: #ffd700;
    transform: scale(1.1);
}

.video-rating-stars .star.filled {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.video-rating-stars .star.highlighted {
    color: #ffd700;
    transform: scale(1.05);
}

.video-rating-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #ccc;
}

.rating-count {
    font-weight: 500;
}

.rating-average {
    color: #28a745;
    font-weight: 600;
}

/* Responsive styles for video modal */
@media (max-width: 768px) {
    #videoExamplesModal .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    #videoExamplesModal .modal-header {
        padding: 16px 20px;
    }
    
    #videoExamplesModal .modal-header h2 {
        font-size: 1.25rem;
    }
    
    #videoExamplesModal .modal-body {
        padding: 20px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .video-item iframe {
        height: 200px;
    }
    
    .video-container {
        height: 200px;
    }
    
    .video-overlay .play-btn {
        width: 60px;
        height: 60px;
    }
    
    .video-overlay .play-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .video-rating-section {
        margin: 12px 0;
        padding: 10px;
    }
    
    .video-rating-stars .star {
        font-size: 18px;
    }
    
    .video-rating-info {
        flex-direction: column;
        gap: 4px;
    }
}

/* Audio Player Section */
.audio-player-section {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #444;
}

.audio-player-container {
    position: relative;
}

.audio-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.audio-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.audio-btn:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    transform: scale(1.1);
}

.audio-btn.active {
    color: #007bff;
    background: rgba(0, 123, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

.audio-btn.play-btn {
    width: 48px;
    height: 48px;
    background: rgba(153, 153, 153, 0.1);
    border: 2px solid #999;
}

.audio-btn.play-btn:hover {
    border-color: #007bff;
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

.audio-btn.play-btn.active {
    border-color: #007bff;
    color: #007bff;
    background: rgba(0, 123, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.4);
}

.audio-btn svg {
    width: 18px;
    height: 18px;
}

.audio-btn.play-btn svg {
    width: 20px;
    height: 20px;
}

/* Progress Container */
.progress-container {
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #444;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
    position: relative;
    transition: width 0.1s ease;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #007bff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

/* Time Display */
.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #999;
    font-family: 'Courier New', monospace;
}

.current-time {
    color: #007bff;
    font-weight: 500;
}

.total-time {
    color: #999;
}

/* Rating Section */
.rating-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.star-rating {
    display: flex;
    gap: 2px;
}

.star-rating .star {
    font-size: 16px;
    color: #333;
    transition: color 0.2s ease;
}

.star-rating .star.clickable {
    cursor: pointer;
    user-select: none;
}

.star-rating .star.clickable:hover {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    transform: scale(1.1);
}

.star-rating .star.hover-preview {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    opacity: 0.7;
}

.star-rating .star.filled {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.star-rating .star.user-rated {
    color: #ff6b35;
    text-shadow: 0 0 8px rgba(255, 107, 53, 0.5);
    border: 2px solid #ff6b35;
    border-radius: 50%;
    padding: 2px;
}

.star-rating .star.highlighted {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    opacity: 0.7;
    transform: scale(1.1);
}

.rating-count {
    font-size: 0.9rem;
    color: #999;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.rating-count:hover {
    color: #007bff;
}

.rating-details {
    margin-top: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    min-width: 24px;
}

.rating-progress {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.rating-bar .rating-count {
    font-size: 0.75rem;
    color: #666;
    min-width: 20px;
    text-align: right;
}

/* Rating section highlight */
.rating-section.highlight {
    background: rgba(0, 123, 255, 0.1);
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 8px;
    animation: ratingPulse 2s ease-in-out;
}

/* Active button states */
.voice-actor-card-dark .audio-btn.active {
    background: #007bff;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.voice-actor-card-dark .audio-btn.active:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.voice-actor-card-dark .shuffle-btn.active,
.voice-actor-card-dark .repeat-btn.active {
    background: #28a745;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.voice-actor-card-dark .shuffle-btn.active:hover,
.voice-actor-card-dark .repeat-btn.active:hover {
    background: #1e7e34;
    transform: scale(1.1);
}

.voice-actor-card-dark .prev-btn.active,
.voice-actor-card-dark .next-btn.active {
    background: #ffc107;
    color: #212529;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.voice-actor-card-dark .prev-btn.active:hover,
.voice-actor-card-dark .next-btn.active:hover {
    background: #e0a800;
    transform: scale(1.1);
}

/* Favorite button active state */
.voice-actor-card-dark .voice-actor-favorite.active {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.voice-actor-card-dark .voice-actor-favorite.active:hover {
    background: #c82333;
    transform: scale(1.15);
}

/* Order button active state */
.voice-actor-card-dark .voice-actor-order-btn.active {
    background: #17a2b8;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.voice-actor-card-dark .voice-actor-order-btn.active:hover {
    background: #138496;
    transform: scale(1.1);
}

/* Modal button active states */
.favorites-modal-remove.active {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.favorites-modal-order-btn.active {
    background: #17a2b8;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.favorites-modal-question-btn.active {
    background: #6f42c1;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
}

@keyframes ratingPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

/* Description Section */
.description-section {
    margin-bottom: 16px;
}

.actor-description {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Separator Line */
.separator-line {
    height: 1px;
    background: #333;
    margin: 16px 0;
}

/* Reviews Section */
.reviews-section {
    margin-top: 16px;
}

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

.reviews-container {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #444;
    min-height: 80px;
}

.no-reviews {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 12px;
    font-size: 0.8rem;
}

.review-item {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
}

.review-item:last-child {
    margin-bottom: 0;
}

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

.review-author {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-rating .star {
    font-size: 12px;
    color: #333;
}

.review-rating .star.filled {
    color: #ffd700;
}

.review-text {
    color: #ccc;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 6px;
}

.review-date {
    font-size: 0.75rem;
    color: #666;
}

/* Add Review Button */
.add-review-btn {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    height: 48px;
    min-height: 48px;
}

.add-review-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.4);
}

.add-review-btn svg {
    width: 16px;
    height: 16px;
}

/* Align all review buttons in a grid */
.voice-actors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    align-items: start;
}

.voice-actor-card-dark {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.voice-actor-card-dark .reviews-section {
    margin-top: auto;
}

/* Add Review Form */
.add-review-form {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
    animation: slideDown 0.3s ease-out;
}

.add-review-form h5 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.review-form .form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.review-form .form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.review-form .form-group input::placeholder {
    color: #666;
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.rating-input label {
    font-weight: 500;
    color: #ffffff;
    font-size: 0.9rem;
}

.star-rating-input {
    display: flex;
    gap: 4px;
}

.star-rating-input input[type="radio"] {
    display: none;
}

.star-label {
    font-size: 18px;
    color: #333;
    cursor: pointer;
    transition: color 0.2s ease;
}

.star-rating-input input[type="radio"]:checked ~ .star-label,
.star-rating-input input[type="radio"]:checked + .star-label {
    color: #ffd700;
}

.star-rating-input input[type="radio"]:hover ~ .star-label,
.star-rating-input input[type="radio"]:hover + .star-label {
    color: #ffed4e;
}

.review-form textarea {
    padding: 12px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.review-form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.review-form textarea::placeholder {
    color: #666;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.submit-review-btn {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-review-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.submit-review-btn svg {
    width: 16px;
    height: 16px;
}

.cancel-review-btn {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cancel-review-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.cancel-review-btn svg {
    width: 16px;
    height: 16px;
}

/* Responsive Design for Dark Cards */
@media (max-width: 768px) {
    .voice-actor-card-dark {
        max-width: 100%;
        margin: 12px 0;
        padding: 16px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .actor-name {
        font-size: 1.25rem;
    }
    
    .actor-price {
        font-size: 1.1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .audio-controls {
        gap: 12px;
    }
    
    .audio-btn {
        width: 32px;
        height: 32px;
    }
    
    .audio-btn.play-btn {
        width: 40px;
        height: 40px;
    }
    
    .audio-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .audio-btn.play-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .voice-actor-card-dark {
        padding: 12px;
    }
    
    .actor-name {
        font-size: 1.1rem;
    }
    
    .actor-price {
        font-size: 1rem;
    }
    
    .order-btn,
    .question-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .video-examples-section .video-examples-btn {
        padding: 14px 20px;
        font-size: 0.9rem;
        max-width: 100%;
    }
    
    .audio-player-section {
        padding: 12px;
    }
    
    .reviews-container {
        padding: 12px;
    }
    
    .add-review-form {
        padding: 16px;
    }
}

/* Simple Inline Review Textarea */
.inline-review-textarea {
    width: 100%;
    min-height: 88px;
    padding: 13px;
    border: 1px solid #444;
    border-radius: 7px;
    background: #2a2a2a;
    color: #ffffff;
    font-size: 0.99rem;
    resize: vertical;
    box-sizing: border-box;
}

.inline-review-textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.inline-review-textarea::placeholder {
    color: #666;
    font-style: italic;
}

/* Social Networks Section */
.social-networks-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Notifications Bell */
.notifications-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    width: 100%;
}

.favorites-notification-container {
    position: relative;
    display: inline-block;
}

.favorites-notification-btn {
    position: relative;
    background: #ff4757;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

.favorites-notification-btn:hover {
    background: #ff3742;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.5);
}

.favorites-notification-btn svg {
    color: #ffffff;
    width: 24px;
    height: 24px;
}

.favorites-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ffffff;
    color: #ff4757;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid #ff4757;
    min-width: 20px;
    padding: 0 2px;
}

/* Favorites Dropdown */
.favorites-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 8px;
}

.favorites-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #333;
    background: #2a2a2a;
    border-radius: 12px 12px 0 0;
}

.favorites-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.view-all-favorites {
    background: #ff4757;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-all-favorites:hover {
    background: #ff3742;
    transform: translateY(-1px);
}

.favorites-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 8px 0;
}

.favorites-list::-webkit-scrollbar {
    width: 6px;
}

.favorites-list::-webkit-scrollbar-track {
    background: #2a2a2a;
}

.favorites-list::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}

.favorites-list::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.favorite-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #2a2a2a;
    transition: background 0.3s ease;
    cursor: pointer;
}

.favorite-item:hover {
    background: #2a2a2a;
}

.favorite-item:last-child {
    border-bottom: none;
}

.favorite-item-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid #ff4757;
}

.favorite-item-info {
    flex: 1;
}

.favorite-item-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 4px 0;
}

.favorite-item-price {
    color: #ff4757;
    font-size: 12px;
    font-weight: 600;
    margin: 0;
}

.favorite-item-remove {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.favorite-item-remove:hover {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

/* Favorites Modal */
.favorites-modal-content {
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.favorites-modal-header {
    background: #2a2a2a;
    padding: 24px 32px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.favorites-modal-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
}

.favorites-count {
    color: #ff4757;
    font-size: 16px;
    font-weight: 500;
}

.favorites-modal-body {
    padding: 32px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

.favorites-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.favorites-modal-card {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #333;
    transition: all 0.3s ease;
    position: relative;
}

.favorites-modal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: #ff4757;
}

.favorites-modal-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.favorites-modal-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid #ff4757;
}

.favorites-modal-info {
    flex: 1;
}

.favorites-modal-name {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.favorites-modal-price {
    color: #ff4757;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.favorites-modal-remove {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid #ff4757;
    color: #ff4757;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.favorites-modal-remove:hover {
    background: #ff4757;
    color: #ffffff;
}

.favorites-modal-description {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 60px;
}

.favorites-modal-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 8px 0;
}

.favorites-modal-rating .star-rating {
    display: flex;
    gap: 2px;
}

.favorites-modal-rating .star {
    font-size: 14px;
    color: #333;
    transition: color 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.favorites-modal-rating .star.clickable:hover {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    transform: scale(1.1);
}

.favorites-modal-rating .star.filled {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.favorites-modal-rating .rating-count {
    font-size: 0.8rem;
    color: #999;
    font-weight: 500;
}

.favorites-modal-audio {
    margin-bottom: 20px;
}

.favorites-modal-audio-label {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.favorites-modal-audio-player {
    width: 100%;
    height: 40px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    outline: none;
}

/* Custom Audio Player - Compact Design (30% smaller) */
.custom-audio-player {
    background: #ffffff;
    border-radius: 11px; /* 16px * 0.7 */
    padding: 17px; /* 24px * 0.7 */
    box-shadow: 0 6px 22px rgba(0, 123, 255, 0.1); /* 8px * 0.7 */
    margin-top: 6px; /* 8px * 0.7 */
    border: 1px solid rgba(0, 123, 255, 0.1);
}

/* Audio Waveform Section */
.audio-waveform {
    margin-bottom: 14px; /* 20px * 0.7 */
    height: 42px; /* 60px * 0.7 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.waveform-bars {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 2px; /* 3px * 0.7 */
    height: 35px; /* 50px * 0.7 */
    width: 100%;
    max-width: 210px; /* 300px * 0.7 */
}

.wave-bar {
    width: 3px; /* 4px * 0.7 */
    background: #007bff;
    border-radius: 1px; /* 2px * 0.7 */
    transition: all 0.3s ease;
    animation: waveAnimation 2s ease-in-out infinite;
    opacity: 0.7;
}

.wave-bar:nth-child(1) { height: 8px; animation-delay: 0s; } /* 12px * 0.7 */
.wave-bar:nth-child(2) { height: 14px; animation-delay: 0.1s; } /* 20px * 0.7 */
.wave-bar:nth-child(3) { height: 22px; animation-delay: 0.2s; } /* 32px * 0.7 */
.wave-bar:nth-child(4) { height: 28px; animation-delay: 0.3s; } /* 40px * 0.7 */
.wave-bar:nth-child(5) { height: 25px; animation-delay: 0.4s; } /* 36px * 0.7 */
.wave-bar:nth-child(6) { height: 20px; animation-delay: 0.5s; } /* 28px * 0.7 */
.wave-bar:nth-child(7) { height: 13px; animation-delay: 0.6s; } /* 18px * 0.7 */
.wave-bar:nth-child(8) { height: 17px; animation-delay: 0.7s; } /* 24px * 0.7 */
.wave-bar:nth-child(9) { height: 24px; animation-delay: 0.8s; } /* 34px * 0.7 */
.wave-bar:nth-child(10) { height: 27px; animation-delay: 0.9s; } /* 38px * 0.7 */
.wave-bar:nth-child(11) { height: 21px; animation-delay: 1.0s; } /* 30px * 0.7 */
.wave-bar:nth-child(12) { height: 15px; animation-delay: 1.1s; } /* 22px * 0.7 */
.wave-bar:nth-child(13) { height: 11px; animation-delay: 1.2s; } /* 16px * 0.7 */
.wave-bar:nth-child(14) { height: 18px; animation-delay: 1.3s; } /* 26px * 0.7 */
.wave-bar:nth-child(15) { height: 25px; animation-delay: 1.4s; } /* 36px * 0.7 */
.wave-bar:nth-child(16) { height: 29px; animation-delay: 1.5s; } /* 42px * 0.7 */
.wave-bar:nth-child(17) { height: 22px; animation-delay: 1.6s; } /* 32px * 0.7 */
.wave-bar:nth-child(18) { height: 14px; animation-delay: 1.7s; } /* 20px * 0.7 */
.wave-bar:nth-child(19) { height: 10px; animation-delay: 1.8s; } /* 14px * 0.7 */
.wave-bar:nth-child(20) { height: 17px; animation-delay: 1.9s; } /* 24px * 0.7 */

@keyframes waveAnimation {
    0%, 100% { 
        transform: scaleY(1); 
        opacity: 0.7;
    }
    50% { 
        transform: scaleY(1.3); 
        opacity: 1;
    }
}

/* Progress Bar Section */
.audio-progress {
    margin-bottom: 14px; /* 20px * 0.7 */
}

.progress-bar {
    position: relative;
    height: 4px; /* 6px * 0.7 */
    background: rgba(0, 123, 255, 0.1);
    border-radius: 2px; /* 3px * 0.7 */
    cursor: pointer;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #007bff;
    border-radius: 2px; /* 3px * 0.7 */
    width: 0%;
    transition: width 0.1s ease;
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 11px; /* 16px * 0.7 */
    height: 11px; /* 16px * 0.7 */
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    transition: left 0.1s ease;
    box-shadow: 0 1px 6px rgba(0, 123, 255, 0.3); /* 2px * 0.7 */
    border: 1px solid #ffffff; /* 2px * 0.7 */
}

.progress-handle:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 3px 8px rgba(0, 123, 255, 0.4); /* 4px * 0.7 */
}

/* Audio Controls Section */
.audio-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px; /* 20px * 0.7 */
}

.control-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px; /* 12px * 0.7 */
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.control-btn:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: scale(1.1);
}

.control-btn svg {
    color: #007bff;
    transition: all 0.3s ease;
}

.control-btn:hover svg {
    color: #007bff;
    transform: scale(1.1);
}

/* Play Button - Central and Prominent */
.play-btn {
    background: #007bff;
    width: 39px; /* 56px * 0.7 */
    height: 39px; /* 56px * 0.7 */
    margin: 0 8px; /* 12px * 0.7 */
    box-shadow: 0 3px 11px rgba(0, 123, 255, 0.3); /* 4px * 0.7 */
}

.play-btn svg {
    color: #ffffff;
    width: 17px; /* 24px * 0.7 */
    height: 17px; /* 24px * 0.7 */
}

.play-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(0, 123, 255, 0.4); /* 6px * 0.7 */
}

.play-btn:hover svg {
    color: #ffffff;
    transform: scale(1.1);
}

/* Other Control Buttons */
.shuffle-btn svg,
.prev-btn svg,
.next-btn svg,
.repeat-btn svg {
    width: 13px; /* 18px * 0.7 */
    height: 13px; /* 18px * 0.7 */
}

/* Active States */
.control-btn.active {
    background: rgba(0, 123, 255, 0.15);
    transform: scale(1.05);
}

.control-btn.active svg {
    color: #0056b3;
}

.hidden-audio {
    display: none;
}

.favorites-modal-actions {
    display: flex;
    gap: 12px;
}

.favorites-modal-order-btn {
    flex: 1;
    background: #ff4757;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.favorites-modal-order-btn:hover {
    background: #ff3742;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 71, 87, 0.4);
}

.favorites-modal-question-btn {
    background: #007bff;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.favorites-modal-question-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.4);
}

.favorites-modal-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.empty-state {
    text-align: center;
    color: #666;
}

.empty-state svg {
    color: #ff4757;
    margin-bottom: 24px;
}

.empty-state h3 {
    color: #ffffff;
    font-size: 24px;
    margin: 0 0 16px 0;
}

.empty-state p {
    color: #cccccc;
    font-size: 16px;
    margin: 0 0 32px 0;
    max-width: 400px;
}

.browse-voice-actors-btn {
    background: #ff4757;
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.browse-voice-actors-btn:hover {
    background: #ff3742;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 71, 87, 0.4);
}

.notifications-bell {
    position: relative;
    background: #007bff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.notifications-bell:hover {
    background: #0056b3;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
}

.notifications-bell svg {
    color: #ffffff;
    width: 24px;
    height: 24px;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #dc3545;
    color: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
}

.notifications-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    width: 350px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    backdrop-filter: blur(10px);
}

.notifications-dropdown.active {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.notifications-header {
    padding: 16px;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.mark-all-read {
    background: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mark-all-read:hover {
    background: #0056b3;
}

.notifications-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notification-item:hover {
    background: #333;
}

.notification-item.unread {
    background: rgba(0, 123, 255, 0.1);
    border-left: 3px solid #007bff;
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.price-change {
    background: #28a745;
}

.notification-icon.new-demo {
    background: #17a2b8;
}

.notification-icon.rating {
    background: #ffc107;
    color: #000;
}

.notification-icon.review {
    background: #6f42c1;
}

.notification-content {
    flex: 1;
}

.notification-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.notification-message {
    color: #ccc;
    font-size: 12px;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.notification-time {
    color: #888;
    font-size: 11px;
}

.no-notifications {
    padding: 20px;
    text-align: center;
    color: #888;
    font-style: italic;
}


.social-networks-container {
    text-align: center;
}

.social-networks-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.social-networks-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    min-width: 140px;
    justify-content: center;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.vk-link {
    color: #4c75a3;
}

.vk-link:hover {
    background: rgba(76, 117, 163, 0.1);
    border-color: #4c75a3;
}

.whatsapp-link {
    color: #25d366;
}

.whatsapp-link:hover {
    background: rgba(37, 211, 102, 0.1);
    border-color: #25d366;
}

.telegram-link {
    color: #0088cc;
}

.telegram-link:hover {
    background: rgba(0, 136, 204, 0.1);
    border-color: #0088cc;
}

.social-text {
    font-weight: 600;
    font-size: 0.9rem;
}

.social-count {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}

/* Modern Question Modal Styles */
.question-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-modal.show {
    opacity: 1;
    visibility: visible;
    display: flex !important;
}

.question-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.question-modal-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 20px;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-modal.show .question-modal-container {
    transform: scale(1) translateY(0);
}

.question-modal-content {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
}

.question-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.question-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid hsl(var(--border));
    background: hsl(var(--card));
}

.question-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.question-modal-title {
    flex: 1;
}

.question-modal-title h2 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 600;
    color: hsl(var(--foreground));
    line-height: 1.3;
}

.question-modal-subtitle {
    margin: 0;
    font-size: 14px;
    color: hsl(var(--muted-foreground));
    line-height: 1.4;
}

.question-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.question-modal-close:hover {
    background: hsl(var(--muted) / 0.8);
    color: hsl(var(--foreground));
}

.question-modal-body {
    padding: 24px;
}

.question-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.question-form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.label-text {
    flex: 1;
}

.label-required {
    color: hsl(var(--destructive));
    font-weight: 600;
}

.label-optional {
    color: hsl(var(--muted-foreground));
    font-size: 12px;
    font-weight: 400;
}

.question-form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.question-form-input,
.question-form-textarea {
    width: 100%;
    padding: 12px 16px;
    padding-right: 48px;
    background: hsl(var(--input));
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    color: hsl(var(--foreground));
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.question-form-input:focus,
.question-form-textarea:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

.question-form-textarea {
    min-height: 100px;
    resize: vertical;
    padding-right: 48px;
}

.question-form-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--muted-foreground));
    pointer-events: none;
}

.question-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.question-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.question-form-submit {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px hsl(var(--primary) / 0.3);
}

.question-form-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px hsl(var(--primary) / 0.4);
}

.question-form-submit:active {
    transform: translateY(0);
}

.question-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Error states */
.question-form-group.error .question-form-input,
.question-form-group.error .question-form-textarea {
    border-color: hsl(var(--destructive));
    box-shadow: 0 0 0 3px hsl(var(--destructive) / 0.1);
}

.question-form-group.error .question-form-label {
    color: hsl(var(--destructive));
}

/* Responsive design */
@media (max-width: 640px) {
    .question-modal-container {
        margin: 16px;
    }
    
    .question-modal-header {
        padding: 20px;
        gap: 12px;
    }
    
    .question-modal-icon {
        width: 40px;
        height: 40px;
    }
    
    .question-modal-title h2 {
        font-size: 18px;
    }
    
    .question-modal-body {
        padding: 20px;
    }
    
    .question-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .question-form-actions {
        justify-content: stretch;
    }
    
    .question-form-submit {
        width: 100%;
        justify-content: center;
    }
}

/* Animation for modal appearance */
@keyframes questionModalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.question-modal.show .question-modal-container {
    animation: questionModalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading state for submit button */
.question-form-submit.loading {
    position: relative;
    color: transparent;
}

.question-form-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
    font-family: inherit;
}

.btn-primary {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.btn-primary:hover {
    background: #2980b9;
    border-color: #2980b9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-primary:disabled {
    background: #bdc3c7;
    border-color: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn i {
    margin-right: 8px;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1001;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    max-width: 350px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-left: 4px solid #1e8449;
}

.notification.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-left: 4px solid #a93226;
}

.notification.info {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-left: 4px solid #1f618d;
}

.notification::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.notification.success::before {
    content: '✓';
}

.notification.error::before {
    content: '✗';
}

.notification.info::before {
    content: 'ℹ';
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.notification-close:hover {
    opacity: 1;
}

/* Modal open state */
body.modal-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .social-networks-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 100%;
        max-width: 200px;
    }
    
    .social-networks-title {
        font-size: 1.3rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Favorite Videos Button Styles */
.favorite-videos-container {
    position: relative;
    display: inline-block;
}

.favorite-videos-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.favorite-videos-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.favorite-videos-btn svg {
    color: white;
    width: 24px;
    height: 24px;
}

.favorite-videos-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    animation: pulse 0.5s ease-in-out;
}

.favorite-videos-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 300px;
    max-width: 400px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.favorite-videos-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.favorite-videos-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.favorite-videos-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.view-all-favorite-videos {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-all-favorite-videos:hover {
    background: rgba(255, 255, 255, 0.3);
}

.favorite-videos-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 8px 0;
}

.no-favorite-videos {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.favorite-video-dropdown-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.favorite-video-dropdown-item:hover {
    background-color: #f8f9fa;
}

.favorite-video-dropdown-item:last-child {
    border-bottom: none;
}

.favorite-video-dropdown-preview {
    width: 80px;
    height: 60px;
    background: #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.favorite-video-dropdown-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.favorite-video-dropdown-info {
    flex: 1;
    min-width: 0;
}

.favorite-video-dropdown-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.favorite-video-dropdown-meta {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.favorite-video-dropdown-author {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
}

.favorite-video-dropdown-hashtag {
    background: rgba(118, 75, 162, 0.1);
    color: #764ba2;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
}

.favorite-video-dropdown-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.favorite-video-dropdown-stars {
    display: flex;
    gap: 1px;
}

.favorite-video-dropdown-stars .star {
    color: #ffd700;
    font-size: 12px;
}

.favorite-video-dropdown-rating-text {
    font-size: 11px;
    color: #666;
}

.favorite-video-dropdown-actions {
    display: flex;
    justify-content: flex-end;
}

.favorite-video-dropdown-comment-btn {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 3px;
}

.favorite-video-dropdown-comment-btn:hover {
    background: rgba(102, 126, 234, 0.2);
}

.favorite-videos-dropdown-more {
    padding: 12px 16px;
    text-align: center;
    color: #667eea;
    font-size: 12px;
    font-weight: 500;
    background: rgba(102, 126, 234, 0.05);
    border-top: 1px solid #f0f0f0;
}

/* Favorite Videos Modal Styles */
.favorite-videos-modal-content {
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.favorite-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.favorite-video-item {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #444;
    transition: all 0.3s ease;
    position: relative;
}

.favorite-video-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: #667eea;
}

.favorite-video-preview {
    position: relative;
    width: 100%;
    height: 200px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.favorite-video-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.favorite-video-info {
    padding: 16px;
}

.favorite-video-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.favorite-video-description {
    font-size: 14px;
    color: #ccc;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.favorite-video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.favorite-video-author {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.favorite-video-hashtag {
    background: rgba(118, 75, 162, 0.2);
    color: #764ba2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.favorite-video-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.favorite-video-rating-stars {
    display: flex;
    gap: 2px;
}

.favorite-video-rating-stars .star {
    color: #ffd700;
    font-size: 14px;
}

.favorite-video-rating-info {
    font-size: 12px;
    color: #ccc;
}

.favorite-video-actions {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
}

.favorite-video-remove-btn {
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff4757;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.favorite-video-remove-btn:hover {
    background: rgba(255, 71, 87, 0.3);
}

.favorite-video-comment-btn {
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: #667eea;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.favorite-video-comment-btn:hover {
    background: rgba(102, 126, 234, 0.3);
}

/* Video Comments Modal Styles */
.video-comments-modal-content {
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.video-info-section {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    border-radius: 12px;
    border: 1px solid #444;
}

.video-preview {
    width: 200px;
    height: 120px;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.video-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-details {
    flex: 1;
}

.video-details h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.video-details p {
    color: #ccc;
    font-size: 14px;
    margin: 0 0 8px 0;
}

.video-details p span {
    color: #667eea;
    font-weight: 500;
}

.video-rating-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.video-rating-display .stars {
    display: flex;
    gap: 2px;
}

.video-rating-display .star {
    color: #ffd700;
    font-size: 16px;
}

.video-rating-display .rating-info {
    font-size: 12px;
    color: #ccc;
}

.comments-section {
    background: #2a2a2a;
    border-radius: 12px;
    border: 1px solid #444;
    overflow: hidden;
}

.add-comment-section {
    padding: 20px;
    border-bottom: 1px solid #444;
}

.add-comment-section h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.comment-form textarea {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.comment-form textarea::placeholder {
    color: #666;
}

.comment-form-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.add-comment-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-comment-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.comments-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
}

.comment-item {
    padding: 16px 20px;
    border-bottom: 1px solid #333;
    transition: background-color 0.2s ease;
}

.comment-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.comment-item:last-child {
    border-bottom: none;
}

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

.comment-author {
    color: #667eea;
    font-size: 14px;
    font-weight: 500;
}

.comment-date {
    color: #666;
    font-size: 12px;
}

.comment-text {
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.no-comments {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Responsive Styles for Favorite Videos */
@media (max-width: 768px) {
    .favorite-videos-dropdown {
        min-width: 280px;
        right: -50px;
    }
    
    .favorite-videos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px 0;
    }
    
    .favorite-video-item {
        margin: 0 8px;
    }
    
    .video-info-section {
        flex-direction: column;
        gap: 16px;
    }
    
    .video-preview {
        width: 100%;
        height: 180px;
    }
    
    .favorite-videos-modal-content,
    .video-comments-modal-content {
        width: 98%;
        margin: 5% auto;
    }
}
