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

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.5;
    overflow-x: hidden;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Black and white theme with gray shades for main page */
body.main-page {
    background-color: #000000;
    color: #ffffff;
}

body.main-page .bot-name {
    color: #ffffff;
}

body.main-page .made-by {
    color: #9ca3af;
}

body.main-page .search-container {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border: 1px solid #4b5563;
}

body.main-page .search-title {
    color: #ffffff;
}

body.main-page .secondary-button {
    background-color: #374151;
    color: #ffffff;
}

body.main-page .secondary-button:hover {
    background-color: #4b5563;
}

body.main-page .secondary-button:active {
    background-color: #1f2937;
}

body.main-page .button-text {
    color: #ffffff;
}

body.main-page .plus-icon {
    color: #ffffff;
}

body.main-page .info-block {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border: 1px solid #4b5563;
}

body.main-page .info-question {
    color: #ffffff;
}

body.main-page .info-text {
    color: #d1d5db;
}

body.main-page .info-instruction {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Header */
.header {
    margin-bottom: 40px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-left {
    text-align: center;
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-menu {
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border: 1px solid #4b5563;
    color: #d1d5db;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.2s;
    position: relative;
}

.profile-btn:hover {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border-color: #6b7280;
}

.dropdown-arrow {
    transition: transform 0.2s;
    color: #9ca3af;
}

.profile-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
    animation: dropdownFadeIn 0.2s ease-out;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: #374151;
    color: #ffffff;
}

.dropdown-item svg {
    color: #9ca3af;
    transition: color 0.2s;
}

.dropdown-item:hover svg {
    color: #ffffff;
}

.dropdown-divider {
    height: 1px;
    background: #374151;
    margin: 4px 0;
}

.logout-item {
    color: #ef4444;
}

.logout-item:hover {
    background: #dc2626;
    color: #ffffff;
}

.logout-item svg {
    color: #ef4444;
}

.logout-item:hover svg {
    color: #ffffff;
}

/* user-avatar styles removed */

.user-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.verified-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 12px;
    font-weight: 600;
}

.logout-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.login-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.login-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
}

.bot-name {
    font-size: 36px;
    font-weight: 800;
    color: #d1d5db;
    margin-bottom: 8px;
    letter-spacing: -0.8px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.made-by {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 400;
}

/* Main Search */
.main-search {
    margin-bottom: 30px;
}

.search-container {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #4b5563;
    max-width: 100%;
    width: 100%;
}

.search-header {
    text-align: center;
    margin-bottom: 25px;
}

.search-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.search-subtitle {
    font-size: 16px;
    color: #d1d5db;
    text-align: center;
    font-weight: 400;
}

.main-search-bar {
    display: flex;
    align-items: center;
    background-color: #000000;
    border: 2px solid #ec4899;
    border-radius: 16px;
    padding: 18px 24px;
    gap: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
    width: 100%;
}

.main-search-bar:focus-within {
    border-color: #f472b6;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.5);
    transform: translateY(-2px);
}

.main-search-bar .search-icon {
    color: #ec4899;
    flex-shrink: 0;
}

.main-search-input {
    flex: 1;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    outline: none;
    padding: 6px 0;
    width: 100%;
    letter-spacing: -0.2px;
}

.main-search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Random Channel Button */
.random-channel-section {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.random-channel-btn {
    background-color: #374151;
    border: 1px solid #4b5563;
    border-radius: 10px;
    color: #d1d5db;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.2px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.random-channel-btn:hover {
    background-color: #4b5563;
    border-color: #6b7280;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.random-channel-btn:active {
    background-color: #1f2937;
    border-color: #374151;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.random-channel-btn svg {
    color: inherit;
    flex-shrink: 0;
}


/* Search Results */
.main-search-results {
    margin-top: 25px;
    animation: fadeIn 0.3s ease;
}

.main-search-results.hidden {
    display: none;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 8px;
}

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

.results-list::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 3px;
}

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

.results-list::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Search Sections */
.search-section {
    margin-bottom: 24px;
}

.search-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3b82f6;
}

.search-section-title svg {
    color: #3b82f6;
}

/* Tags Results */
.tags-results {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.tag-result {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.tag-result:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.tag-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
}

.tag-count {
    color: #dbeafe;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 6px;
}

/* Channels Results */
.channels-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Enhanced Result Cards */
.result-card {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid #4b5563;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.result-card:hover {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: #3b82f6;
}

.channel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 16px;
}

.channel-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    flex: 1;
    letter-spacing: -0.3px;
}

.channel-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.rating-value {
    font-size: 14px;
    color: #fbbf24;
    font-weight: 600;
}

.channel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.channel-tags .tag {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.no-results svg {
    color: #6b7280;
    margin-bottom: 16px;
}

.no-results p {
    font-size: 18px;
    font-weight: 600;
    color: #d1d5db;
    margin-bottom: 8px;
}

.no-results span {
    font-size: 14px;
    color: #9ca3af;
}

/* Secondary Menu */
.secondary-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.secondary-button {
    background-color: #374151;
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    min-height: 50px;
}

.secondary-button:hover {
    background-color: #4b5563;
    transform: translateY(-1px);
}

.secondary-button:active {
    background-color: #1f2937;
    transform: translateY(0);
}

.button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
}

.button-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
    text-align: center;
    letter-spacing: -0.2px;
}

.plus-icon {
    color: #ffffff;
    flex-shrink: 0;
}

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

/* Info Section */
.info-section {
    margin-top: 30px;
}

.info-block {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid #4b5563;
    position: relative;
    overflow: hidden;
}

.info-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.info-question {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: -0.3px;
}

.info-question::before {
    content: '❓';
    font-size: 20px;
}

.info-text {
    font-size: 15px;
    color: #d1d5db;
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: center;
    padding: 0 10px;
    font-weight: 500;
}

.info-instruction {
    font-size: 15px;
    font-weight: 800;
    color: #60a5fa;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.1);
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    letter-spacing: -0.2px;
}

.info-instruction::before {
    content: '💬';
    font-size: 16px;
}

/* Page Navigation */
.page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000000;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.page.hidden {
    display: none;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    padding-top: 20px;
}

.back-button {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.back-button:hover {
    background-color: #374151;
}

.logout-button {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.logout-button:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    flex: 1;
}

/* Search Page */
.search-container {
    max-width: 100%;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: #374151;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 24px;
    gap: 12px;
}

.search-bar .search-icon {
    color: #9ca3af;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 16px;
    outline: none;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-submit {
    background-color: #3b82f6;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-submit:hover {
    background-color: #2563eb;
}

.search-submit svg {
    color: #ffffff;
}

.results-header {
    margin-bottom: 20px;
}

.results-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
}

/* Search Results */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.result-card {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid #4b5563;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.result-card:hover {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: #3b82f6;
}

.channel-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: -0.3px;
}

.channel-description {
    font-size: 14px;
    color: #d1d5db;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

.rating-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.rating-label {
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: -0.1px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    width: 16px;
    height: 16px;
    fill: #fbbf24;
}

.star.half {
    fill: url(#half-star);
}

.rating-text {
    font-size: 14px;
    color: #ffffff;
    margin-left: 4px;
}

.details-button {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 24px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.details-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.details-button:active {
    transform: translateY(0);
}

/* Add Channel Page */
.add-channel-container {
    max-width: 100%;
}

.add-channel-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-input,
.form-textarea,
.form-select {
    background-color: #000000;
    border: 2px solid #4b5563;
    border-radius: 16px;
    padding: 18px 24px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Special styles for admin login inputs */
.admin-form .form-input {
    background-color: #000000;
    border: 2px solid #4b5563;
    border-radius: 16px;
    padding: 20px 24px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.admin-form .form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.admin-form .form-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

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

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.input-hint {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    text-align: center;
}

.moderation-info {
    background-color: #1f2937;
    border-radius: 8px;
    padding: 16px;
    margin: 8px 0;
}

.moderation-info p {
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.5;
    text-align: center;
}

.submit-button {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    border-radius: 16px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    padding: 20px 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    letter-spacing: -0.2px;
}

.submit-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.submit-button:active {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

/* Channel Details Page */
.channel-details {
    max-width: 100%;
}

.detail-card {
    background-color: #374151;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.detail-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    text-align: center;
}

.detail-description {
    font-size: 16px;
    color: #d1d5db;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: center;
}

.detail-link {
    display: block;
    background-color: #3b82f6;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    margin: 0 auto 20px auto;
    transition: background-color 0.2s ease;
    text-align: center;
    width: fit-content;
}

.detail-link:hover {
    background-color: #2563eb;
}

.detail-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.detail-rating .stars {
    gap: 4px;
}

.detail-rating .star {
    width: 20px;
    height: 20px;
}

.detail-rating .rating-text {
    font-size: 16px;
    font-weight: 600;
}

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

.reviews-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
}

.review-card {
    background-color: #374151;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

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

.review-nickname {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background-color: #10b981;
    color: #ffffff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    margin-left: 4px;
}

.review-date {
    font-size: 12px;
    color: #9ca3af;
}

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

.review-rating .star {
    width: 14px;
    height: 14px;
}

.review-text {
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.5;
}

/* Add Review Form */
.add-review-form {
    background-color: #374151;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.add-review-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
    text-align: center;
}

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

.review-form-group:has(input[type="checkbox"]) {
    text-align: center;
}

.review-form-group input[type="checkbox"] {
    margin-right: 8px;
}

.review-form-group label {
    display: block;
    font-size: 14px;
    color: #d1d5db;
    margin-bottom: 8px;
    text-align: center;
}

.rating-input {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.rating-star {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s ease;
}

.rating-star:hover {
    transform: scale(1.1);
}

.rating-star svg {
    width: 24px;
    height: 24px;
    fill: #4b5563;
    transition: fill 0.2s ease;
}

.rating-star.active svg,
.rating-star:hover svg {
    fill: #fbbf24;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 16px;
    }
    
    .bot-name {
        font-size: 24px;
    }
    
    .page {
        padding: 16px;
    }
    
    .page-title {
        font-size: 20px;
    }
}

/* Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #9ca3af;
    text-align: center;
    font-weight: 500;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #374151;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
.error {
    background-color: #dc2626;
    color: #ffffff;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    text-align: center;
    font-weight: 500;
}

.success {
    background-color: #059669;
    color: #ffffff;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    text-align: center;
    font-weight: 500;
}

/* Admin Panel Styles */
.admin-container {
    max-width: 100%;
}

.admin-login {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-radius: 20px;
    padding: 40px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #4b5563;
    position: relative;
    overflow: hidden;
}

.admin-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.admin-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-dashboard {
    margin-top: 20px;
}

.admin-search {
    margin-bottom: 20px;
}

.admin-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #374151;
    padding-bottom: 8px;
}

.admin-tab {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border: 1px solid #4b5563;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: center;
}

.admin-tab.active {
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.admin-tab:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border-color: #6b7280;
}

.admin-content {
    min-height: 400px;
}

/* Admin Items */
.admin-item {
    background-color: #374151;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.admin-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.admin-item-details {
    font-size: 14px;
    color: #d1d5db;
    margin-bottom: 4px;
}

.admin-item-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
}

.admin-item-status.pending {
    background-color: #f59e0b;
    color: #000000;
}

.admin-item-status.approved {
    background-color: #10b981;
    color: #ffffff;
}

.admin-item-status.rejected {
    background-color: #ef4444;
    color: #ffffff;
}

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

.admin-action-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.admin-action-btn.edit {
    color: #3b82f6;
}

.admin-action-btn.delete {
    color: #ef4444;
}

.admin-action-btn.approve {
    color: #10b981;
}

.admin-action-btn:hover {
    background-color: #4b5563;
}

/* Tags Container */
.tags-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 40px;
    padding: 8px;
    background-color: #1f2937;
    border-radius: 8px;
    border: 1px solid #374151;
}

.tag-item {
    background-color: #3b82f6;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tag-remove {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.tag-remove:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.tags-input-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tags-input-container .form-select {
    flex: 1;
}

.add-tag-btn {
    background-color: #3b82f6;
    border: none;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.add-tag-btn:hover {
    background-color: #2563eb;
}

.create-tag-btn {
    background-color: #10b981;
    border: none;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    width: 100%;
}

.create-tag-btn:hover {
    background-color: #059669;
}

.form-label {
    display: block;
    font-size: 14px;
    color: #d1d5db;
    margin-bottom: 8px;
    text-align: center;
    font-weight: 500;
}

/* Admin Statistics Styles */
.admin-stats-header {
    margin-bottom: 20px;
    text-align: center;
}

.admin-stats-header h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #4b5563;
}

.stat-card h4 {
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-number {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
}

.stats-section {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #4b5563;
}

.stats-section h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: #000000;
    border-radius: 8px;
    border: 1px solid #4b5563;
}

.stat-item span:first-child {
    color: #d1d5db;
    font-size: 14px;
}

.stat-item span:last-child {
    color: #3b82f6;
    font-weight: 600;
    font-size: 14px;
}

.user-info-display {
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
    font-style: italic;
    margin: 0;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.hidden {
    display: none !important;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: #374151;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    flex: 1;
}

.modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background-color: #4b5563;
    color: #ffffff;
}

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

/* Login Modal Styles */
.login-modal-content {
    padding: 20px 0;
}

.telegram-info {
    text-align: center;
}

.telegram-icon {
    color: #3b82f6;
    margin-bottom: 20px;
}

.telegram-info h4 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.telegram-info p {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.telegram-login-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    width: 100%;
}

.telegram-login-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.telegram-login-btn:active {
    transform: translateY(0);
}

.telegram-widget-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.telegram-widget-container iframe {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Auth Required Styles */
.auth-required {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.auth-required::after {
    content: 'Требуется авторизация';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-right {
        justify-content: center;
    }
    
    .user-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .user-dropdown {
        right: 0;
        left: auto;
        min-width: 180px;
    }
    
    .profile-btn {
        padding: 6px 12px;
    }
    
    .user-name {
        font-size: 13px;
    }
}

/* Profile Modal Styles */
.profile-modal {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.profile-content {
    padding: 24px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #374151;
}

/* profile-avatar styles removed */

/* edit-avatar-btn styles removed */

.profile-info h4 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.profile-info p {
    color: #9ca3af;
    font-size: 14px;
    margin: 2px 0;
}

.profile-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
    padding: 16px;
    background: #1f2937;
    border-radius: 12px;
    border: 1px solid #374151;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
}

.stat-label {
    color: #9ca3af;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-section h5 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.profile-section textarea {
    width: 100%;
    background: #1f2937;
    border: 1px solid #374151;
    color: #d1d5db;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
}

.profile-section textarea:focus {
    outline: none;
    border-color: #6366f1;
}

.user-reviews-list, .favorite-channels-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-review-item, .favorite-channel-item {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s;
}

.user-review-item:hover, .favorite-channel-item:hover {
    border-color: #4b5563;
    background: #374151;
}

.review-channel-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.review-channel-link:hover {
    text-decoration: underline;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.review-text {
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.5;
}

.review-date {
    color: #9ca3af;
    font-size: 12px;
    margin-top: 8px;
}

.favorite-channel-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.favorite-channel-info h6 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.favorite-channel-info p {
    color: #9ca3af;
    font-size: 12px;
    margin: 0;
}

.profile-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #374151;
}

.save-profile-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.save-profile-btn:hover {
    background: linear-gradient(135deg, #5b21b6, #7c3aed);
    transform: translateY(-1px);
}

/* Channel Admin Styles */
.channel-admins {
    margin-top: 16px;
    padding: 16px;
    background: #1f2937;
    border-radius: 8px;
    border: 1px solid #374151;
}

.channel-admins h6 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.admin-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #374151;
    border: 1px solid #4b5563;
    padding: 6px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.admin-item:hover {
    background: #4b5563;
    border-color: #6b7280;
}

.admin-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.admin-name {
    font-size: 12px;
    font-weight: 500;
    color: #d1d5db;
}

.admin-verified {
    color: #10b981;
    font-size: 10px;
}

/* Admin user management styles - avatar styles removed */

.admin-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
}

.user-details {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.user-info {
    flex: 1;
}

.user-info h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.user-info p {
    margin: 5px 0;
    color: #666;
}

.user-sessions {
    margin-top: 20px;
}

.session-item {
    background: #1f2937;
    border: 1px solid #374151;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.session-item p {
    margin: 3px 0;
    font-size: 14px;
    color: #e5e7eb;
}

.pagination-info {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

/* Admin action button styles */
.admin-action-btn.link {
    background: #10b981;
    color: white;
}

.admin-action-btn.link:hover {
    background: #059669;
}

.admin-action-btn.unlink {
    background: #f59e0b;
    color: white;
}

.admin-action-btn.unlink:hover {
    background: #d97706;
}

.admin-action-btn.block {
    background: #ef4444;
    color: white;
}

.admin-action-btn.block:hover {
    background: #dc2626;
}

.admin-action-btn.unblock {
    background: #10b981;
    color: white;
}

.admin-action-btn.unblock:hover {
    background: #059669;
}

/* Anonymous review checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #e5e7eb;
    margin-bottom: 10px;
}

.form-checkbox {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #6366f1;
}

.checkbox-text {
    user-select: none;
}

/* No data message */
.no-data {
    text-align: center;
    color: #9ca3af;
    font-size: 16px;
    padding: 40px 20px;
    background: #1f2937;
    border-radius: 8px;
    border: 1px solid #374151;
}

/* Edit channel modal styles */
.form-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #374151;
    border-radius: 6px;
    background: #1f2937;
    color: #e5e7eb;
    font-size: 14px;
}

.form-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-secondary {
    background: #6b7280;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background: #4b5563;
}

/* Yandex Ads Section */
.ads-section {
    background: #1a1a1a;
    border-top: 1px solid #333;
    padding: 40px 0;
    margin-top: 60px;
}

.ads-title {
    text-align: center;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 30px;
}

#yandex_rtb_R-A-17122539-1 {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #444;
}