/* ============================================
   KV-Stream - Feed Styles
   New & Hot, Category Views, Navigation
   ============================================ */

/* New & Hot Feed (Netflix 2025 Specification) */
.new-hot-view {
    padding: 20px 0 100px 0;
}

.new-hot-header {
    position: sticky;
    top: 0;
    background: var(--color-bg-primary);
    z-index: 100;
    padding: 10px 0;
    margin-bottom: 20px;
}

.new-hot-tabs {
    display: flex;
    gap: 12px;
    padding: 0 4%;
    overflow-x: auto;
    scrollbar-width: none;
}

.new-hot-tabs::-webkit-scrollbar {
    display: none;
}

.new-hot-tab {
    background: #232323;
    color: #bcbcbc;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    font-size: 14px;
}

.new-hot-tab.active {
    background: white;
    color: black;
}

.new-hot-feed {
    padding: 0 4%;
    max-width: 800px;
    margin: 0 auto;
}

.new-hot-item {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.new-hot-item__sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 45px;
    flex-shrink: 0;
}

.new-hot-item__month {
    font-size: 12px;
    font-weight: 800;
    color: #bcbcbc;
}

.new-hot-item__day {
    font-size: 24px;
    font-weight: 900;
    color: white;
}

.new-hot-item__content {
    flex: 1;
}

.new-hot-item__card {
    background: #181818;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.new-hot-item__img-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
}

.new-hot-item__img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.new-hot-item__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid white;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.new-hot-item__details {
    padding: 20px;
}

.new-hot-item__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.new-hot-item__title {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    font-family: 'Outfit', sans-serif;
}

.new-hot-item__actions {
    display: flex;
    gap: 15px;
}

.new-hot-item__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    color: white;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    gap: 4px;
}

.new-hot-item__desc {
    color: #bcbcbc;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

.new-hot-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.new-hot-item__tag {
    font-size: 11px;
    color: white;
    font-weight: 700;
}

.new-hot-item__tag:not(:last-child)::after {
    content: '•';
    margin-left: 8px;
    color: #e50914;
}

/* Side Navigation Menu */
.side-menu {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    visibility: hidden;
    opacity: 0;
    transition: var(--transition-base);
}

.side-menu.active {
    visibility: visible;
    opacity: 1;
}

.side-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.side-menu__content {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    max-width: 80vw;
    background: var(--color-bg-secondary);
    transform: translateX(-100%);
    transition: var(--transition-base);
    overflow-y: auto;
}

.side-menu.active .side-menu__content {
    transform: translateX(0);
}

.side-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
}

.side-menu__title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
}

.side-menu__close {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
}

.side-menu__item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--color-text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-fast);
}

.side-menu__item:hover {
    background: var(--color-bg-hover);
    color: var(--color-accent);
}

.badge--new {
    background: var(--color-error);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-bold);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    background: var(--color-bg-primary);
    visibility: hidden;
    opacity: 0;
    transition: var(--transition-base);
    padding: var(--spacing-lg);
}

.search-overlay.active {
    visibility: visible;
    opacity: 1;
}

.search-overlay__container {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    max-width: 600px;
    margin: 0 auto;
}

.search-overlay__input {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-primary);
    font-size: var(--font-size-lg);
}

.search-overlay__input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.search-overlay__close {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: var(--spacing-sm);
}

/* Footer - PhimMoiChill Style */
.footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-3xl);
}

.footer__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-3xl);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer__logo-icon {
    font-size: 32px;
}

.footer__logo-text {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
}

.footer__logo-accent {
    color: var(--color-accent);
}

.footer__tagline {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
}

.footer__social {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.footer__social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-hover);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    transition: var(--transition-base);
}

.footer__social-link:hover {
    background: var(--color-accent);
    color: white;
}

/* Recommendations Grid */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.recommendation-card {
    background: #2f2f2f;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.recommendation-card:hover {
    background: #3a3a3a;
    transform: translateY(-5px);
}

.recommendation-card__img-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
}

.recommendation-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommendation-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
    background: rgba(30, 30, 30, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.recommendation-card:hover .recommendation-card__play {
    opacity: 1;
}

.recommendation-card__content {
    padding: 16px;
}

.recommendation-card__meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.recommendation-card__desc {
    font-size: 0.85rem;
    color: #d2d2d2;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Episodes Section - Netflix 2025 */
.modal__episodes {
    margin-top: 3rem;
    border-top: 1px solid #404040;
    padding-top: 2rem;
}

.modal__section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Header - RoPhim Mobile Style */
.header__menu-btn {
    background: none;
    border: none;
    color: var(--color-text-primary);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.header__menu-btn:hover {
    background: var(--color-bg-hover);
}

.header__search-btn {
    background: none;
    border: none;
    color: var(--color-text-primary);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.header__search-btn:hover {
    background: var(--color-bg-hover);
}

.header__logo-accent {
    color: var(--color-accent);
}

.header__tagline {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-regular);
}