html, body{
    padding: 0;
    margin: 0;
}
img{
    border: 0;
}

#wr{
    color: #000;
    background: #fff;
    font-size: 12px;
    font-family: Arial, sans-serif;
}

h1 a{
    text-decoration: none;
    color: #000;
}

/*
 * Логотипы каналов
 */

.channels{
    position: relative;
    margin-bottom: 30px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    background-color: #fafafa;
    overflow: hidden;
}
.channels div{
    position: relative;
}
.channels a{
    display: block;
    width: 50px;
    height: 50px;
    float: left;
    line-height: 50px;
    text-decoration: none;
    text-align: center;
}
.channels img{
    margin-right: 5px;
    width: 45px;
}

/*
 * Программы для каналов
 */

.program{
    position: relative;
    clear: both;
}
.prg_time{
    position: relative;
}
table.item_table{
    position: relative;
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid #ccc;
    margin-bottom: 10px;
    padding-top: 10px;
}
table.item_table td{
    padding-top: 10px;
}
table.item_table td.channel{
    vertical-align: top;
    padding-top: 5px;
    padding-left: 10px;
    font-size: 12px;
    text-align: center;
    width: 45px;
}
table.item_table td.channel img{
    width: 45px;
}
table.item_table td.prg_items{
    padding-left: 60px;
    vertical-align: top;
}
div.prg_item{
    position: relative;
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.5;
}
div.prg_item a{
    color: #0A246A;
    text-decoration: none;
}
div.prg_item a:hover{
    border-bottom: 1px dashed #0A246A;
}
div.prg_item span.prg_item_time{
    margin-right: 10px;
}
div.prg_item span.prg_item_name{
    color: #555;
}

/*
 * Типы передач
 */

.tv-cats{
    float: left;
    margin-bottom: 30px;
    margin-left: 10px;
}
.tv-cats-links{
    width: auto;
    font-size: 14px;
    padding: 0 10px;
    margin: 0 auto;
    border-bottom: 1px solid #aaa;
    background: #606c88; /* Old browsers */
    background: -moz-linear-gradient(top, #606c88 0%, #3f4c6b 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#606c88), color-stop(100%,#3f4c6b)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #606c88 0%,#3f4c6b 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #606c88 0%,#3f4c6b 100%); /* Opera11.10+ */
    background: -ms-linear-gradient(top, #606c88 0%,#3f4c6b 100%); /* IE10+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#606c88', endColorstr='#3f4c6b',GradientType=0 ); /* IE6-9 */
    background: linear-gradient(top, #606c88 0%,#3f4c6b 100%); /* W3C */
}
.tv-cats-links a{
    display: inline-block;
    padding: 5px;
    text-decoration: none;
    text-shadow: 0px 0px 0px #ccc;
    color: #fff;
}
.tv-cats-links a:hover{
    color: #f0f0f0;
}
.tv-cats-highlight{
    font-weight: bold;
    padding: 7px 5px 7px 5px;
    background: #6A7894;
}

/*
 * Дни недели
 */

.tv-date{
    clear: both;
    float: left;
    margin-bottom: 30px;
    margin-right: 20px;
    margin-left: 10px;
}
.tv-day-week{

}
.tv-day-week a{
    text-decoration: none;
    color: gray;
}
.tv-day-week a.current-day{
    border: 2px solid red;
    padding: 3px;
    padding-right: 0px;
    margin-right: 3px;
}
.tv-day-week a.next-week-arrow{
    font-size: 20px;
}
.tv-day-week .tv-day-week-area{
    margin-top: 2px;
    margin-right: 10px;
}
.tv-day-week .tv-day-week-area span.tv-day-week-sub-date{
    font-size: 12px;
    color: #aaa;
}
.date-now{

}

.tv-search{
    float: right;
    margin-bottom: 10px;
    margin-right: 10px;
    padding: 4px;
    border: 1px solid #336;
}
.tv-search button {
    float: right;
    margin-top: 5px;
    color: #fff;
    background: #d2701e;
    border: none;
}
.tv-search input{
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-size: 16px;
    width: 230px;
    height: 36px;
    background: none;
    border-color: #ccc;
    padding: 0 10px;
}
