@font-face {
    font-display:block;
    font-family: "yhsans";
    font-style:normal;
    font-weight:300;
    src: url(../fonts/Light.ttf) format("opentype"),
    url(../fonts/Light.woff) format("woff")
}
@font-face {
    font-display: block;
    font-family: "yhsans";
    font-style: normal;
    font-weight: 400;
    src: url(../fonts/Regular.ttf) format("opentype"),
    url(../fonts/Regular.woff) format("woff")
}
@font-face {
    font-display: block;
    font-family: "yhsans";
    font-style: normal;
    font-weight: 500;
    src: url(../fonts/Medium.ttf) format("opentype"),
    url(../fonts/Medium.woff) format("woff")
}
@font-face{
    font-display: block;
    font-family: "yhsans";
    font-style: normal;
    font-weight: 600;
    src: url(../fonts/DemiBold.ttf) format("opentype"),
    url(../fonts/DemiBold.woff) format("woff")
}
@font-face{
    font-display: block;
    font-family: "yhsans";
    font-style: normal;
    font-weight: 700;
    src: url(../fonts/Bold.ttf) format("opentype"),
    url(../fonts/Bold.woff) format("woff")
}

html, body {
    font-family: "yhsans", sans-serif;
}

/* Принудительно показываем сайдбар на десктопе */
@media (min-width: 768px) {
    #sidebar {
        display: flex !important;
    }
}

/* Или если используете hidden класс */
@media (min-width: 768px) {
    .hidden.md\:flex {
        display: flex !important;
    }
}


/* Navigation Styles */
.nav-item {
    @apply text-gray-400 hover:text-white transition-colors duration-200;
}

.nav-item-active {
    @apply text-warning-500;
}

.nav-mobile-item {
    @apply transition-all duration-200;
}

.nav-mobile-item-active {
    @apply text-blue-500;
}

/* Smooth transitions */
.transition-all {
    transition: all 0.3s ease;
}

/* Hide scrollbar for carousel */
.embla__viewport {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.embla__viewport::-webkit-scrollbar {
    display: none;
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Backdrop filter support */
@supports (backdrop-filter: blur(10px)) {
    .backdrop-blur-sm {
        backdrop-filter: blur(4px);
    }
    
    .backdrop-blur-xs {
        backdrop-filter: blur(2px);
    }
}

/* Carousel Styles */
.carousel-viewport {
    scroll-behavior: smooth;
    cursor: grab;
}

.carousel-viewport:active {
    cursor: grabbing;
}

.carousel-viewport::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Carousel Shadows */
.carousel-shadow-left,
.carousel-shadow-right {
    transition: opacity 0.3s ease;
}

.carousel-shadow-left.visible {
    opacity: 1;
}

.carousel-shadow-right.visible {
    opacity: 1;
}

/* Carousel Buttons */
.carousel-btn {
    transition: all 0.3s ease;
}

.carousel-btn.visible {
    display: block !important;
}

.carousel-btn:hover {
    opacity: 1 !important;
}

/* Smooth transitions */
.carousel-slide {
    transition: transform 0.3s ease;
}

.carousel-slide:hover {
    transform: translateY(-5px);
}

/* Hide buttons on mobile */
@media (max-width: 768px) {
    .carousel-btn {
        display: none !important;
    }
}
#user-profile:hover,
#fullscreen-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}
.bg-search {
    background: rgba(255, 255, 255, 0.05);
}

.btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  border: none;
  border-radius: 12px;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
  user-select: none;
}

/* === PRIMARY + SHADOW (Play Now) === */
.btn-primary {
  background: #f59e0b;
  color: white;
}
.btn-primary:hover {
  background: rgba(245, 158, 11, 0.4);
}
.btn-primary:active {
  background: rgba(245, 158, 11, 0.4);
}
.btn-shadow {
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

/* === BORDERED (Trailer) === */
.btn-bordered {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: white;
}
.btn-bordered:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
}
.btn-bordered:active {
  background: rgba(255, 255, 255, 0.08);
}

/* === ICON ONLY (Share, Bookmark) === */
.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
}
.btn-icon:hover {
  background: rgba(255, 255, 255, 0.22);
}
.btn-icon:active {
  background: rgba(255, 255, 255, 0.28);
}

/* small icon alignment */
.icon {
  font-size: 18px;
  display: inline-block;
}

/* Общая обёртка */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
}

/* =======================================
   ЦВЕТА (аналог colors({ color }))
   ======================================= */
.section-title.primary .section-indicator {
  background: rgb(245, 158, 11);
}

.section-title.secondary .section-indicator {
  background: rgb(132 94 247);
}

.section-title.success .section-indicator {
  background: rgb(34 197 94);
}

.section-title.warning .section-indicator {
  background: rgb(245 158 11);
}

.section-title.danger .section-indicator {
  background: rgb(239 68 68);
}


/* =======================================
   РАЗМЕРЫ (аналог size: { h1 ... h6 })
   ======================================= */
.section-title.h4 .section-text { font-size: 1.25rem; }        /* text-xl */
.section-title.h4 .section-indicator { width: 0.55rem; height: 2.1rem; border-radius: 28px;}

/* Casts Section Styles */
.casts-carousel {
    position: relative;
}

.casts-container {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.5rem 0;
}

.casts-container::-webkit-scrollbar {
    display: none;
}

.cast-card {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
}

.user-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    border: 2px solid rgba(245, 158, 11, 0.4);
    object-fit: cover;
}

.user-info {
    margin-left: 0.75rem;
}

.user-name {
    font-weight: 600;
    color: white;
    font-size: 0.875rem;
}

.user-character {
    color: #9CA3AF;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Fallback avatar */
.fallback-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
}

/* Carousel navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.casts-carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn.prev {
    left: 0.5rem;
}

.carousel-btn.next {
    right: 0.5rem;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
/* Related tabs styles */
.related-tab[data-active="true"] {
    border-bottom-color: rgb(245, 158, 11);
    color: rgb(245, 158, 11);
}

.related-tab-content {
    display: none;
}

.related-tab-content.active {
    display: block;
}

/* Smooth transitions */
#backdrop-overlay {
    transition: opacity 0.3s ease;
}

.related-tab {
    transition: all 0.3s ease;
}

/* Player modal animations */
#player-modal {
    animation: fadeIn 0.3s ease;
}

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


/* ============================= */
/* Profile */
/* ============================= */

/* Основные стили для профиля */
.profile-content {
    width: 100%;
    overflow-x: hidden;
}

.profile-body {
    max-width: 100%;
    margin: 0 auto;
    
    box-sizing: border-box;
}

.profile-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.profile-header {
    display: flex;
    width: 100%;
    gap: 12px;
    justify-content: center;
}

.profile-avatar {
    width: 52px;
    height: 52px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-name {text-align: left;}

.profile-name h2 {
    margin: 0;
    font-size: 24px;
    color: var(--white);
    word-wrap: break-word;
}

.profile-name p {
    margin: 5px 0 0 0;
    color: #999;
    word-wrap: break-word;
}

.code-block {
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
    cursor: pointer;
    transition: all 0.8s ease;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
}

.code-hidden {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: var(--white);
}

.code-hidden i {font-size: 18px;}
.code-visible {text-align: center;}

.backup-code {
    font-size: 22px;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 10px;
    display: block;
}

.code-description {
    font-size: 14px;
    color: var(--white);
    margin: 0;
    opacity: 0.9
}