.day-block {
	margin-bottom: 50px;
}

.day-title {
	font-size: 26px;
	font-weight: 600;
	margin-bottom: 20px;
	color: #ff9d00;
}

.film-row{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 20px;
    align-items: start;
}


.film-card {
	background: #fff;
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	transition: 0.3s;
	border: 1px solid #222;
	position: relative;
}

.film-card:hover {
	background: #242424;
	transform: translateY(-4px);
}

.film-poster {
    text-align: center;
    position: relative;
    width: 100%;
    height: 375px;
    overflow: hidden;
    border-radius: 6px 6px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 30px;
}

/* размытие-задник */
.film-poster::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--poster);
	background-size: cover;
	background-position: center;
	filter: blur(20px);
	transform: scale(1.2);
	opacity: 0.6;
}

/* затемнение сверху */
.film-poster::after {
	content: "";
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .9) 100%) 0% 0%;
	opacity: 1;
	bottom: -50%;
	left: 0;
	z-index: 3;
	transition: all 0.3s ease-out 0s;
}

/* настоящее изображение */
.film-poster img {
	position: relative;
	z-index: 2;
	width: auto;
	height: 100%;
	display: block;
	margin: 0 auto;
	object-fit: contain;
}


.film-poster img {
	width: auto;
	height: 320px;
	object-fit: cover;
}

.film-info {
	padding: 15px;
}

.film-title {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 8px;
	line-height: 21px;
	color: #fff;
	text-transform: uppercase;
}

.film-time {
	font-size: 18px;
	background: #ff9d00;
	padding: 8px 12px;
	border-radius: 8px;
	display: inline-block;
	margin-top: 5px;
	font-weight: bold;
	color: #fff;
}

.add-btn {
	padding: 11px 15px;
	border: none;
	background: #ff9d00;
	color: #fff;
	border-radius: 8px;
	cursor: pointer;
	transition: 0.2s;
	width: calc(100% - 30px);
	margin: 15px;
	font-weight: bold;
	font-size: 16px;
}

.add-btn:hover {
	background: #d98800;
}

#visitComment {
	height: 140px;
}

.modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	justify-content: center;
	align-items: center;
}

.modal-content {
	background: #1c1c1c;
	padding: 25px;
	border-radius: 12px;
	width: 375px;
	color: #fff;
	position: relative;
}

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

.modal-header h2 {
	margin: 0;
	font-size: 22px;
}

.close-btn {
	font-size: 28px;
	cursor: pointer;
	color: #fff;
	transition: 0.2s;
	position: absolute;
	right: 6px;
	top: -4px;
	font-weight: bold;
}

.close-btn:hover {
	color: #ff9d00;
}

select,
textarea {
	width: 100%;
	padding: 10px;
	background: #2b2b2b;
	color: #fff;
	border: 1px solid #555;
	border-radius: 8px;
	font-size: 16px;
	margin-bottom: 15px;
	outline: none;
	box-sizing: border-box;
	resize: none;
}


select:hover {
	border-color: #777;
}

.modal-btn {
	width: 100%;
	padding: 12px;
	border-radius: 8px;
	border: none;
	margin-top: 10px;
	cursor: pointer;
	font-size: 16px;
}

.save-btn {
	background: #ff9d00;
	color: #fff;

	font-weight: bold;
}

.save-btn:hover {
	background: #db8900;
}

.cancel-btn {
	background: #444;
	color: #fff;
	font-weight: bold;
}

.cancel-btn:hover {
	background: #666;
}


/* TOAST */
#toast {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	min-width: 250px;
	padding: 15px 20px;
	background: #1a1a1a;
	color: #fff;
	font-size: 16px;
	border-radius: 8px;
	display: none;
	z-index: 99999;
	border-left: 6px solid #28a745;
	animation: fadeInUp 0.3s ease;
}

#toast.error {
	border-color: #dc3545;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translate(-50%, 20px);
	}

	to {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}

.visits-block {
	padding: 15px;
	background: #111;
	border-top: 1px solid #333;
	font-size: 14px;
}

.visits-block table {
	width: 100%;
	border-collapse: collapse;
}

.visits-block th,
.visits-block td {
	padding: 6px;
	border: 1px solid #333;
	text-align: left;
}

.loading {
	padding: 10px;
	text-align: center;
	color: #999;
}

.current-day {
	color: #ffea00 !important;
	text-shadow: 0 0 8px rgba(255, 234, 0, 0.6);
}

.comment-cell {
	cursor: pointer;
}

.comment-cell:hover {
	background: #222;
}

.edit-icon {
	cursor: pointer;
	margin-left: 0;
	opacity: 0.7;
	border: 1px solid #81e57a;
	border-radius: 4px;
	padding: 3px;
	text-align: center;
}

.edit-icon:hover {
	opacity: 1;
}

.updated-row {
	background: #2d4 !important;
	transition: background 1.5s ease;
}

.updated-row-fade {
	background: transparent !important;
}

.delete-icon {
	cursor: pointer;
	margin-left: 6px;
	opacity: 0.7;
	color: #e74c3c;
	font-weight: bold;
	border: 1px solid #81e57a;
	border-radius: 4px;
	padding: 3px;
	text-align: center;
	min-width: 25px;
	display: inline-block;
}

.delete-icon:hover {
	opacity: 1;
	color: #ff6b5a;
}

.deleted-row {
	background: #8b0000 !important;
	/* тёмно-красный */
	color: #fff;
	transition: background 0.6s ease, opacity 0.6s ease;
}

.deleted-row-fade {
	opacity: 0;
}

.visits-total {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #333;
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	text-align: center;
}

.visits-total strong {
	color: #ff9d00;
	font-weight: bold;
}

.film-card.ok {
	border: 3px solid #2ecc71 !important;
	/* зелений */
	box-shadow: 0 0 20px rgba(46, 204, 113, 0.6);
}

.film-card.low {
	border: 3px solid #555 !important;
	/* сірий */
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.film-info {
    position: absolute;
    top: 335px;
    z-index: 10;
    width: 100%;
    text-align: center;
    font-size: 20px;
    padding: 0;
}

/* ===== TOP MENU ===== */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111;
    border-bottom: 1px solid #222;
    padding: 12px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;
    top: 0;
    z-index: 1;
}

.nav-brand .brand-title {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    font-size: 18px;
}

/* links desktop */
.nav-links {
    display: flex;
    gap: 14px;
    align-items: center;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: 0.2s;
    background: transparent;
}

.nav-link:hover {
    background: #1f1f1f;
}

.nav-link.active {
    background: #ff9d00;
}

.nav-link.logout {
    background: #333;
}

.nav-link.logout:hover {
    background: #555;
}

/* ===== BURGER ===== */
.burger {
    display: none;
    width: 42px;
    height: 36px;
    border: 1px solid #333;
    background: #161616;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px;
}

.burger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: 0.2s;
}

/* ===== MOBILE ===== */
@media (max-width: 700px) {
    .burger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 62px;
        left: 0;
        right: 0;
        background: #111;
        border: 1px solid #222;
        border-radius: 0 0 12px 12px;
        display: none;             /* скрыто по умолчанию */
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        z-index: 1000;
    }

    .nav-links.open {
        display: flex;             /* показываем при открытии */
        animation: dropDown 0.2s ease;
    }

    .nav-link {
        width: 100%;
        text-align: left;
        background: #161616;
    }

    .nav-link.active {
        background: #e50914;
    }
}

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

.page-wrap{
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 12px; /* чтобы на мобилке не липло к краям */
}


@media (max-width: 600px) {
	.film-card {
		width: 100%;
	}
}

/* ===== RENTALS PAGE ===== */
.rentals-title{
  text-align:left;
  margin:10px 0 18px;
  font-size:26px;
  font-weight:700;
}

.rentals-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#222222;
  color:#fff;
  border-radius:12px;
  padding:16px 18px;
  margin-bottom:18px;
  gap:12px;
}

.rentals-stats-label{font-size:14px;color:#fff;}
.rentals-stats-value{font-size:22px;font-weight:700;}
.rentals-stats-value small{font-size:13px;font-weight:500;color:#fff;}

.rentals-date{
  font-size:46px;
  font-weight:800;
  color:#fff;
  flex:1;
  text-align:center;
}

.rentals-add-btn{
  background:#0aa21b;
  color:#fff;
  border:none;
  padding:12px 18px;
  border-radius:8px;
  font-size:18px;
  font-weight:700;
  cursor:pointer;
  white-space:nowrap;
}
.rentals-add-btn:hover{background:#0bcf22;}

.rentals-section{
  background:#222222;
  color:#fff;
  border-radius:12px;
  padding:14px 14px 6px;
  margin-bottom:18px;
}
.rentals-section h2{
  font-size:18px;
  margin:0 0 10px;
  font-weight:700;
}

.rentals-table-wrap{overflow-x:auto;}
.rentals-table{
  width:100%;
  border-collapse:collapse;
  font-size:15px;
}
.rentals-table th{
  background:#303030;
  padding:8px;
  border:1px solid #3e3e3e;
  text-align:center;
}
.rentals-table td{
  padding:8px;
  border:1px solid #3e3e3e;
  text-align:center;
  vertical-align:middle;
}
.rentals-actions{
  display:flex;
  gap:6px;
  justify-content:center;
}

.rentals-edit{
border: 1px solid #fff;
    background: #303030;
    color: #fff;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
}
.rentals-del{
border: 1px solid #fff;
    background: #303030;
  color:#fff;
  padding:5px 8px;
  border-radius:4px;
  cursor:pointer;
}
.rentals-del:hover, .rentals-edit:hover{background:#464646;}

/* rentals modal */
.rentals-modal input, .rentals-modal textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 12px;
    box-sizing: border-box;
    background: #2b2b2b;
    color: #fff;
}

.rentals-modal-actions{
  display:flex;
  gap:8px;
  justify-content:flex-end;
}

/* mobile */
@media (max-width:700px){
  .rentals-header{
    flex-direction:column;
    align-items:stretch;
    text-align:center;
  }
  .rentals-date{
    font-size:36px;
    order:2;
  }
  .rentals-add-btn{
    width:100%;
    order:3;
  }
}

/* Підсвітка сьогоднішніх оренд */
.rentals-table tr.rentals-today td {
    background: #4e482f;          /* м’який жовтий фон */
    font-weight: 700;
}

.rentals-table tr.rentals-today td:first-child {
    color: #d17a00;              /* акцент на даті */
}

/* Можна додати легку обводку (опційно) */
.rentals-table tr.rentals-today {
    outline: 2px solid #ffd65c;
    outline-offset: -2px;
}
.kokoriko-row{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:15px;
  margin: 4px 0 10px;
  user-select:none;
}

.kokoriko-row input[type="checkbox"]{
  width:18px;
  height:18px;
  accent-color:#0aa21b; /* зеленый как кнопка */
  cursor:pointer;
  margin: 0;
}

/* ===== RENTALS CALENDAR ===== */
.rentals-calendar{
  padding-bottom:14px;
}

.calendar-header{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:10px;
}

.calendar-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
}

.cal-btn{
  background:#1e6bff;
  color:#fff;
  border:none;
  width:36px;
  height:36px;
  border-radius:8px;
  font-size:20px;
  cursor:pointer;
}
.cal-btn:hover{opacity:.9;}

.cal-month{
  font-size:18px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.5px;
}

/* grid */
.calendar-grid{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  border:1px solid #3e3e3e;
  border-radius:10px;
  overflow:hidden;
    background: #444444;
}

.cal-weekday{
  background:#303030;
  font-weight:700;
  text-align:center;
  padding:8px 0;
  border-right:1px solid #3e3e3e;
  font-size:14px;
}
.cal-weekday:last-child{border-right:none;}

.cal-cell{
  min-height:90px;
  border-top:1px solid #3e3e3e;
  border-right:1px solid #3e3e3e;
  padding:6px;
  position:relative;
  font-size:13px;
}
.cal-cell:nth-child(7n){border-right:none;}
.cal-cell.empty{background:#222222;}

.cal-daynum{
  font-weight:700;
  color:#fff;
  font-size:13px;
}

/* today highlight */
.cal-cell.today{
  background:#e8f1ff;
  outline:2px solid #1e6bff;
  outline-offset:-2px;
}

/* events */
.cal-event{
  margin-top:6px;
  padding:6px 6px;
  border-radius:6px;
  font-size:12px;
  line-height:1.25;
  color:#fff;
  background:#1e6bff; /* самої карточки */
}

/* background for cell by type */
.cal-cell.future{
  background:rgba(255, 247, 214); /* жовтий для майбутніх */
}
.cal-cell.past{
  background:#eaffea; /* зелений для минулих */
}

.cal-cell.today .cal-daynum, .cal-cell.future .cal-daynum {
	color: #323232;
}

#afisha .film-seats{
	margin-top: 0;
    font-size: 22px;
    font-weight: 600;
    color: #ff9d00;
    text-decoration: underline;
}

#afisha .film-seats-count{
  color: #ff9d00; /* как кнопка/время, чтобы читалось */
  font-weight: 800;
}

#afisha .film-meta{
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.35;
  color: #d8d8d8;
  opacity: 0.9;
}

#afisha .film-meta b{
  color: #fff;
  font-weight: 700;
}

.film-all-info {
  padding: 25px 20px;
}

.film-title small {
  text-transform: lowercase;
}

.movieaf-item__text {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 280px;
}

.film-card:after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .9) 100%) 0% 0%;
    opacity: 1;
    bottom: -50%;
    left: 0;
    z-index: 0;
    transition: all 0.3s 
ease-out 0s;
}

.film-card .movie-item__text-info {
    z-index: 1;
}

.film-card .movie-item__btn {
    z-index: 1;
    width: 100%;
    text-align: center;
}

.film-card:hover:after {
    background: linear-gradient(180deg, rgba(253, 101, 0, 0) 0%, #614000 100%) 0% 0%;
}

.film-card:hover .movie-item__text-title {
    z-index: 1;
    position: relative;
    color: #fff;
}

.film-card:hover .movie-item__btn {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.movie-item__btn {
    font-size: 21px;
    font-weight: bold;
    border: 1px solid #ff9d00;
    background-color: #ff9d00;
    padding: 10px;
    margin-top: 20px;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    margin-top: auto;
    display: block;
    width: fit-content;
}

.film-card .movie-item__text-info {
    margin-bottom: 0;
}

.movie-item__time{
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 8px;
  color: #ff9d00; /* как кнопки */
}

.film-card .movie-item__text-title {
    margin-bottom: 15px;
}

.film-card .movie-item__text-p {
    margin-bottom: 15px;
}

/* phone */
@media (max-width:700px){
  .cal-cell{min-height:70px;font-size:12px;}
  .cal-event{font-size:11px;}
}
