body{
    background-color: #14121A;
    font-family: Arial, sans-serif;
    margin: 0;
    line-height: 1.5;
    color: #F5F2F7;
}

.greeting{
    flex-direction: column;
    display: flex;

    justify-content: center;
    align-items: center;
    text-align: center;

    width: auto;
    padding: 3rem 1.5rem 2rem;
}

.txtGreeting{
    color: #BDB5C9;
}

.h1Greeting{
    margin: 0;
    color: #ff3377;
    font-size: 2.5rem;
}

.mainPart{
    display: grid;
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.meloCard{
    display: flex;
    flex-direction: column;

    box-sizing: border-box;
    height: auto;
    width: 100%;

    background-color: #211D2B;
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid #393142 ;
    margin: 0;
}

.meloCard[hidden]{
    display: none;
}

.meloPoster{
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.watch{
    margin-top: auto;
    height: 48px;
    width: 160px;
    padding: 5px;

    border: none;
    border-radius: 12px;

    color: #14121A;
    background: #F48FB1;
    cursor: pointer;
    transition: background-color 0.5s ease;

    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    box-sizing: border-box;

}

.watch:hover{
    background-color: #FFB0CB;
}

.nameOfMelo{
    font-size: 1.25rem;
    margin-top: 0;
}

.yearOfProduction, .txtDescription{
    color: #BDB5C9;
}

.txtDescription{
    margin-bottom: 1.5rem;
    margin-top: auto;
}

.watchPage{
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem;
    box-sizing: border-box;

}

.watchPage label[for="sourceSelect"][hidden],
#sourceSelect[hidden] {
    display: none;
}

.watchPage label[for="sourceSelect"] {
    display: block;
    margin-bottom: 0.5rem;
    color: #BDB5C9;
}

#sourceSelect {
    margin-bottom: 1rem;
}

#sourceSelect:disabled {
    opacity: 0.6;
}

.watchHeader{
    padding: 1.5rem;
}

.watchMeta{
    color: #BDB5C9;
}

.videoContainer{
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #211D2B;
    border-radius: 16px;
}

.videoContainer iframe{
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.statusPanel{
    background-color: #211D2B;
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1.5rem;
}
.statusPanel label{
    display: block;
    margin-bottom: 0.5rem;
}

#watchStatus, #sourceSelect{
    background-color: #14121A;
    color: #F5F2F7;
    font: inherit;
    padding: 0.75rem;
    border: 1px solid #393142;
    border-radius: 8px;
    min-height: 44px;
    max-width: 100%;
    box-sizing: border-box;
}

#watchStatus:focus-visible,
#sourceSelect:focus-visible {
    outline: 2px solid #F48FB1;
    outline-offset: 3px;
}

.searchPanel{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.searchPanel label{
    display: block;
    margin-bottom: 0.5rem;
    color: #BDB5C9;
}

#filmSearch, #statusFilter{
    width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    background-color: #211D2B;
    color: #F5F2F7;
    border: 1px solid #393142;
    border-radius: 12px;
    font: inherit;
}

#filmSearch:focus-visible, #statusFilter:focus-visible{
    outline: 2px solid #F48FB1;
    outline-offset: 2px;
}

.searchPanel label[for="statusFilter"]{
    margin-top: 1rem;
}

#searchMessage{
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    box-sizing: border-box;
    text-align: center;
    color: #BDB5C9;
    font-size: 1.1rem;
}

.loginPage{
    max-width: 420px;
    margin: 4rem auto;
    padding: 1.5rem;
    box-sizing: border-box;
}

.loginForm{
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #211D2B;
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid #393142;
}

.loginForm input{
    width: 100%;
    box-sizing: border-box;
    padding: 0.85rem;
    background: #14121A;
    color: #F5F2F7;
    border: 1px solid #393142;
    border-radius: 10px;
    font: inherit;
}

.primaryButton, .secondaryButton, .backLink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.65rem 1rem;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.primaryButton{
    background: #F48FB1;
    color: #14121A;
}

.secondaryButton, .backLink{
    background: transparent;
    color: #F48FB1;
    border-color: #393142;
}

.primaryButton:hover{
    background: #FFB0CB;
}

.secondaryButton:hover, 
.backLink:hover{
    background: #211D2B;
}

.secondaryButton[hidden]{
    display: none;
}

.loginForm input:focus-visible,
.primaryButton:focus-visible,
.secondaryButton:focus-visible,
.backLink:focus-visible {
    outline: 2px solid #F48FB1;
    outline-offset: 3px;
}

.loginError {
    margin: 0;
    padding: 0.85rem 1rem;
    color: #FFE4EC;
    background-color: #482333;
    border: 1px solid #D97898;
    border-radius: 10px;
    font-weight: 600;
}

