*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: #000;
    color: #f0f0f0;
    min-height: 100vh;
    overflow-x: hidden;
}

.cine-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.cine-app {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cine-header {
    background: #111;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 100;
}

.cine-header__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cine-logo {
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.cine-logo__primary {
    color: #b8e1c5;
}

.cine-logo__sub {
    display: none;
}

.cine-nav__list {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

.cine-nav__link {
    color: #ddd;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cine-nav__link:hover {
    color: #fff;
    background: #222;
}

.cine-nav__link--active {
    color: #b8e1c5;
    background: #1a1a1a;
}

.cine-nav__item--dropdown {
    position: relative;
}

.cine-nav__chevron {
    width: 12px;
    height: 12px;
}

.cine-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #111;
    border: 1px solid #222;
    border-radius: 4px;
    min-width: 200px;
    padding: 0.5rem;
    display: none;
    z-index: 101;
}

.cine-nav__item--dropdown:hover .cine-dropdown {
    display: block;
}

.cine-dropdown__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
}

.cine-dropdown__link {
    color: #ddd;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 3px;
    font-size: 0.9rem;
    display: block;
}

.cine-dropdown__link:hover {
    background: #222;
    color: #fff;
}

.cine-main {
    flex: 1;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.cine-breadcrumbs {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #222;
}

.cine-breadcrumbs__container a {
    color: #b8e1c5;
    text-decoration: none;
}

.cine-breadcrumbs__container a:hover {
    text-decoration: underline;
}

.cine-content {
    margin-top: 1rem;
}

.cine-category__header {
    margin-bottom: 1.5rem;
}

.cine-category__title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.cine-category__desc {
    color: #aaa;
    font-size: 0.95rem;
}

.cine-category__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.cine-single {
    background: #111;
    border-radius: 4px;
    overflow: hidden;
}

.cine-single__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.cine-single__main {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.cine-single__poster-wrapper {
    position: relative;
}

.cine-single__poster {
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.cine-single__poster-img {
    width: 100%;
    height: auto;
    display: block;
}

.cine-single__series-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: #ffd700;
    color: #000;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cine-single__edit-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #222;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.cine-single__actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.cine-single__rating {
    flex: 1;
    background: #1a1a1a;
    border-radius: 4px;
    padding: 0.5rem;
    text-align: center;
}

.cine-single__rating-value {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}

.cine-single__rating-max {
    color: #aaa;
    font-size: 0.9rem;
}

.cine-single__rating-label {
    color: #aaa;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.cine-single__header {
    margin-bottom: 1rem;
}

.cine-single__title {
    color: #fff;
    font-size: 1.75rem;
    line-height: 1.2;
}

.cine-single__description {
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cine-single__details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.cine-single__detail {
    display: flex;
    flex-direction: column;
}

.cine-single__detail-term {
    color: #b8e1c5;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.cine-single__detail-desc {
    color: #fff;
    font-size: 0.95rem;
}

.cine-single__quality-badge {
    display: inline-block;
    background: #222;
    color: #fff;
    padding: 0.125rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

.cine-single__player {
    margin: 2rem 0;
}

.cine-single__player-header {
    margin-bottom: 1rem;
}

.cine-single__player-title {
    color: #fff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cine-single__player-wrapper {
    background: #000;
    border-radius: 6px;
    overflow: hidden;
}

.cine-single__player-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.cine-single__player-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cine-single__player-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.cine-single__ads {
    margin: 1.5rem 0;
}

.cine-single__related {
    margin-top: 2rem;
}

.cine-single__related-header {
    margin-bottom: 1.5rem;
}

.cine-single__related-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.cine-single__related-subtitle {
    color: #aaa;
    font-size: 0.95rem;
}

.cine-single__related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.cine-related-item {
    background: #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
}

.cine-related-item__link {
    text-decoration: none;
    display: block;
    color: #b8e1c5;
}

.cine-related-item__poster {
    position: relative;
    padding-top: 150%;
    background: #000;
    overflow: hidden;
}

.cine-related-item__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cine-related-item__rating {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: #ffd700;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cine-related-item__year {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.125rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
}

.cine-related-item__info {
    padding: 0.75rem;
}

.cine-related-item__title {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.cine-related-item__meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #aaa;
}

.cine-card {
    background: #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
}

.cine-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.cine-card__poster {
    padding-top: 150%;
    background: #000;
    position: relative;
    overflow: hidden;
}

.cine-card__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cine-card__content {
    padding: 0.75rem;
}

.cine-card__title {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.3;
    font-weight: 500;
}

.cine-home {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cine-section {
    background: #111;
    border-radius: 6px;
    padding: 1rem;
}

.cine-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cine-section__title {
    color: #fff;
    font-size: 1.25rem;
}

.cine-section__more {
    color: #b8e1c5;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.cine-grid--popular .cine-card__poster::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d);
}

.cine-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
}

.cine-search-modal {
    background: #111;
    border-radius: 8px;
    max-width: 600px;
    margin: 2rem auto;
    padding: 1.5rem;
}

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

.cine-search-title {
    color: #fff;
    font-size: 1.25rem;
}

.cine-search-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.25rem;
}

.cine-search-form {
    position: relative;
}

.cine-search-input-group {
    display: flex;
    gap: 0.5rem;
}

.cine-search-input {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #222;
    border-radius: 4px;
    color: #fff;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.cine-search-input:focus {
    outline: none;
    border-color: #b8e1c5;
}

.cine-search-submit {
    background: #b8e1c5;
    border: none;
    border-radius: 4px;
    color: #000;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
}

.desc-text {
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.desc-text h1,
.desc-text h2 {
    color: #fff;
    margin: 1.5rem 0 1rem;
    font-weight: 600;
}

.desc-text h1 {
    font-size: 1.5rem;
}

.desc-text h2 {
    font-size: 1.25rem;
}

.desc-text p {
    margin-bottom: 1rem;
}

.bottom-nav {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid #222;
}

.pagi-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.navigation {
    display: flex;
    gap: 0.25rem;
}

.navigation a,
.navigation span {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.9rem;
}

.navigation a {
    color: #b8e1c5;
    text-decoration: none;
    background: #1a1a1a;
}

.navigation a:hover {
    background: #222;
}

.navigation span {
    color: #666;
}

.pprev,
.pnext {
    display: inline-block;
}

.pprev a,
.pnext a {
    color: #b8e1c5;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    background: #1a1a1a;
}

.berrors {
    background: #1a1a1a;
    border-left: 4px solid #ff6b6b;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    color: #fff;
}

.berrors b {
    color: #ff6b6b;
    display: block;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .cine-header__container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cine-nav__list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cine-nav__item--dropdown .cine-dropdown {
        position: static;
        display: none;
        margin-top: 0.5rem;
    }
    
    .cine-single__main {
        grid-template-columns: 1fr;
    }
    
    .cine-single__poster-wrapper {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .cine-grid,
    .cine-category__grid,
    .cine-single__related-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .cine-search-modal {
        margin: 1rem;
        padding: 1rem;
    }
    
    .cine-search-input-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .cine-grid,
    .cine-category__grid,
    .cine-single__related-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    
    .cine-single__details-grid {
        grid-template-columns: 1fr;
    }
    
    .cine-main {
        padding: 0.5rem;
    }
}